Single Sign On in WordPress
Single Sign On in WordPress
Single Sign On in WordPress
I stumbled upon this module called OpenAM Authentication that I’m going to experiment with on a development server. Merely reading the plugin’s FAQ page has me very hopeful
Let’s assume that we have two websites, mentioned in your question – abc.com, xyz.abc.com, and their table prefixes are – ab_, xy_. Requirements Both websites must be installed within the same domain. Both websites must share the same database using different table prefixes. Both websites must share user tables ( ex. ab_users, ab_usermeta ). Websites’ … Read more
This is a pretty complicated setup. I would recommend using https://github.com/psignoret/aad-sso-wordpress.
Don’t need no cookies. WordPress automatically bypasses it for you if you pass an user (the one you need to login) object, fire this function on init (I think): $user_to_login = get_user_by( ‘id’, 1 ); // Check if user exists if( $user_to_login ) { wp_set_auth_cookie( $user_to_login->ID, False ); /** * Fire up the login process. … Read more
Let’s assume that we have two websites, mentioned in your question – abc.com, xyz.abc.com, and their table prefixes are – ab_, xy_. Requirements Both websites must be installed within the same domain. Both websites must share the same database using different table prefixes. Both websites must share user tables ( ex. ab_users, ab_usermeta ). Websites’ … Read more
I think this should definitely be doable. I think I would first try to get one of the LDAP authentication plugins — like Simple LDAP Login or LDAP Login Password and Role Manager — working, and then write a small custom plugin to handle the content authorization. Here’s a rough outline of the custom plugin’s … Read more