Skip to content

Commit d5f8213

Browse files
committed
adding note about app secrets to quickstart
1 parent 2abe028 commit d5f8213

File tree

6 files changed

+24
-6
lines changed

6 files changed

+24
-6
lines changed

articles/cognitive-services/LUIS/client-libraries-rest-api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: "Quickstart: Language Understanding (LUIS) SDK client libraries and REST API"
33
description: Create and query a LUIS app with the LUIS SDK client libraries and REST API.
44
ms.topic: quickstart
5-
ms.date: 10/20/2021
5+
ms.date: 03/07/2022
66
ms.service: cognitive-services
77
ms.author: aahi
88
manager: nitinme
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
title: include file
3+
ms.topic: include
4+
ms.custom: include file
5+
ms.date: 5/17/2020
6+
---
7+
8+
> [!IMPORTANT]
9+
> Remember to remove the credentials from your code when you're done, and never post them publicly. For production, consider using a secure way of storing and accessing your credentials. For example, Azure key vault.

articles/cognitive-services/LUIS/includes/rest-api.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ services: cognitive-services
55
manager: nitinme
66
ms.service: cognitive-services
77
ms.subservice: language-understanding
8-
ms.date: 11/30/2020
8+
ms.date: 03/07/2022
99
ms.topic: include
1010
---
1111

@@ -165,6 +165,9 @@ If the entityLabels array is not empty, the `startCharIndex` and `endCharIndex`
165165
166166
Assigned keys and resources are visible in the LUIS portal in the Manage section, on the **Azure resources** page. The app ID is available in the same Manage section, on the **Application Settings** page.
167167
168+
169+
[!INCLUDE [Remember to remove credentials when you're done](app-secrets.md)]
170+
168171
1. Start a Command Prompt (Windows) or Terminal (macOS and Linux), and change directories to the same directory where you saved the `ExampleUtterances.JSON` file.
169172
170173
1. Copy the cURL command from the editor, and paste it into a Command Prompt (Windows) or Terminal (macOS and Linux). Press Enter to execute the command.

articles/cognitive-services/LUIS/includes/sdk-csharp.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ services: cognitive-services
66
manager: nitinme
77
ms.service: cognitive-services
88
ms.subservice: language-understanding
9-
ms.date: 05/17/2021
9+
ms.date: 03/07/2022
1010
ms.topic: include
1111
ms.custom: "include file, devx-track-dotnet, cog-serv-seo-aug-2020"
1212

@@ -120,6 +120,8 @@ From the project directory, open the *Program.cs* file in your preferred editor
120120

121121
Create two sets of variables: the first set you change, the second set leave as they appear in the code sample.
122122

123+
[!INCLUDE [Remember to remove credentials when you're done](app-secrets.md)]
124+
123125
1. Create variables to hold your authoring key and resource names.
124126

125127
[!code-csharp[Variables you need to change](~/cognitive-services-quickstart-code/dotnet/LanguageUnderstanding/sdk-3x//Program.cs?name=VariablesYouChange)]

articles/cognitive-services/LUIS/includes/sdk-nodejs.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ services: cognitive-services
66
manager: nitinme
77
ms.service: cognitive-services
88
ms.subservice: language-understanding
9-
ms.date: 05/17/2021
9+
ms.date: 03/07/2022
1010
ms.topic: include
1111
ms.custom: include file, devx-track-js, cog-serv-seo-aug-2020
1212

@@ -140,6 +140,8 @@ Open the `index.js` file in your preferred editor or IDE named then add the foll
140140

141141
Create two sets of variables: the first set you change, the second set leave as they appear in the code sample.
142142

143+
[!INCLUDE [Remember to remove credentials when you're done](app-secrets.md)]
144+
143145
1. Create variables to hold your authoring key and resource names.
144146
145147
[!code-javascript[Variables you need to change](~/cognitive-services-quickstart-code/javascript/LUIS/sdk-3x/index.js?name=VariablesYouChange)]

articles/cognitive-services/LUIS/includes/sdk-python.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ services: cognitive-services
66
manager: nitinme
77
ms.service: cognitive-services
88
ms.subservice: language-understanding
9-
ms.date: 05/17/2021
9+
ms.date: 03/07/2022
1010
ms.topic: include
1111
ms.custom: include file, cog-serv-seo-aug-2020
1212

@@ -106,12 +106,14 @@ Add the client libraries to the python file.
106106

107107
Create two sets of variables: the first set you change, the second set leave as they appear in the code sample.
108108

109+
[!INCLUDE [Remember to remove credentials when you're done](app-secrets.md)]
110+
109111
1. Create variables to hold your authoring key and resource names.
110112

111113
[!code-python[Variables you need to change](~/cognitive-services-quickstart-code/python/LUIS/sdk-3x/authoring_and_predict.py?name=VariablesYouChange)]
112114

113115
1. Create variables to hold your endpoints, app name, version, and intent name.
114-
116+
115117
[!code-python[Variables you don't need to change](~/cognitive-services-quickstart-code/python/LUIS/sdk-3x/authoring_and_predict.py?name=VariablesYouDontNeedToChangeChange)]
116118

117119
## Authenticate the client

0 commit comments

Comments
 (0)