Skip to content

The field \"RootMutation.login\" cannot be accessed without authentication. #169

@rotkohlsuppe

Description

@rotkohlsuppe

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:
Bildschirmfoto 2022-10-06 um 17 31 43

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions