Adding an interface to describe an access token requirement. The goal is to make it easier/possible to create additional requirements that can use the implemented AuthorizationHandler in combination with other handlers.
In Events we are in need of a requirement that can do both Scope and AccessToken verification and succeed if one of them resolves successfully.
Description
Adding an interface to describe an access token requirement. The goal is to make it easier/possible to create additional requirements that can use the implemented AuthorizationHandler in combination with other handlers.
In Events we are in need of a requirement that can do both Scope and AccessToken verification and succeed if one of them resolves successfully.
https://learn.microsoft.com/en-us/aspnet/core/security/authorization/policies?view=aspnetcore-7.0#why-would-i-want-multiple-handlers-for-a-requirement