Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

feat: SSO MFA - Incorporate SSO into cli mfa method preferences #47839

Closed

Conversation

Joerger
Copy link
Contributor

@Joerger Joerger commented Oct 23, 2024

Part of the implementation of #44699

Implements the UX proposed in the RFD for CLI prompts.

Depends on #47874

Copy link

This pull request is automatically being deployed by Amplify Hosting (learn more).

Access this pull request here: https://pr-47839.d3pp5qlev8mo18.amplifyapp.com

@Joerger Joerger added the no-changelog Indicates that a PR does not require a changelog entry label Oct 23, 2024
@Joerger Joerger force-pushed the joerger/mfa-method-preferences branch 3 times, most recently from c824e93 to 2420095 Compare October 23, 2024 02:51
@Joerger Joerger mentioned this pull request Oct 23, 2024
lib/client/api.go Outdated Show resolved Hide resolved
lib/client/mfa/cli.go Outdated Show resolved Hide resolved
lib/client/mfa/cli.go Outdated Show resolved Hide resolved
lib/client/mfa/cli.go Outdated Show resolved Hide resolved
lib/client/mfa/cli.go Outdated Show resolved Hide resolved
lib/client/mfa/cli.go Show resolved Hide resolved
lib/client/mfa/cli.go Outdated Show resolved Hide resolved
lib/teleterm/daemon/mfaprompt.go Outdated Show resolved Hide resolved
@Joerger Joerger force-pushed the joerger/mfa-method-preferences branch from 9df809b to c95d128 Compare October 23, 2024 20:33
@Joerger Joerger force-pushed the joerger/mfa-method-preferences branch from b673e04 to 913a35c Compare October 23, 2024 20:57
@Joerger Joerger changed the base branch from master to joerger/cli-prompt-refactor October 23, 2024 20:57
lib/client/mfa/cli.go Show resolved Hide resolved
@@ -101,40 +107,71 @@ func (c *CLIPrompt) Run(ctx context.Context, chal *proto.MFAAuthenticateChalleng

promptOTP := chal.TOTP != nil
promptWebauthn := chal.WebauthnChallenge != nil
promptSSO := false // TODO(Joerger): check for SSO challenge once added in separate PR.
Copy link
Contributor

Choose a reason for hiding this comment

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

I do appreciate the small change but it looks like we are mainly adding dead code to this file. Would it make sense to do a bit more here, so at least we can test the "SSO not implemented" error? Or maybe move some changes to a PR where they are effective?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure, in that case I'll merge this into #46982

@Joerger Joerger closed this Oct 24, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
no-changelog Indicates that a PR does not require a changelog entry size/sm ui
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants