Decorator for an endpoint method that defines roles that are allowed to use it.
Overrides the controller roles set by the controllerRolesAllowed decorator, if any.
controllerRolesAllowed
Role based authorization is managed by an IAuthorizer implementation registered with the current app.
IAuthorizer
Names of roles that are permitted to use the endpoint.
Decorator for an endpoint method that defines roles that are allowed to use it.
Overrides the controller roles set by the
controllerRolesAllowed
decorator, if any.Role based authorization is managed by an
IAuthorizer
implementation registered with the current app.