A WordPress plugin that provides Headless login and authentication for WPGraphQL, supporting traditional passwords, OAuth2/OpenID Connect, JWT, and more.
A WordPress plugin that provides headless login and authentication for WPGraphQL, supporting traditional passwords, OAuth2/OpenID Connect, JWT, and more.
Headless Login for WPGraphQL is a flexible and extensible plugin that allows headless WordPress sites to login and authenticate users via WPGraphQL using a variety of authentication methods, including traditional WordPress credentials (username/password), OAuth 2.0 / OpenID Connect, JSON Web Tokens (JWT), and more.
This plugin is inspired by and aims to replace WPGraphQL JWT Authentication as more powerful, comprehensive, and flexible authentication solution for Headless WP.
.zip
file, upload it to your WordPress install, and activate the plugin.composer require axepress/wp-graphql-headless-login
Until we hit v1.0, we're using a modified version of SemVer, where:
Development of Headless Login for WPGraphQL is provided by AxePress Development. Community contributions are welcome and encouraged.
Basic support is provided for free, both in this repo and in WPGraphQL Slack.
Priority support and custom development are available to our Sponsors.
The following functionality is currently supported:
ProviderConfig
class.authToken
s and long term refreshToken
s for seamless reauthentication in your headless app.loginClient
authorization urls, to use in your frontend's login buttons.ProviderConfig
s
.env
file to your testing environment specifications.composer install
to get the dev-dependencies.composer install-test-env
to create the test environment.vendor/bin/codecept run wpunit
will run all WPUnit tests.