Files
teleport/lib/auth
Chris ThachandZac Bergquist 918f1a4e71 Store ValidatedMFAChallenge resource after successful MFA challenge validation (#62494)
* Add ValidatedMFAChallenge backend storage service and wire to MFA gRPC service to store on create/validate MFA challenge.

Signed-off-by: Chris Thach <chris.thach@goteleport.com>

* Rename to just local.MFAService. More polish.

Signed-off-by: Chris Thach <chris.thach@goteleport.com>

* Refactor for begin SSO to use params struct.

Signed-off-by: Chris Thach <chris.thach@goteleport.com>

* Ensure target cluster is valid. Add more test coverage. Improve consistency.

Signed-off-by: Chris Thach <chris.thach@goteleport.com>

* Make consistent.

Signed-off-by: Chris Thach <chris.thach@goteleport.com>

* Fixed wrong refs.

* Add backend MFA service for managing MFA resources.

Signed-off-by: Chris Thach <chris.thach@goteleport.com>

* Extract backend MFA service.

* Address comments from peer review.

Signed-off-by: Chris Thach <chris.thach@goteleport.com>

* Use cmp.Diff for comparing want and got.

Signed-off-by: Chris Thach <chris.thach@goteleport.com>

* Apply suggestions from code review

* Apply suggestions from code review

Co-authored-by: Zac Bergquist <zac.bergquist@goteleport.com>

* Remove non-idiomatic ctx nil check.

Signed-off-by: Chris Thach <chris.thach@goteleport.com>

* Remove alias in comment.

Signed-off-by: Chris Thach <chris.thach@goteleport.com>

* Remove fake clock.

Signed-off-by: Chris Thach <chris.thach@goteleport.com>

* Remove testing t param. Fix missing whitespace before package.

Signed-off-by: Chris Thach <chris.thach@goteleport.com>

* Simplify and use proto.Clone.

Signed-off-by: Chris Thach <chris.thach@goteleport.com>

* Use assert to keep tests going after failure.

Signed-off-by: Chris Thach <chris.thach@goteleport.com>

* Create sso.go. Remove redundant user comment. Use authz.MFAAuthData for consistency.

Signed-off-by: Chris Thach <chris.thach@goteleport.com>

* Verify challenge is stored after validate.

Signed-off-by: Chris Thach <chris.thach@goteleport.com>

* Make challenge construction more readable. Simplify tests and use helpers.

Signed-off-by: Chris Thach <chris.thach@goteleport.com>

* Split emit audit event into helper to simplify.

Signed-off-by: Chris Thach <chris.thach@goteleport.com>

* Use GetRemoteCluster to simplify.

Signed-off-by: Chris Thach <chris.thach@goteleport.com>

* Clean up and polish

Signed-off-by: Chris Thach <chris.thach@goteleport.com>

* Apply suggestions from code review

Co-authored-by: Zac Bergquist <zac.bergquist@goteleport.com>

---------

Signed-off-by: Chris Thach <chris.thach@goteleport.com>
Co-authored-by: Zac Bergquist <zac.bergquist@goteleport.com>
2026-01-09 15:42:38 +00:00
..
2025-10-01 20:30:50 +00:00
2025-12-18 20:35:15 +00:00
2025-12-18 20:35:15 +00:00
2025-10-27 23:02:20 +00:00
2025-01-06 21:31:53 +00:00
2025-01-06 21:31:53 +00:00
2025-01-06 21:31:53 +00:00