question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

No user scopes leads to error

See original GitHub issue

from @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:closed
  • Created 4 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
jmprieurcommented, Apr 16, 2020

@jennyf19 : proposing to take it in 0.2 given that MSAL.NET fixed it;

0reactions
jennyf19commented, May 15, 2020
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found