No user scopes leads to error
See original GitHub issuefrom @onovotny and copied from https://github.com/Azure-Samples/active-directory-aspnetcore-webapp-openidconnect-v2/issues/241
If you want to use .AddMsal(), there’s no way to do so without any user scopes. It might be needed for Application flows.
If you use new string[0]
for the scopes parameter, it’ll throw in the OnAuthorizationCodeReceived callback since options.Scope will be null:
await tokenAcquisition.AddAccountToCacheFromAuthorizationCodeAsync(context, options.Scope).ConfigureAwait(false);
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
"missing scope read:users" error in Delegated Admin ...
Cause. This error can happen due to two reasons: The client not having the read:users scope. The user's roles are not being propagated...
Read more >Missing Scope Error from Slack - RPA Discussions
Hi, The issue which you are facing is due to the scopes present in the error are not present in the User Token...
Read more >Insufficient Scope error. Token does not contain scopes
I am using a rule (below) to add the admin scope if the user has this metadata.However, any API calls using the token...
Read more >Error: `the requested scope is not available` with scope=full ...
This process actually involves two steps, first getting an authorization code, then trading that code for an access token and refresh token. ...
Read more >SoundCloud OAuth2 API: Getting 'invalid_scope' Error After ...
This error occurs when the requested scope(s) during the authorization process are not valid or do not match the scopes defined in your ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@jennyf19 : proposing to take it in 0.2 given that MSAL.NET fixed it;
Included in 0.1.3-preview release