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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename credential email to identifier in WebAuthn poller #7623

Merged
merged 1 commit into from May 3, 2024

Conversation

jenshenny
Copy link
Member

@jenshenny jenshenny commented May 2, 2024

What was the end-user or developer problem that led to this PR?

Fixes #7553,

#7422 renames credential email to identifier so it fits username and email. However, this wasn't updated in the Webauthn logic, breaking MFA sign ins with it.

What is your fix for the problem, implemented in this PR?

Use the identifier key instead of email when referencing credentials in the webauthn poller. Added error handling such that future renames will be caught through tests.

Thinking if there is a way to not pass credentials to the poller class and have it be dependent in the long term. 馃

Make sure the following tasks are checked

@jenshenny jenshenny marked this pull request as ready for review May 2, 2024 17:24
Copy link
Member

@deivid-rodriguez deivid-rodriguez left a comment

Choose a reason for hiding this comment

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

Oh my, thanks for fixing this @jenshenny! And sorry for creating such a stupid regression 馃槵

@deivid-rodriguez
Copy link
Member

I'll sneak in this fix into the versions I'm about to release!

@deivid-rodriguez deivid-rodriguez merged commit 53c6223 into rubygems:master May 3, 2024
75 checks passed
deivid-rodriguez added a commit that referenced this pull request May 3, 2024
Rename credential email to identifier in WebAuthn poller

(cherry picked from commit 53c6223)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Any operation from rubygems with webauthn hangs and timeout
3 participants