You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
Added
Reuse completed local sign-ins across mapped HTTPS domains through a browser-bound, single-use hand-off to the identity site. Preserve local password/two-factor login and destination-site membership; refuse conflicting hub identities.
Hand off only accounts that can reach another site — super admins of any network using the identity site, and members of several sites when the scope allows members. Site-local users are never redirected. The pv_wpms_sso/hand_off_local_login filter overrides the rule.
Executable BDD for local, network, cross-network, and OneLogin journeys, with stable behavior IDs and isolated HTTPS browser checks.
Login-page session check: opening a site's login page asks the network's root or designated identity site, by one redirect, whether this browser already has a session that may enter the site. If so you are signed in automatically with a signed single-use ticket (or, per network, offered "Continue as {name}"); if not, the normal login form appears with no SSO button. Works in every browser, across mapped domains and across networks of a wp-multi-network (same-database) install; networks with different identity sites stay separate. Super-admin-default scope, configurable per network. The pv_wpms_sso/check_session_on_login_page filter restores the always-visible button.
External single sign-on via SAML 2.0 (OneLogin, Okta, any SAML IdP): an additional login button, SP metadata endpoint, strict signature/audience/replay validation at the identity site, email-based user mapping with opt-in auto-provisioning, and the same ticket hand-off into every site of the network. Powered by bundled onelogin/php-saml (MIT).
Fixed
Keep every query argument of the post-login destination through the identity-site hand-off, and stop a crafted destination from overriding hand-off parameters.
Keep WordPress's default landing page after a local login: members who cannot edit posts reach their profile, and accounts without a role on the site are redirected by WordPress as before.
Tolerate unexpected login_redirect values from other plugins instead of failing the login.
Remove local-session hand-off transients on uninstall.
Preserve root-relative return paths on subdirectory sites and match session-probe origins by scheme, hostname, and port.
Return SAML users to their registered mapped-domain destination instead of the hub fallback; use the destination dashboard when no return path was requested.
Recognize the hub's valid login cookie during nonce-less SSO REST redirects and session probes, without changing authentication on other REST routes.
Enforce destination scope inside ticket redemption and reject archived/deleted/spam sites as trusted SSO sources or clients.
Describe the broad network_users scope as any account in the shared installation, rather than implying network membership.