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

Autogen update: totp and recovery codes #185

Merged
merged 7 commits into from
Jan 23, 2024

Conversation

taronish-stytch
Copy link
Contributor

No description provided.

@taronish-stytch taronish-stytch requested a review from a team as a code owner January 22, 2024 22:29
stytch/b2b/api/recovery_codes.py Outdated Show resolved Hide resolved
Comment on lines 307 to 311

class WebAuthnFactor(pydantic.BaseModel):
webauthn_registration_id: str
domain: str
user_agent: Optional[str] = None
# ENDMANUAL(WebAuthnFactor)
user_agent: str
Copy link
Contributor

Choose a reason for hiding this comment

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

This was already defined above, so now there are two. Either it shouldn't be manual (if it's already defined in the proto defs) or you just need to rerun once more so that it gets deduped

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah the manual was removed in another PR and is fixed now when I merged main

Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Contributor

Choose a reason for hiding this comment

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

Good catch. This would not be okay to roll back. Instead we need to mark this as an explicitly optional field in the protos, cc @taronish-stytch

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Contributor

@logan-stytch logan-stytch left a comment

Choose a reason for hiding this comment

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

I'm going to approve to unblock, but take care to make the change to have that field be optional so it doesn't reintroduce the bug that @ollie-stytch linked.

Comment on lines 307 to 311

class WebAuthnFactor(pydantic.BaseModel):
webauthn_registration_id: str
domain: str
user_agent: Optional[str] = None
# ENDMANUAL(WebAuthnFactor)
user_agent: str
Copy link
Contributor

Choose a reason for hiding this comment

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

Good catch. This would not be okay to roll back. Instead we need to mark this as an explicitly optional field in the protos, cc @taronish-stytch

@taronish-stytch taronish-stytch merged commit 309d56c into main Jan 23, 2024
6 checks passed
@taronish-stytch taronish-stytch deleted the taronish/totp-recover-codes branch January 23, 2024 18:12
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