mirror of
https://github.com/gravitational/teleport.git
synced 2026-10-25 00:19:07 +08:00
* 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>