-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Bring back previous u2f challenge response for web terminal #8830
Conversation
// Get the common challenge fields from the first item. | ||
// All of these fields should be identical for all u2fChals. | ||
Challenge: u2fChals[0].Challenge, | ||
AppID: u2fChals[0].AppID, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will this indexing always pass? Can you ever get empty u2fChals
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes it will always pass b/c we do a length check before we enter this switch case: https://github.com/gravitational/teleport/blob/master/lib/web/terminal.go#L352
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bot.
Fixes a regression bug, where firefox still requires global
appId
andchallenge
, unlike Chrome where it looks for it among theu2f_challenges
list. I could've handled this in the client side by doing the same thing as we did here, but decided to keep the previous functionality