Created
May 23, 2020 08:53
-
-
Save manoj-choudhari-git/172145d45ec6d29f720b30bbedf1f5e8 to your computer and use it in GitHub Desktop.
Snippet from startup.cs of Web Application that caused error
This file contains 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.AddSignIn(Configuration, "AzureAd"); | |
services.AddWebAppCallsProtectedWebApi(Configuration, | |
initialScopes: new string[] { "user.read", | |
// scope of new API | |
"api://5e999e55-a661-4982-b897-965480492129/access_as_user", | |
// Scope of caller API | |
"api://262f3e7b-20cb-42cb-8a23-2d6c8003ee3a/caller-api" | |
}) | |
.AddInMemoryTokenCaches(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment