Skip to content

Commit 0e263e6

Browse files
committed
Added missing
string aadToken = browserToken.Token;
1 parent 480d8c1 commit 0e263e6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

articles/cognitive-services/Speech-Service/how-to-configure-azure-ad-auth.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ Here's an example of using Azure Identity to get an Azure AD access token from a
5151
TokenRequestContext context = new Azure.Core.TokenRequestContext(new string[] { "https://cognitiveservices.azure.com/.default" });
5252
InteractiveBrowserCredential browserCredential = new InteractiveBrowserCredential();
5353
var browserToken = browserCredential.GetToken(context);
54+
string aadToken = browserToken.Token;
5455
```
5556
The token context must be set to "https://cognitiveservices.azure.com/.default".
5657
::: zone-end

0 commit comments

Comments
 (0)