[Feature] UI - SSO: Add Team Mappings#20299
Merged
yuneng-jiang merged 3 commits intomainfrom Feb 3, 2026
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
Greptile OverviewGreptile SummaryAdded team mappings UI feature for SSO configuration, allowing users to specify a JWT field name that contains team IDs for Okta and Generic SSO providers.
Confidence Score: 5/5
|
| Filename | Overview |
|---|---|
| ui/litellm-dashboard/src/components/Settings/AdminSettings/SSOSettings/Modals/BaseSSOSettingsForm.tsx | Added team mappings checkbox and JWT field input for Okta and Generic providers with proper validation |
| ui/litellm-dashboard/src/components/Settings/AdminSettings/SSOSettings/Modals/EditSSOSettingsModal.tsx | Extracts and populates team mappings from SSO settings data when editing |
| ui/litellm-dashboard/src/components/Settings/AdminSettings/SSOSettings/SSOSettings.tsx | Displays team IDs JWT field as a Tag when team mappings are enabled for Okta/Generic providers |
| ui/litellm-dashboard/src/components/Settings/AdminSettings/SSOSettings/utils.ts | Processes team mappings payload for Okta and Generic providers when enabled |
Sequence Diagram
sequenceDiagram
participant User
participant UI as SSO Settings UI
participant Form as BaseSSOSettingsForm
participant Utils as processSSOSettingsPayload
participant API as Backend API
participant DB as Database
User->>UI: Opens SSO Settings
UI->>API: GET /sso/settings
API->>DB: Fetch SSO configuration
DB-->>API: Return SSOConfig (with team_mappings)
API-->>UI: Return SSO settings
UI->>UI: detectSSOProvider()
UI->>UI: Check if team_mappings exists
UI->>User: Display settings with Team IDs JWT Field Tag
User->>UI: Click "Edit SSO Settings"
UI->>Form: Open EditSSOSettingsModal
Form->>Form: Extract team_mappings from data
Form->>Form: Set use_team_mappings = true
Form->>Form: Set team_ids_jwt_field value
Form->>User: Display form with team mappings checkbox checked
User->>Form: Select Okta/Generic provider
Form->>User: Show "Use Team Mappings" checkbox
User->>Form: Check "Use Team Mappings"
Form->>User: Show "Team IDs JWT Field" input (required)
User->>Form: Enter JWT field name (e.g., "teams")
User->>Form: Click Save
Form->>Utils: processSSOSettingsPayload(formValues)
Utils->>Utils: Check provider supports team mappings
Utils->>Utils: Create team_mappings object
Utils->>Utils: Remove UI-only fields
Utils-->>Form: Return processed payload
Form->>API: PUT /sso/settings with team_mappings
API->>DB: Update SSO config with team_mappings
DB-->>API: Confirm update
API-->>Form: Success response
Form->>UI: Trigger refetch
UI->>User: Display updated settings
Note over User,DB: Delete Flow
User->>UI: Click "Delete SSO Settings"
UI->>API: PUT /sso/settings with all fields = null
Note right of API: Includes team_mappings: null
API->>DB: Clear SSO configuration
DB-->>API: Confirm deletion
API-->>UI: Success response
UI->>User: Show empty state
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
Adds team mappings UI to SSO settings. Users can configure team mappings for Okta and Generic SSO providers by enabling a checkbox and specifying the JWT field name that contains team IDs. The team mappings configuration is displayed in the SSO settings view and properly handled during edit and delete operations.
Screenshots