-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Labels
AuthorizationOcelot feature: AuthorizationOcelot feature: AuthorizationSummer'25Summer 2025 releaseSummer 2025 releasebugIdentified as a potential bugIdentified as a potential bugmergedIssue has been merged to dev and is waiting for the next releaseIssue has been merged to dev and is waiting for the next releaseproposalProposal for a new functionality in OcelotProposal for a new functionality in Ocelot
Milestone
Description
Expected Behavior / New Feature
Expected AllowedScopes to parse scope claim and match one or more values in string array similar to RouteClaimsRequirement. For example JWT scope claim value has two scopes, space delimited by whitespace: Values.Read Values.Write
Actual Behavior / Motivation for New Feature
ScopesAuthoriser compares the entire claim value to the AllowedScopes array causing it to fail to match either scope. It looks like you addressed a similar issue in RouteClaimsRequirement. Is that the workaround for this issue? Or, can AllowedScopes be modified to use that behavior?
Steps to Reproduce the Problem
- Generate a JWT with "scp" claim containing two or more scopes delimited by whitespace
- Send JWT to Ocelot for route with a single AllowedScope
- Allowed scope is not matched even though the scope exists in the claim
Specifications
- Version: Ocelot 13.5.0 and 19.0.2
- Platform: .NET Core 2.2 and .NET 7
marctalary, jords1987, andreizhvaleuski, CurMa7, PatrickDelancy and 5 more
Metadata
Metadata
Assignees
Labels
AuthorizationOcelot feature: AuthorizationOcelot feature: AuthorizationSummer'25Summer 2025 releaseSummer 2025 releasebugIdentified as a potential bugIdentified as a potential bugmergedIssue has been merged to dev and is waiting for the next releaseIssue has been merged to dev and is waiting for the next releaseproposalProposal for a new functionality in OcelotProposal for a new functionality in Ocelot