authorization
authorization copied to clipboard
A toolset for authorizing access to graph types for GraphQL .NET.
Using the GraphQLAuthorize attribute, can I apply multiple policies at once ... like ["Admin", "Teacher"] . Then any user that has any of those claims get authorized.
Demonstration of fix for #28. @Shane32 Please review. I would like to merge after #184
I have put Authorization on my Root Query, but now "ui playground" cannot get the initial introspection query to work. I can put the bearer token in UiPlayground to make...
Take the following AuthorizationRequirement: namespace GraphQLNet.AuthRequirements { public class IsSelf : IAuthorizationRequirement { public Task Authorize(AuthorizationContext context) { var user = context.User; object idArg; if (context.InputVariables.TryGetValue("userID", out idArg) && user.HasClaim(c...
Is it possible to white list one or more endpoints? for example: I would like to require authentication for all mutation and queries except for Login. Currently we authorize each...
Hello there. I am looking for an example for schema first auth and using controller for accessing api. Could anyone provide me an example?
This PR adds many new classes and interfaces to unify authorization architecture with such from the server project. Also adds APIs from https://github.com/graphql-dotnet/server/pull/480 to build custom errors and messages. Many...
I just need to know how to get the error code UNAUTHENTICATED because when I use .AuthorizeWith I am getting a VALIDATION_ERROR. here is a bit of startup.cs ``` services.AddAuthentication(options...
… the field is not included or skipped due to directives.