Closed
Description
Hi, I encountered an issue on version 0.2.1-preview where calling ValidateAppRole will not work as expected.
Issue happens when i call ValidateAppRole and my access token has a 'roles' claim containing an array of roles. Somwhow, my 'roles' claim gets transformed into multiple 'role' claims in context.HttpContext.User. And the code inside ValidateAppRole is not properly written to handle this scenario, it only looks at the first 'role' claim and my call fails with 403.
This is the line where I found the issue.
This code will incorrectly stop on the first role claim.
Please let me know it any more info is needed, I could even do a PR to solve this, I will do a quick custom implementation of ValidateAppRole just to move on with my project.
Thanks