humanmade / Mercator

WordPress multisite domain mapping for the modern era.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

jjeaton opened this issue · comments

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.

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).

@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.

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

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