Skip to content

Commit 104eeba

Browse files
committed
Updated auth8 and added tip
1 parent a90daed commit 104eeba

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

articles/cognitive-services/cognitive-services-security.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,13 @@ For .NET users, consider the <a href="https://docs.microsoft.com/dotnet/framewor
2727

2828
## Authentication
2929

30-
Authentication is the act of verifying a user's an identity. < TODO: add more to this... >
30+
When discussing authentication, there are several common misconceptions. Authentication and authorization are often confused for one another. Identity is also a major component in security. An identity is a collection of information about a <a href="https://en.wikipedia.org/wiki/Principal_(computer_security)" target="_blank">principal <span class="docon docon-navigate-external x-hidden-focus"></span></a>. Identity providers (IdP) provide identities to authentication services. Authentication is the act of verifying a user's identity. Authorization is the specification of access rights and privileges to resources for a given identity.
31+
32+
< TODO: Add more details about authentication with Cog Svcs >
3133

3234
## Environment variables and application configuration
3335

34-
An alternative to using hardcoded values for sensitive data, is to use environment variables. Hardcoded values are insecure and should be avoided.
36+
Environment variables are name-value pairs, stored within a specific environment. An alternative to using hardcoded values for sensitive data, is to use environment variables. Hardcoded values are insecure and should be avoided.
3537

3638
### Set environment variable
3739

@@ -69,9 +71,12 @@ echo ENVIRONMENT_VARIABLE_KEY
6971

7072
---
7173

74+
> [!TIP]
75+
> After setting an environment variable, restart your integrated development environment (IDE) to ensure that newly added environment variables are available.
76+
7277
### Get environment variable
7378

74-
To get an environment variable, it must be read into memory. Depending on the language you're using, consider the following code snippets for getting environment variables given the `ENVIRONMENT_VARIABLE_KEY` and assign to a variable named `value`.
79+
To get an environment variable, it must be read into memory. Depending on the language you're using, consider the following code snippets. These code snippets demonstrate how to get environment variable given the `ENVIRONMENT_VARIABLE_KEY` and assign to a variable named `value`.
7580

7681
# [C#](#tab/csharp)
7782

0 commit comments

Comments
 (0)