Skip to content

Commit ec3bbcf

Browse files
committed
correct links
1 parent 0d6cbde commit ec3bbcf

File tree

4 files changed

+18
-18
lines changed

4 files changed

+18
-18
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ ms.author: tchladek
1717
- An Azure account with an active subscription. [Create an account for free](https://azure.microsoft.com/free/?WT.mc_id=A261C142F).
1818
- [Java Development Kit (JDK)](/azure/developer/java/fundamentals/java-jdk-install) version 8 or above.
1919
- [Apache Maven](https://maven.apache.org/download.cgi).
20-
- A deployed Communication Services resource and connection string. [Create a Communication Services resource](../create-communication-resource.md).
20+
- A deployed Communication Services resource and connection string. [Create a Communication Services resource](../../create-communication-resource.md).
2121

2222
## Final Code
2323
Find the finalized code for this quickstart on [GitHub](https://github.com/Azure-Samples/communication-services-java-quickstarts/tree/main/access-token-quickstart).
@@ -83,7 +83,7 @@ public class App
8383

8484
## Authenticate the client
8585

86-
Instantiate a `CommunicationIdentityClient` with your resource's access key and endpoint. Learn how to [manage your resource's connection string](../create-communication-resource.md#store-your-connection-string). In addition, you can initialize the client with any custom HTTP client that implements the `com.azure.core.http.HttpClient` interface.
86+
Instantiate a `CommunicationIdentityClient` with your resource's access key and endpoint. Learn how to [manage your resource's connection string](../../create-communication-resource.md#store-your-connection-string). In addition, you can initialize the client with any custom HTTP client that implements the `com.azure.core.http.HttpClient` interface.
8787

8888
Add the following code to the `main` method inside `App.java`:
8989

@@ -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(AD) application set up, see [Use service principals](../../identity/service-principal.md), you may also authenticate with AD.
112112
```java
113113
String endpoint = "https://<RESOURCE_NAME>.communication.azure.com";
114114
TokenCredential credential = new DefaultAzureCredentialBuilder().build();
@@ -131,7 +131,7 @@ The created identity is required later to issue access tokens. You should theref
131131

132132
## Issue access tokens
133133

134-
Use the `getToken` method to issue an access token for already existing Communication Services identity. The `scopes` parameter defines set of permissions and abilities that this token will be able to perform. See the [list of supported actions](../../concepts/authentication.md) for valid values. In this case we'll use our user variable created in the previous step to get a token.
134+
Use the `getToken` method to issue an access token for already existing Communication Services identity. The `scopes` parameter defines set of permissions and abilities that this token will be able to perform. See the [list of supported actions](../../../concepts/authentication.md) for valid values. In this case we'll use our user variable created in the previous step to get a token.
135135

136136
```java
137137
// Issue an access token with the "voip" scope for a user identity

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ ms.author: tchladek
1616

1717
- An Azure account with an active subscription. [Create an account for free](https://azure.microsoft.com/free/?WT.mc_id=A261C142F).
1818
- [Node.js](https://nodejs.org/) Active LTS and Maintenance LTS versions (8.11.1 and 10.14.1 recommended).
19-
- An active Communication Services resource and connection string. [Create a Communication Services resource](../create-communication-resource.md).
19+
- An active Communication Services resource and connection string. [Create a Communication Services resource](../../create-communication-resource.md).
2020

2121
## Final Code
2222
Find the finalized code for this quickstart on [GitHub](https://github.com/Azure-Samples/communication-services-javascript-quickstarts/tree/main/access-tokens-quickstart).
@@ -76,7 +76,7 @@ main().catch((error) => {
7676

7777
## Authenticate the client
7878

79-
Instantiate 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).
79+
Instantiate 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).
8080

8181
Add the following code to the `main` method:
8282

@@ -103,7 +103,7 @@ const tokenCredential = new AzureKeyCredential(accessKey);
103103
const identityClient = new CommunicationIdentityClient(endpoint, tokenCredential)
104104
```
105105

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.
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.
107107
```javascript
108108
const endpoint = process.env["COMMUNICATION_SERVICES_ENDPOINT"];
109109
const tokenCredential = new DefaultAzureCredential();
@@ -122,7 +122,7 @@ You should store received identities with a mapping to your application's users.
122122

123123
## Issue access tokens
124124

125-
Use the `getToken` method to issue an access token for an already existing Communication Services identity. The `scopes` parameter defines a list of permissions/roles, that this token can perform/use. See the [list of supported actions](../../concepts/authentication.md). A new instance of parameter `communicationUser` can be constructed based on string representation of an Azure Communication Service identity.
125+
Use the `getToken` method to issue an access token for an already existing Communication Services identity. The `scopes` parameter defines a list of permissions/roles, that this token can perform/use. See the [list of supported actions](../../../concepts/authentication.md). A new instance of parameter `communicationUser` can be constructed based on string representation of an Azure Communication Service identity.
126126

127127
```javascript
128128
// Issue an access token with the "voip" scope for an identity

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ ms.author: tchladek
1717

1818
- An Azure account with an active subscription. [Create an account for free](https://azure.microsoft.com/free/?WT.mc_id=A261C142F).
1919
- The latest version [.NET Core SDK](https://dotnet.microsoft.com/download/dotnet-core) for your operating system.
20-
- An active Communication Services resource and connection string. [Create a Communication Services resource](../create-communication-resource.md).
20+
- An active Communication Services resource and connection string. [Create a Communication Services resource](../../create-communication-resource.md).
2121

2222
## Final Code
2323
Find the finalized code for this quickstart on [GitHub](https://github.com/Azure-Samples/communication-services-dotnet-quickstarts/tree/main/AccessTokensQuickstart).
@@ -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

@@ -99,7 +99,7 @@ string accessKey = Environment.GetEnvironmentVariable("COMMUNICATION_SERVICES_AC
9999
var client = new CommunicationIdentityClient(new Uri(endpoint), new AzureKeyCredential(accessKey));
100100
```
101101

102-
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.
102+
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.
103103
```csharp
104104
TokenCredential tokenCredential = new DefaultAzureCredential();
105105
var client = new CommunicationIdentityClient(new Uri(endpoint), tokenCredential);
@@ -118,7 +118,7 @@ You should store the received identity with a mapping to your application's user
118118

119119
## Issue identity access tokens
120120

121-
Once you have an identity, use the `GetToken` method to issue an access token for the identity. The `scopes` parameter defines set of permissions/abilities, that this access token can perform. See the [list of supported actions](../../concepts/authentication.md). A new instance of a `communicationUser` can also be constructed based on string representation of an Azure Communication Service identity.
121+
Once you have an identity, use the `GetToken` method to issue an access token for the identity. The `scopes` parameter defines set of permissions/abilities, that this access token can perform. See the [list of supported actions](../../../concepts/authentication.md). A new instance of a `communicationUser` can also be constructed based on string representation of an Azure Communication Service identity.
122122

123123
```csharp
124124
// Issue an access token with the "voip" scope for an identity
@@ -137,7 +137,7 @@ Access tokens are short-lived credentials that need to be reissued. Not doing so
137137

138138
## Create an identity and issue an access token within the same request
139139

140-
You can use the `CreateUserAndTokenAsync` method to create a Communication Services identity and issue an access token for it at the same time. The `scopes` parameter defines set of permissions/abilities, that this access token can perform. See the [list of supported actions](../../concepts/authentication.md).
140+
You can use the `CreateUserAndTokenAsync` method to create a Communication Services identity and issue an access token for it at the same time. The `scopes` parameter defines set of permissions/abilities, that this access token can perform. See the [list of supported actions](../../../concepts/authentication.md).
141141

142142
```csharp
143143
// Issue an identity and an access token with the "voip" scope for the new identity

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ ms.author: tchladek
1616

1717
- An Azure account with an active subscription. [Create an account for free](https://azure.microsoft.com/free/?WT.mc_id=A261C142F).
1818
- [Python](https://www.python.org/downloads/) 2.7 or 3.6+.
19-
- An active Communication Services resource and connection string. [Create a Communication Services resource](../create-communication-resource.md).
19+
- An active Communication Services resource and connection string. [Create a Communication Services resource](../../create-communication-resource.md).
2020

2121
## Final Code
2222

@@ -56,7 +56,7 @@ pip install azure-communication-identity
5656

5757
## Authenticate the client
5858

59-
Next we'll instantiate 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).
59+
Next we'll instantiate 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).
6060

6161
Add this code inside the `try` block:
6262

@@ -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(AD) application set up, see [Use service principals](../../identity/service-principal.md), you may also authenticate with AD.
7373
```python
7474
endpoint = os.environ["COMMUNICATION_SERVICES_ENDPOINT"]
7575
client = CommunicationIdentityClient(endpoint, DefaultAzureCredential())
@@ -88,7 +88,7 @@ You should store the received identity with a mapping to your application's user
8888

8989
## Issue access tokens
9090

91-
Use the `get_token` method to issue an access token for already existing Communication Services identity. The `scopes` parameter defines set of permissions/abilities, that this access token can perform. See the [list of supported actions](../../concepts/authentication.md). a new instance of parameter `CommunicationUserIdentifier` can also be constructed based on string representation of Azure Communication Service identity.
91+
Use the `get_token` method to issue an access token for already existing Communication Services identity. The `scopes` parameter defines set of permissions/abilities, that this access token can perform. See the [list of supported actions](../../../concepts/authentication.md). a new instance of parameter `CommunicationUserIdentifier` can also be constructed based on string representation of Azure Communication Service identity.
9292

9393
```python
9494
# Issue an access token with the "voip" scope for an identity
@@ -104,7 +104,7 @@ Access tokens are short-lived credentials that need to be reissued. Not doing so
104104

105105
## Create an identity and issue an access token within the same request
106106

107-
You can use the `create_user_and_token` method to create a Communication Services identity and issue an access token for it. The `scopes` parameter defines set of permissions/abilities, that this access token can perform.. See the [list of supported actions](../../concepts/authentication.md).
107+
You can use the `create_user_and_token` method to create a Communication Services identity and issue an access token for it. The `scopes` parameter defines set of permissions/abilities, that this access token can perform.. See the [list of supported actions](../../../concepts/authentication.md).
108108

109109
```python
110110
# Issue an identity and an access token with the "voip" scope for the new identity

0 commit comments

Comments
 (0)