Skip to content

Instantly share code, notes, and snippets.

@manoj-choudhari-git
Created May 23, 2020 08:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save manoj-choudhari-git/172145d45ec6d29f720b30bbedf1f5e8 to your computer and use it in GitHub Desktop.
Save manoj-choudhari-git/172145d45ec6d29f720b30bbedf1f5e8 to your computer and use it in GitHub Desktop.
Snippet from startup.cs of Web Application that caused error
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