Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Add ValidateAppRole() in addition to VerifyUserHasAnyAcceptedScope #131

Closed
jmprieur opened this issue Apr 27, 2020 · 1 comment

Comments

@jmprieur
Copy link
Collaborator

jmprieur commented Apr 27, 2020

Is your feature request related to a problem? Please describe.
Web API called by daemon app need to verify the app roles.
We could just use [Authorize(Roles="")]

But for symmetry proposing to add a ValidateAppRole() method similar to VerifyUserHasAnyAcceptedScope(), but which would test for Roles and Role, instead of Scp/Scopes.

Note
We'd also need to update https://docs.microsoft.com/en-us/azure/active-directory/develop/scenario-protected-web-api-verification-scope-app-roles#verify-app-roles-in-apis-called-by-daemon-apps.

@jennyf19
Copy link
Collaborator

Included in 0.2.0-preview release

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants