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

Bring back previous u2f challenge response for web terminal #8830

Merged
merged 3 commits into from
Nov 3, 2021

Conversation

kimlisa
Copy link
Contributor

@kimlisa kimlisa commented Nov 2, 2021

Fixes a regression bug, where firefox still requires global appId and challenge, unlike Chrome where it looks for it among the u2f_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

@kimlisa kimlisa enabled auto-merge (squash) November 2, 2021 18:36
// 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,
Copy link
Contributor

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?

Copy link
Contributor Author

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

Copy link
Contributor

@russjones russjones left a comment

Choose a reason for hiding this comment

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

Bot.

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