Joe McBride
Joe McBride
> Does this sample support scopes services within the custom AuthorizationRequirement? This should be made clear, and if possible included in the sample No, this isn't setup to support scoped...
We probably will not include an example in this regard. There is quite a bit of setup for subscriptions. This functionality is provided by the server project, which has the...
> I noticed that the sample has changed from a code-first sample to a schema-first sample. Perhaps this does not matter if the purpose of the sample is to demonstrate...
Yes should probably be handling this on the `ObjectField` as well. My apologies, I've gotten slammed with work at my day job.
Not at present, no. You can have a policy like “TeacherOrAdmin”.
If I were to add multiple policy support, it would probably function like the .NET Core one does, in an `&` comparison. So it would end up as `Admin AND...
I understand. If I were to implement it I would just prefer it to behave like ASP.NET Core does to avoid confusion. https://stackoverflow.com/a/35610142/279764
`AuthorizationContext.Arguments` is probably a poorly named property. Those are actually the Input Variables and not the Arguments to the field.
@andrejohansson The variables that you pass in to a GraphQL Query. https://graphql-dotnet.github.io/docs/getting-started/variables
@joacoleza only if you use variables really. These rules run before execution so don’t have direct access to the arguments.