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

SSO doesn't work when accessing wp-admin on subsite prior to the front-end #73

Open
jjeaton opened this issue Sep 6, 2016 · 6 comments

Comments

@jjeaton
Copy link

jjeaton commented Sep 6, 2016

Steps to reproduce:

  1. Create a network with 2 subsites and (subsite1.example.dev and subsite2.example.dev) and map domain aliases (subsite1.dev and subsite2.dev).
  2. Login to the first subsite (subsite1.dev).
  3. Navigate to subsite2.dev/wp-admin/
  4. Get redirected back to (subsite1.dev) without getting logged into subsite2.dev.

If you hit (subsite2.dev) prior to trying to access wp-admin, you are then logged in.

Is this intended behavior? Shouldn't hitting wp-admin also trigger the SSO flow to get you logged into the second site?

Site admins are irritated that whenever they use the "My Sites" menu to try to go to a different site's dashboard, they are redirected, until they hit Visit Site first.

@robrecord
Copy link

I resolved this by uninstalling Mercator, updating all references to the site URL in the database, and relying on WordPress' built-in domain redirection.

Rob Record
Web Designer/Developer
07535 271502 (tel:07535%20271502) | robrecord.com (http://robrecord.com)

On 6 Sep 2016, 18:40 +0100, Josh Eaton notifications@github.com, wrote:

Steps to reproduce:

Create a network with 2 subsites and (subsite1.example.dev and subsite2.example.dev) and map domain aliases (subsite1.dev and subsite2.dev).
Login to the first subsite (subsite1.dev).
Navigate to subsite2.dev/wp-admin/
Get redirected back to (subsite1.dev) without getting logged into subsite2.dev.

If you hit (subsite2.dev) prior to trying to access wp-admin, you are then logged in.

Is this intended behavior? Shouldn't hitting wp-admin also trigger the SSO flow to get you logged into the second site?

Site admins are irritated that whenever they use the "My Sites" menu to try to go to a different site's dashboard, they are redirected, until they hit Visit Site first.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub (#73), or mute the thread (https://github.com/notifications/unsubscribe-auth/AACYBBnXQt-1W8k2wpQZfdMBkVeaJiXNks5qnaJRgaJpZM4J2FSX).

@roborourke
Copy link
Contributor

@jjeaton I'm just about to get to SSO as part of an overhaul of the Mercator ecosystem. Working out the best way to create tests for it. I was able to reproduce your problem and you're right it shouldn't behave in that way as it doesn't really make sense from a user perspective.

@roborourke
Copy link
Contributor

@jjeaton so I'm clear are you using multinetwork too or just standard multisite?

@jjeaton
Copy link
Author

jjeaton commented Jan 13, 2017 via email

@jjeaton
Copy link
Author

jjeaton commented Jun 1, 2017

@roborourke any progress here? Will this issue get moved to the SSO repo when they split?

@roborourke
Copy link
Contributor

roborourke commented Jun 2, 2017 via email

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

3 participants