Skip to content

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

Closed

Description

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.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions