Created
April 12, 2021 13:04
-
-
Save martyncoup/338fc192b162d539f680ee3913382d3e to your computer and use it in GitHub Desktop.
Enable token acquisition for downstream APIs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
services.AddMicrosoftIdentityWebApiAuthentication(Configuration, "AzureAd") | |
.EnableTokenAcquisitionToCallDownstreamApi() | |
.AddDownstreamWebApi("Azure", Configuration.GetSection("AzureApi")) | |
.AddInMemoryTokenCaches(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment