-
Hi, I'm using Azure AD App Registration with specified scope at "Expose an API" tab and there is scp claim in JWT access token once requested: Problem is that ScopeAuthorizer uses build in "scope" as claim type, but access_as_user is in claim with "http://schemas.microsoft.com/identity/claims/scope" type so it is not found and ScopesAuthorizer throws error "no one user scope: '' match with some allowed scope: 'access_as_user'" Question is. Am I doing something wrong or AllowedScopes array is not usable for this use case? Thanks, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Hello @bednart , I faced a similar issue. Please check if you are using the Authentication midleware You may find more information here: https://ocelot.readthedocs.io/en/latest/features/authentication.html |
Beta Was this translation helpful? Give feedback.
-
Hi Tomáš! |
Beta Was this translation helpful? Give feedback.
Hi Tomáš!
In addition to the message above from @vitorelli, please look into this issue: