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

Fix SSO AuthRequest backwards compatibility. #13589

Merged
merged 2 commits into from
Jun 17, 2022

Conversation

Joerger
Copy link
Contributor

@Joerger Joerger commented Jun 16, 2022

Changes CertTTL in new types.XAuthRequest types from types.Duration to time.Duration.

types.Duration would marshal CertTTL as a string, but older Teleport services expect CertTTL to be marshaled as an int64 (time.Duration).

As mentioned in the issue, saml and oidc were also affected by this issue.

I tested this change with oidc on:

  • Auth master, Proxy master
  • Auth v9.3.6, Proxy master
  • Auth master, proxy v9.3.6

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

Fixes #13575

@github-actions github-actions bot added the tctl tctl - Teleport admin tool label Jun 16, 2022
@github-actions github-actions bot requested review from jakule and zmb3 June 16, 2022 20:22
@Joerger Joerger requested a review from rosstimothy June 16, 2022 20:29
@Joerger Joerger enabled auto-merge (squash) June 16, 2022 22:13
@Joerger Joerger force-pushed the joerger/fix-sso-backwards-comp branch from 1be4234 to 6ff145e Compare June 16, 2022 23:22
@Joerger Joerger merged commit 2aae5b5 into master Jun 17, 2022
@Joerger Joerger deleted the joerger/fix-sso-backwards-comp branch June 17, 2022 16:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-required tctl tctl - Teleport admin tool
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Broken SSO login backward compatibilty
3 participants