WP Manifestindependent plugin directory
manifest / security / delegated-oauth2

Delegated Authentication #10 in Security

Delegate OAuth 2 authorization to another WordPress site

by Joe Hoyle · github.com/humanmade/delegated-oauth2

10stars
116kcomposer installs
0forks

Install

No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:

wp plugin install https://github.com/humanmade/delegated-oauth2/archive/refs/heads/master.zip

Also on Packagist as humanmade/delegated-oauth:

composer require humanmade/delegated-oauth

From the readme

Delegated Auth Delegate authentication and user management to another WordPress site. Support native WordPress logins via the login form, and OAuth 2 REST API requests. The OAuth 2 REST API plugin must be enabled on the delegated upstream site. When a login request is delegated to the upstream WordPress site a local cache of the user will be inserted into the WordPress database, mirroring all data, roles and capabilities. The login is synchronized on every request with the upstream WordPress site to make sure data is fresh and capabilities have not been removed. This can add some performance lag on all authenticated requests. Configuring Cookie Auth For Cookie auth to work correctly you must create an OAuth 2 application on the upstream WordPress site. Do so using the homeurl( '/hm-delegated-auth-callback' ) as the Callback URL, and configure this plugin with the Client ID in the PHP constant HMDELEGATEDAUTHCLIENTID. Note that if you are using multisite, this must use the home URL for the main site so that the callback URL is the same for the whole network. Delegated Auth then redirects internally between sites as necessary. Caching Access Token Authentication Checking the u

Read the full README on GitHub →

Releases

TagPublishedAssetDownloads
1.0.6Nov 19, 2024
1.0.5Dec 1, 2020
1.0.4Nov 25, 2020
1.0.3Sep 15, 2020
1.0.2Jan 29, 2020
1.0.1May 29, 2019