View Source PrimaAuth0Ex.Absinthe.RequirePermissions (prima_auth0_ex v0.7.0)
Absinthe middleware that ensures that the client has the required JWT permissions to access the GraphQL field.
If this is not the case, it returns an unauthorized
error.
This middleware expects the required permissions of the field to be stored in the Absinthe context,
which can be done by using the PrimaAuth0Ex.Absinthe.CreateSecurityContext
plug.
If prima_auth0_ex is configured to run in "dry run" mode, this middleware simply logs a warning when the context doesn't include the given permissions.