Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run test suite against multisite #16

Open
danielbachhuber opened this issue Apr 18, 2016 · 5 comments
Open

Run test suite against multisite #16

danielbachhuber opened this issue Apr 18, 2016 · 5 comments

Comments

@danielbachhuber
Copy link
Contributor

Because we're creating new users, we should make sure this plugin works as expected on multisite.

@audiovisuel-uqam
Copy link

Are plans for multisite feature still in the works?

@danielbachhuber
Copy link
Contributor Author

@audiovisuel-uqam Nothing specific on our radar at the moment. This issue is predominately for test coverage. Is there a specific need you're trying to solve?

@audiovisuel-uqam
Copy link

My bad, tested again and it works on multisite in our typical environment, for some reason it isn't working in an nginx setup we are testing.

@jithujoseph
Copy link

For me, on a multisite, we are always getting redirected back to the root site's dashboard rather than the requested site dashboard. We are using Simplesamlphp instead of OneLogin. The multisite is a sub-domain setup and not a sub-directory approach. Not sure if there's a fix for this...

@nicholsonjf
Copy link

nicholsonjf commented Mar 12, 2024

For me, on a multisite, we are always getting redirected back to the root site's dashboard rather than the requested site dashboard. We are using Simplesamlphp instead of OneLogin. The multisite is a sub-domain setup and not a sub-directory approach. Not sure if there's a fix for this...

We have subdomain and subdirectory sites in our network. We solved this by adding a check in our wp-saml-auth config file that checks if the current request contains the network_home_url(). We're using the OneLogin backend, so it may work differently if you're using SimpleSAML.

$is_main_domain = str_contains( home_url(), network_home_url() );
// sub-section of our config array
			'sp'           => array(
				'entityId' => $is_main_domain ? $network_home_url . '/' : home_url() . '/',
				'assertionConsumerService' => array(
					'url'  => $is_main_domain ? $network_home_url . '/wp-login.php' : wp_login_url(),
					'binding' => 'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST',
				),
			)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants