Closed stephenlautier closed 1 week ago
This package has not been updated with functionality for Authorize, AuthorizeWithRoles and AllowAnonymous. See v5 migration guide. Please use the authorization rule in the GraphQL.NET Server repo instead, and remove the reference to this nuget package.
Following the link to the server repo's instructions, you will find transport-level authorization configuration settings, which restricts access to the endpoint, similar to an ASP.NET Core default policy. Instructions are also included if you want to allow access to introspection requests or a portion of your schema via AllowAnonymous
.
Thank you for your response!
How to get
this.Authorize()
to work?Following your samples managed to get
this.AuthorizeWithPolicy("default")
to work however the basic one i cannot get it to work, and i cannot find anyDefaultPolicy
similar to ASPNETe.g.
Some of my code highlighting some key points