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

[v17] Refactor Reauthenticate components to handle generic MFA challenges. #50354

Merged
merged 1 commit into from
Dec 18, 2024

Conversation

Joerger
Copy link
Contributor

@Joerger Joerger commented Dec 17, 2024

Backport #49680 to branch/v17

e PR - https://github.com/gravitational/teleport.e/pull/5717

Note on /e: This PR is dependent on https://github.com/gravitational/teleport.e/pull/5717 and vice versa. Therefore I'll need to merge this PR with e PR as the head of /e. Then I'll make a follow up to update the e ref to master once the e PR is merged, shortly after this PR is merged.

@Joerger Joerger added the no-changelog Indicates that a PR does not require a changelog entry label Dec 17, 2024
@@ -75,6 +75,41 @@ func (h *Handler) deleteMFADeviceWithTokenHandle(w http.ResponseWriter, r *http.
return OK(), nil
}

type deleteMfaDeviceRequest struct {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
type deleteMfaDeviceRequest struct {
type deleteMFADeviceRequest struct {

Acronyms should be capitalized in Go code.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

👍 3b0172f

@github-actions github-actions bot requested review from avatus and ryanclark December 17, 2024 18:38
Copy link

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

Access this pull request here: https://pr-50354.d212ksyjt6y4yg.amplifyapp.com

@Joerger
Copy link
Contributor Author

Joerger commented Dec 18, 2024

@ryanclark @rosstimothy Friendly ping to review this backport

@rosstimothy
Copy link
Contributor

Looks like the linter isn't happy

#49680)

* Handle unified mfa response to create privileged token.

* Refactor useReauthenticate and Reauthenticate component.

* Refactor ChangePasswordWizard to use useReauthenticate.

* Fix mfa challenge option preference order; Fix reauthenticate component initial mfa option state.

* Remove useReAuthenticate's onAuthenticated parameter.

* Fix lint.

* Fix flaky test.

* Remove extra createPrivilegeToken call from the account page; Add new tokenless mfa endpoints to register/delete mfa devices; add TODOs to use new endpoints in v19+.

* Fix tests.

* Fix error handling in Web MFA flow.

* Update e ref.

* Fix stories.

* Fix lint.
@Joerger Joerger force-pushed the joerger/v17/refactor-reauthenticate branch from 8ef577f to 69f3830 Compare December 18, 2024 19:16
@Joerger
Copy link
Contributor Author

Joerger commented Dec 18, 2024

Looks like the linter isn't happy

Yeah branch/v17 has different lint rules from master for some reason, fixed.

@public-teleport-github-review-bot public-teleport-github-review-bot bot removed the request for review from avatus December 18, 2024 19:54
@Joerger Joerger added this pull request to the merge queue Dec 18, 2024
Merged via the queue into branch/v17 with commit a44e495 Dec 18, 2024
44 checks passed
@Joerger Joerger deleted the joerger/v17/refactor-reauthenticate branch December 18, 2024 20:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport 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.

4 participants