Scopes based authorization
Flusinerd opened this issue · comments
Jan Krüger commented
Is your feature request related to a problem? Please describe.
I would like to pass additional data to my Guard
or Custom Authorizer
when using the auto-generated resolvers.
The usecase is a scope-based authentication. That has a seperate scope for each entity.
Have you read the Contributing Guidelines?
yes
Describe the solution you'd like
Either be able to pass an instance of a guard to the guards array (Then I could provide the required scopes via the constructor etc...)
Describe alternatives you've considered
Or have the DTO name in a Custom Authorizer
authorizationContext
Or be able to pass an instance of a Custom Authorizer
to the Authorize
decorator