Skip to content

Commit 15a434c

Browse files
Merge pull request #226073 from alexeyo26/alexeyo/fix-aad-sdk
[CogSvc] Speech. Fixed AAD token code example bug. C# only
2 parents f2afd0f + 0e263e6 commit 15a434c

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)