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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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
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.

1 participant