Created
May 23, 2020 09:08
-
-
Save manoj-choudhari-git/23b8d6becf994aca55e129734b934e96 to your computer and use it in GitHub Desktop.
Snippet from startup.cs of web application asking scope for only caller api
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 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