Skip to content

Cannot understand the AllowedScopes options #1739

Answered by raman-m
andreuwz asked this question in Q&A
Discussion options

You must be logged in to vote

@andreuwz

I want to ask, are the scopes created by IS4 the ones Ocelot looks for?
Because I tested the scopes in the token against 2 examples:
"AllowedScopes": [ "Cart.API", "Catalogue.API", "Identity.API", "offline_access", "test" ]
"AllowedScopes": [ "test" ]
In the first example where test is included in the list of scopes, using the token from above - I get forbidden. If I use only "test" scope I get Unauthorized. Is this expected behavior?

Andrey, allow me to clarify the "forbidden issue" in the first case. The issue stems from the IScopesAuthorizer implementation, which is utilized during the authentication phase in Ocelot. More details about the root cause can be found in issue #…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@raman-m
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by raman-m
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
Authentication Ocelot feature: Authentication
3 participants
Converted from issue

This discussion was converted from issue #1619 on October 17, 2023 19:17.