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
Hi everybody,
I'm trying to access the endpoint through the official WPGraphQL Plugin from the WP Plugin Library.
The plugin features the option to disable all requests, except authorized ones:
In order to use this feature I installed this plugin wp-graphql-jwt-authentication.
But with the option from above activated it doesn't allow access to the login field anymore: The field \"RootMutation.login\" cannot be accessed without authentication.
How should I deal with this? I know the plugin works, for example querying users only works with authentication through this JWT plugin. But I want to restrict access to every endpoint, including Pages, Posts, etc., except for the Authentication Enpoint.
How can I achieve this, if this plugin doesn't work with the option from WPGraphQL?
Thanks for any ideas! Cheers!
The text was updated successfully, but these errors were encountered:
You have to specify to the plugin which mutation has to be public
1. Go in wordpress and find wp-graphql-jwt-authentication plugin path
2. Open "wp-graphql-jwt-authentication.php"
3. In the init() function add these lines after the end of the first "add_filter":
Hi everybody,
I'm trying to access the endpoint through the official WPGraphQL Plugin from the WP Plugin Library.
The plugin features the option to disable all requests, except authorized ones:
In order to use this feature I installed this plugin
wp-graphql-jwt-authentication
.But with the option from above activated it doesn't allow access to the login field anymore:
The field \"RootMutation.login\" cannot be accessed without authentication.
How should I deal with this? I know the plugin works, for example querying users only works with authentication through this JWT plugin. But I want to restrict access to every endpoint, including Pages, Posts, etc., except for the Authentication Enpoint.
How can I achieve this, if this plugin doesn't work with the option from WPGraphQL?
Thanks for any ideas! Cheers!
The text was updated successfully, but these errors were encountered: