Ocelot icon indicating copy to clipboard operation
Ocelot copied to clipboard

#746 Multiple values in static claims

Open asrasya-kosha opened this issue 6 months ago • 6 comments

Closes #746

  • #746

Proposed Changes

  • Changed RouteClaimsRequirements to accept multiple values for a single key
  • Changed ClaimsAuthorizer to validate with any of the given values for a key for a static claim
  • Adjusted ClaimsAuthorizer for dynamic claims to only accept the first value for a given key
  • Added test cases

Note : The proposed changed will only work for static claims. There shouldn't be any effect on the dynamic claims.

asrasya-kosha avatar Jul 31 '24 17:07 asrasya-kosha