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

SAML: Support auto login #61685

Merged
merged 5 commits into from Jan 19, 2023
Merged

SAML: Support auto login #61685

merged 5 commits into from Jan 19, 2023

Conversation

alexanderzobnin
Copy link
Contributor

@alexanderzobnin alexanderzobnin commented Jan 18, 2023

What is this feature?

This PR adds support for SAML auto login. Also, it adds support for individual auto_login setting for each OAuth provider. Global oauth_auto_login setting is deprecated, but still working. Logic:

  1. If oauth_auto_login setting is enabled and no auto_login settings set, then behave as before.
  2. If oauth_auto_login setting is enabled and any OAuth section has auto_login enabled, then ignore auth-specific settings (behave as before).
  3. If oauth_auto_login setting isn't configured, then auth-specific auto_login takes effect.
  4. if multiple auto_login settings configured, then auto login is skipped with warning.

Why do we need this feature?

Auto login feature should be unified across all providers (which support redirect auth).

Special notes for your reviewer:

@alexanderzobnin alexanderzobnin marked this pull request as ready for review January 19, 2023 13:42
@alexanderzobnin alexanderzobnin requested review from mgyongyosi, idafurjes, yangkb09 and ying-jeanne and removed request for a team January 19, 2023 13:42
pkg/api/login.go Outdated Show resolved Hide resolved
@alexanderzobnin alexanderzobnin merged commit 60ef88c into main Jan 19, 2023
@alexanderzobnin alexanderzobnin deleted the alexz/saml-autologin branch January 19, 2023 14:53
@dsotirakis dsotirakis modified the milestones: 9.4.0, 9.4.0-beta1 Jan 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants