Skip to content

Conversation

@maxiuyuan
Copy link
Contributor

Problem: During the idp migration flow, the user won't be be linked to their SSO provider if they had 2fa enabled. This was due to the user not completing the security checks during after their redis has been verified.

Now if their account has been verified and they dont pass security checks, we redirect them to the 2fa flow so they could be linked with their SSO provider

https://getsentry.atlassian.net/browse/ER-856

@maxiuyuan maxiuyuan requested review from a team as code owners November 1, 2021 20:31
self._login(acting_user)
except self._NotCompletedSecurityChecks:
if acting_user.has_usable_password():
if acting_user.has_usable_password() or is_account_verified:
Copy link
Member

Choose a reason for hiding this comment

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

Can you write a comment + add a test for this?

This is one of those subtle edge-cases and I'd prefer if it's behaviour is documented.

@maxiuyuan maxiuyuan merged commit bc90a4a into master Nov 4, 2021
@maxiuyuan maxiuyuan deleted the ER-856 branch November 4, 2021 21:25
@github-actions github-actions bot locked and limited conversation to collaborators Nov 20, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants