Skip to content

Commit 07efc79

Browse files
committed
fixes
1 parent ec3bbcf commit 07efc79

File tree

4 files changed

+10
-16
lines changed

4 files changed

+10
-16
lines changed

articles/communication-services/quickstarts/includes/access-tokens/access-token-java.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ Instantiate a `CommunicationIdentityClient` with your resource's access key and
8888
Add the following code to the `main` method inside `App.java`:
8989

9090
```java
91-
// Your can find your endpoint and access key from your resource in the Azure portal
91+
// You can find your endpoint and access key from your resource in the Azure portal
9292
String endpoint = "https://<RESOURCE_NAME>.communication.azure.com";
9393
String accessKey = "SECRET";
9494

@@ -108,7 +108,7 @@ CommunicationIdentityClient communicationIdentityClient = new CommunicationIdent
108108
.buildClient();
109109
```
110110

111-
If you have an Azure Active Directory(AD) application set up, see [Use service principals](../../identity/service-principal.md), you may also authenticate with AD.
111+
If you have an Azure Active Directory(Azure AD) application set up, see [Use service principals](../../identity/service-principal.md), you may also authenticate with Azure AD.
112112
```java
113113
String endpoint = "https://<RESOURCE_NAME>.communication.azure.com";
114114
TokenCredential credential = new DefaultAzureCredentialBuilder().build();
@@ -142,7 +142,7 @@ String token = accessToken.getToken();
142142
System.out.println("\nIssued an access token with 'voip' scope that expires at: " + expiresAt + ": " + token);
143143
```
144144

145-
## Create an identity and issue token in one go
145+
## Create an identity and issue token in one request
146146

147147
Alternatively, we can use the 'createUserAndToken' method to to create a new entry in the directory with a unique `Id` and
148148
issue an access token.

articles/communication-services/quickstarts/includes/access-tokens/access-token-js.md

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,7 @@ The `--save` option lists the library as a dependency in your `package.json` fil
4949

5050
## Set up the app framework
5151

52-
Within the project directory:
53-
54-
1. Open a new text file in your code editor
55-
1. Add a `require` call to load the `CommunicationIdentityClient`
56-
1. Create the structure for the program, including basic exception handling
57-
58-
Use the following code to begin:
52+
Within the project directory, use the following code to begin:
5953

6054
```javascript
6155
const { CommunicationIdentityClient } = require('@azure/communication-identity');
@@ -72,7 +66,7 @@ main().catch((error) => {
7266
})
7367
```
7468

75-
1. Save the new file as `issue-access-token.js` in the project directory.
69+
Once complete, save the new file as `issue-access-token.js` in the project directory.
7670

7771
## Authenticate the client
7872

@@ -103,7 +97,7 @@ const tokenCredential = new AzureKeyCredential(accessKey);
10397
const identityClient = new CommunicationIdentityClient(endpoint, tokenCredential)
10498
```
10599

106-
If you have an Azure Active Directory(AD) Application setup, see [Use service principals](../../identity/service-principal.md), you may also authenticate with AD.
100+
If you have an Azure Active Directory(Azure AD) Application setup, see [Use service principals](../../identity/service-principal.md), you may also authenticate with Azure AD.
107101
```javascript
108102
const endpoint = process.env["COMMUNICATION_SERVICES_ENDPOINT"];
109103
const tokenCredential = new DefaultAzureCredential();

articles/communication-services/quickstarts/includes/access-tokens/access-token-net.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ namespace AccessTokensQuickstart
7979
```
8080
## Authenticate the client
8181

82-
Now we'll, initialize a `CommunicationIdentityClient` with your connection string. The code below retrieves the connection string for the resource from an environment variable named `COMMUNICATION_SERVICES_CONNECTION_STRING`. Learn how to [manage your resource's connection string](../../create-communication-resource.md#store-your-connection-string).
82+
Now we'll initialize a `CommunicationIdentityClient` with your connection string. The code below retrieves the connection string for the resource from an environment variable named `COMMUNICATION_SERVICES_CONNECTION_STRING`. Learn how to [manage your resource's connection string](../../create-communication-resource.md#store-your-connection-string).
8383

8484
Add the following code to the `Main` method:
8585

@@ -128,7 +128,7 @@ var tokenResponse = await client.GetTokenAsync(identity, scopes: new [] { Commun
128128
var token = tokenResponse.Value.Token;
129129
var expiresOn = tokenResponse.Value.ExpiresOn;
130130

131-
// Writ the token details to the screen
131+
// Write the token details to the screen
132132
Console.WriteLine($"\nIssued an access token with 'voip' scope that expires at {expiresOn}:");
133133
Console.WriteLine(token);
134134
```
@@ -154,7 +154,7 @@ Console.WriteLine($"\nIssued an access token with 'voip' scope that expires at {
154154
Console.WriteLine(token);
155155
```
156156

157-
## Refresh an access tokens
157+
## Refresh an access token
158158

159159
To refresh an access token, pass an instance of the `CommunicationUserIdentifier` object into `GetTokenAsync`. If you've stored this `Id` and need to create a new `CommunicationUserIdentifier`, you can do so by passing your stored `Id` into the `CommunicationUserIdentifier` constructor as follows:
160160

articles/communication-services/quickstarts/includes/access-tokens/access-token-python.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ connection_string = os.environ["COMMUNICATION_SERVICES_CONNECTION_STRING"]
6969
client = CommunicationIdentityClient.from_connection_string(connection_string)
7070
```
7171

72-
Alternatively, if you have an Azure Active Directory(AD) application set up, see [Use service principals](../../identity/service-principal.md), you may also authenticate with AD.
72+
Alternatively, if you have an Azure Active Directory(Azure AD) application set up, see [Use service principals](../../identity/service-principal.md), you may also authenticate with Azure AD.
7373
```python
7474
endpoint = os.environ["COMMUNICATION_SERVICES_ENDPOINT"]
7575
client = CommunicationIdentityClient(endpoint, DefaultAzureCredential())

0 commit comments

Comments
 (0)