strangerstudios / wp-sso Goto Github PK
View Code? Open in Web Editor NEWConnect multiple non-multisite WordPress sites together to share logins through SSO.
Connect multiple non-multisite WordPress sites together to share logins through SSO.
=== WP Single Sign On (SSO) === Contributors: strangerstudios Tags: authentication, sso, single sign on Requires at least: 5 Tested up to: 6.0.1 Stable tag: 0.1.2 Connect multiple non-multisite WordPress sites together to share logins. == Description == This plugin is useful if you want to allow users from one WordPress site to log into another WordPress site. While this can be achieved with WordPress Multisite, sometimes you'd rather keep the sites as individual WordPress installations. This plugin should be installed and activated on both the "host" and "client" sites. The host site is the main site where users will already have accounts. There should only be one site configured as a host. There can be multiple client sites pointing to the same host. When someone tries to log into a client site, if the provided username and password doesn't work, the plugin will attempt to connect to the host site with the same username and password. If that authentication works, then either a new user is created on the client site or the password of the user on the client site is updated. New users are given the default role on the client site. This role should be "Subscriber" by default, but double check the general settings. Make sure subscribers only have access to what you want them to have access to. == Installation == = Setup the Host = 1. Download the latest version of the plugin. 1. Unzip the downloaded file to your computer. 1. Upload the /wp-sso/ directory to the /wp-content/plugins/ directory of your site. 1. Activate the plugin through the 'Plugins' menu in WordPress. 1. Go to Settings -> WP SSO. 1. Check the box to enable host. 1. Copy the host URL. 1. Save settings. = Setup a Client = 1. Download the latest version of the plugin. 1. Unzip the downloaded file to your computer. 1. Upload the /wp-sso/ directory to the /wp-content/plugins/ directory of your site. 1. Activate the plugin through the 'Plugins' menu in WordPress. 1. Go to Settings -> WP SSO. 1. Check the box to enable client. 1. Paste the host URL from the host site into the box. 1. Save settings. Now users from the host site will be able to log into the client sites with the same username and passwords. == Changelog == = 0.1.2 - 2022-07-22 = * BUG FIX: Fixed the version constant which was throwing an error. = 0.1.1 - 2022-07-21 = * BUG FIX: Updated Basic Authentication code to support subfolder multisite installs. * ENHANCEMENT: Handling WP_Error results when attempting to connect to the host. = .1 = * Initial commit.
it seems this sso could not only set a default wp_role ... but perhaps clone the hosts pmpro level to the client ... or would there be some caveat to that?
thanks
-DJ
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.