The plugin description says from the MySites menu, which is on the admin side of the WordPress environment.
Does this plugin support SSO on the frontend?
]]>I tested this plugin with WordPress 6.5.2 + PHP Version 8.2.18 and it does NOT work. I also have Woocommerce installed.
When I log into the SiteA.com and click ‘proceed to checkout’ which redirects to SiteB.com checkout page, I am still asked to log in again.
Plugin is set up on both sites.
Do I have to do anything special to get this working or is there something with my site up that prevents this from working?
Just tested the plugin. Works w/ WordPress 6.4.2 + PHP 8.3
]]>Not a proper support topic – just want to say thank you for the code, and also to flag that it works ok on 6.2 (6.2.1) fine.
Plus a suggestion: a lot of multisite network sites (like ours) might have their own site switcher (and may even turn off the admin bar) so would do what I did which was to use your code to “roll my own” links
I like that the plugin is zero-config, so not suggesting adding admin options, but the code could have a public function something like this to create the link in a bespoke PHP theme
function multisite_sso_link( $logged_in_site, $switch_to_site ) {
return add_query_arg([
'msso-get-auth-from' => $logged_in_site,
'nonce' => wp_create_nonce('multisite-sso-' . $logged_in_site . '-' . $switch_to_site)
]);
}
and maybe a parameter to make add_action(‘wp_before_admin_bar_render’) optional. (I just commented it out)
I mean it’s easy to adapt your code if you are writing a bespoke multisite PHP theme already, but just a thought. cheers again
]]>Hi,
Is it possible to make sure users can only access sites on the multisite where they have a role?
I have sites on my network that I want to keep private to small groups of users, and sites that I want everyone to access.
Many thanks!
Kirsty
]]>Hi,
This plugin should provide a feature, that already should be working from WP-multi-site itself. I have trouble fixing this feature in multi-site-setup and because of that, trying this plugin to accomplish this alternative method.
The plugin is used/tested for what the description says it could do; one-central login/logout-session(per user) for the entire/all sub-sites on a multi-site-setup(with a single login/logout).
The login works fine! Trough the wp-admin, I can browse to all sub-sites(logged-in).
When visiting a different sub-site than logged-in started, that site will not show signs of the login-session(no admin-bar, even with a ‘full web-page refresh’), until ‘wp-admin’ URL is actually visited.
The logout does not go smooth. Login sessions regularly just stay active among different sub-sites, when trying to cross-multi-site-logout.
Looking forward to a replay,
Thank you.
I tried to install this plugin, unfortunately wordpress went into error when trying to active the plugin.
That is ashame since this seemed just what I was looking for.
]]>It seems it can happen that one is not properly logged in when going to another subsite. Block editor will not work (save) and console reveals all calls to REST API and AJAX returns 403 Forbidden.
Logging out, then back in, fixes this. That, however, makes this method not worth while and even dangerous for going high in CPU on server. When 403 is returned, block editor will retry endlesssly, many times per second and no error message (just hangs on save). If left at it, CPU peaks and stays high – server system (cPanel) may penalize this.
It seems browser need to have all cookies correct to be able use AJAX/REST.
]]>First off, I like this plugin so far! It’s pretty amazing except for one little issue-
So I am using a multisite network. There are 4 domains- we’ll just call them domain1.com, domain2.com, domain3.com, and domain4.com. domain1.com is the network “main” domain. When I go to any of the other domains from domain1.com, it works great! But when I go to domain3.com or anything not domain1.com, and try to login to any other site except domain1.com, it says something like “Single sign on was attempted with incorrect nonce” or something like that. I can’t get the error anymore after signing into the other domains from domain1.com.
Just reporting this bug in the hopes you can fix it in a future update- this plugin is worth money just for what it can do, and I’m glad it’s free!
]]>Will this work for end users as well. For example I own domain.com, domain.ca, domain.co.uk all within my multisite network. I’d like my site visitors who sign into domain.com to also be signed in to domain.ca and domain.co.uk. Is this possible with your plugin?
]]>