Skip to content

Fix Jetpack SSO Compatibility#276

Merged
kasparsd merged 1 commit intomasterfrom
fix/jetpack-sso-compat
Apr 12, 2019
Merged

Fix Jetpack SSO Compatibility#276
kasparsd merged 1 commit intomasterfrom
fix/jetpack-sso-compat

Conversation

@joshbetz
Copy link
Copy Markdown
Collaborator

After SSO, we successfully see the two factor verification. The problem is that the query string for SSO is like ?action=jetpack-sso&result=success&user_id=<redacted>&sso_nonce=<redacted>. If we try to redirect back to that page, we get into a loop where SSO tries to login again, even though we're already logged in (and the nonce is no longer valid). We can redirect to /wp-admin/ instead of REQEUST_URI.

After SSO, we successfully see the two factor verification. The problem is that the query string for SSO is like `?action=jetpack-sso&result=success&user_id=<redacted>&sso_nonce=<redacted>`. If we try to redirect back to that page, we get into a loop where SSO tries to login again, even though we're already logged in (and the nonce is no longer valid). We can redirect to /wp-admin/ instead of `REQEUST_URI`.
Copy link
Copy Markdown
Collaborator

@kasparsd kasparsd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Can't think of any scenarios where this could cause a problem.

@kasparsd kasparsd merged commit 5ae6b1b into master Apr 12, 2019
@kasparsd kasparsd deleted the fix/jetpack-sso-compat branch April 12, 2019 16:41
joshbetz added a commit to Automattic/vip-go-mu-plugins that referenced this pull request Apr 12, 2019
Allows two-factor to work with Jetpack SSO

WordPress/two-factor#276
@jeffpaul jeffpaul modified the milestones: 0.4.1, 0.5.0 Jul 2, 2025
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

Successfully merging this pull request may close these issues.

3 participants