[Feature] UI - Login: New Login With SSO Button#20908
Merged
yuneng-jiang merged 2 commits intomainfrom Feb 11, 2026
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
Greptile OverviewGreptile SummaryChanges the default login behavior so users see a login form instead of being auto-redirected to SSO. Adds a "Login with SSO" button to the login page that is enabled when SSO is configured and disabled (with a popover hint) when it's not. The
Confidence Score: 4/5
|
| Filename | Overview |
|---|---|
| litellm/proxy/discovery_endpoints/ui_discovery_endpoints.py | Changed default of AUTO_REDIRECT_UI_LOGIN_TO_SSO from "true" to "false", added sso_configured field to the response by calling _has_user_setup_sso() once and reusing the result. |
| litellm/types/proxy/discovery_endpoints/ui_discovery_endpoints.py | Added sso_configured: bool field to the UiDiscoveryEndpoints Pydantic model. |
| ui/litellm-dashboard/src/app/login/LoginPage.tsx | Added "Login with SSO" button that is enabled when SSO is configured (navigates to SSO flow) and disabled with a Popover when SSO is not configured. |
| ui/litellm-dashboard/src/components/networking.tsx | Added sso_configured: boolean to the LiteLLMWellKnownUiConfig TypeScript interface. |
| docs/my-website/docs/proxy/config_settings.md | Updated documentation to reflect the new default value of AUTO_REDIRECT_UI_LOGIN_TO_SSO from true to false. |
Sequence Diagram
sequenceDiagram
participant User
participant LoginPage
participant UIConfigEndpoint as /.well-known/litellm-ui-config
participant SSOFlow as /sso/key/generate
User->>LoginPage: Navigate to login
LoginPage->>UIConfigEndpoint: GET ui config
UIConfigEndpoint-->>LoginPage: { sso_configured, auto_redirect_to_sso, ... }
alt auto_redirect_to_sso is true
LoginPage->>SSOFlow: Redirect to SSO
else sso_configured is true
LoginPage-->>User: Show login form + enabled "Login with SSO" button
User->>SSOFlow: Click "Login with SSO"
else sso_configured is false
LoginPage-->>User: Show login form + disabled "Login with SSO" button
end
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.
Relevant issues
Pre-Submission checklist
Please complete all items before asking a LiteLLM maintainer to review your PR
tests/litellm/directory, Adding at least 1 test is a hard requirement - see detailsmake test-unitCI (LiteLLM team)
Branch creation CI run
Link:
CI run for the last commit
Link:
Merge / cherry-pick CI run
Links:
Type
🆕 New Feature
✅ Test
Changes
AUTO_REDIRECT_UI_LOGIN_TO_SSOnow defaults tofalseinstead oftrue. When SSO is configured, users see the login form by default instead of being automatically redirected to SSO./.well-known/litellm-ui-configendpoint now includessso_configuredso the UI can conditionally render the SSO button.Screenshots