feat: add OIDC SSO login button#2051
Open
mxatmx wants to merge 1 commit into
Open
Conversation
Show a "Login with <provider>" button on the login page when OIDC is enabled in the backend config, mirroring the existing SAML button. - Login.vue: button guarded by mainConfig.oidc_enabled linking to /api/auth/oidc/login, with a loginOIDCButtonInfo computed label - i18n: add login_with_oidc / login_oidc keys (English source plus the translated locale files) Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> # Conflicts: # src/locales/da.json # src/locales/es.json # src/locales/fa.json # src/locales/fr.json # src/locales/ja.json # src/locales/ko.json # src/locales/nl.json # src/locales/pt.json # src/locales/ru.json # src/locales/zh.json # src/locales/zh_tw.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Shows a "Login with " button on the login page when OIDC is enabled in the backend config, mirroring the existing SAML button.
Changes
Login.vue: button guarded bymainConfig.oidc_enabledlinking to/api/auth/oidc/login, with aloginOIDCButtonInfocomputed labellogin_with_oidc/login_oidckeys across localesCompanion PR
Frontend half - requires the Zou backend PR cgwire/zou#1107 (OIDC routes +
oidc_enabled/oidc_idp_nameconfig flags). Merge together.