-
-
Notifications
You must be signed in to change notification settings - Fork 38
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
Arguments Empty When Trying Authorize #43
Comments
|
I think I'm mixing things up here, which Input variables do you mean? |
@andrejohansson The variables that you pass in to a GraphQL Query. https://graphql-dotnet.github.io/docs/getting-started/variables |
Is there any way to access to the field's arguments from the |
@joacoleza only if you use variables really. These rules run before execution so don’t have direct access to the arguments. |
Ok. I guess that I will have to add that kind of authorization on the resolver itself, right? |
I'm trying to authorize a field by validating it´s input arguments in a custom policy. My policy gets executed correctly but the Arguments property of the AuthorizationContext variable is always empty. What do I need to do in order to get this populated?
Field Definition
DeviceQueryPolicy
DeviceIdMatchOrganizationIdRequirement
Query
The text was updated successfully, but these errors were encountered: