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

Remove SolveAuthenticateChallenge from MFA Ceremony in favor of PromptConstructor #47650

Merged
merged 3 commits into from
Oct 21, 2024

Conversation

Joerger
Copy link
Contributor

@Joerger Joerger commented Oct 17, 2024

Remove the extra (SolveAuthenticateChallenge) field MFA ceremony, as it had few callers and can be replaced by a static prompt constructor instead:

PromptConstructor: func(opts ...mfa.PromptOpt) mfa.Prompt {
	return mfa.PromptFunc(func(ctx context.Context, chal *proto.MFAAuthenticateChallenge (*proto.MFAAuthenticateResponse, error) {
		// solve MFA auth challenge
	})
},

Prerequisite for some SSO MFA changes to follow, which pass some SSO info as prompt opts.

Follow up to #46986

@Joerger Joerger added no-changelog Indicates that a PR does not require a changelog entry backport/branch/v16 and removed desktop-access labels Oct 17, 2024
api/mfa/ceremony.go Outdated Show resolved Hide resolved
@Joerger Joerger mentioned this pull request Oct 17, 2024
Co-authored-by: Marco Dinis <[email protected]>
@Joerger Joerger enabled auto-merge October 21, 2024 17:56
@Joerger Joerger added this pull request to the merge queue Oct 21, 2024
github-merge-queue bot pushed a commit that referenced this pull request Oct 21, 2024
…romptConstructor` (#47650)

* Remove mfa.Ceremony.SolveChallenge in favor of PromptFunc.

* Update api/mfa/ceremony.go

Co-authored-by: Marco Dinis <[email protected]>

---------

Co-authored-by: Marco Dinis <[email protected]>
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Oct 21, 2024
@Joerger Joerger added this pull request to the merge queue Oct 21, 2024
Merged via the queue into master with commit 6bf20b5 Oct 21, 2024
40 checks passed
@Joerger Joerger deleted the joerger/remove-unneeded-factor-in-mfa-ceremony branch October 21, 2024 18:57
@public-teleport-github-review-bot

@Joerger See the table below for backport results.

Branch Result
branch/v16 Failed

Joerger added a commit that referenced this pull request Oct 21, 2024
…romptConstructor` (#47650)

* Remove mfa.Ceremony.SolveChallenge in favor of PromptFunc.

* Update api/mfa/ceremony.go

Co-authored-by: Marco Dinis <[email protected]>

---------

Co-authored-by: Marco Dinis <[email protected]>
github-merge-queue bot pushed a commit that referenced this pull request Oct 23, 2024
…romptConstructor` (#47650) (#47769)

* Remove mfa.Ceremony.SolveChallenge in favor of PromptFunc.

* Update api/mfa/ceremony.go



---------

Co-authored-by: Marco Dinis <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport/branch/v16 no-changelog Indicates that a PR does not require a changelog entry size/sm
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants