You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We've added an effect specifically for our onegraph-apollo-server-auth library
today, where you can add a role directly in AuthGuardian. It was possible
before, but only with the In the json add to the list at path effect, which
was less explicit.
Now for example if you want to only allow someone to have moderator access to
your Apollo Server GraphQL server if they're a member of your GitHub
organization, you can write the following rules:
When this user on GitHub is member of organization named "OneGraph"
We've added an effect specifically for our
onegraph-apollo-server-auth
librarytoday, where you can add a role directly in AuthGuardian. It was possible
before, but only with the
In the json add to the list at path
effect, whichwas less explicit.
Now for example if you want to only allow someone to have
moderator
access toyour Apollo Server GraphQL server if they're a member of your GitHub
organization, you can write the following rules:
And our JWT will generated appropriately:
See the OneGraph Apollo Server Auth
Example for
more info on how to use AuthGuardian to secure your Apollo Server GraphQL
server!
The text was updated successfully, but these errors were encountered: