Skip to content

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

Merged
Joerger merged 1 commit intobranch/v17from
joerger/v17/refactor-reauthenticate
Dec 18, 2024
Merged

[v17] Refactor Reauthenticate components to handle generic MFA challenges.#50354
Joerger merged 1 commit intobranch/v17from
joerger/v17/refactor-reauthenticate

Conversation

@Joerger
Copy link
Copy Markdown
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
Comment thread lib/web/mfa.go
return OK(), nil
}

type deleteMfaDeviceRequest struct {
Copy link
Copy Markdown
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
Copy Markdown
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
Comment thread lib/web/apiserver.go
@aws-amplify-us-west-2
Copy link
Copy Markdown

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
Copy Markdown
Contributor Author

Joerger commented Dec 18, 2024

@ryanclark @rosstimothy Friendly ping to review this backport

@rosstimothy
Copy link
Copy Markdown
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
Copy Markdown
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
@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