The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
fix(uiaccesscontrolform.tsx): set ui access mode to none when all_authenticated_users is set
Krrish Dholakia1931335bc367
diff --git a/ui/litellm-dashboard/src/components/UIAccessControlForm.tsx b/ui/litellm-dashboard/src/components/UIAccessControlForm.tsxindex 542fc9d9ab9..5ef75d3835c 100644--- a/ui/litellm-dashboard/src/components/UIAccessControlForm.tsx+++ b/ui/litellm-dashboard/src/components/UIAccessControlForm.tsx@@ -60,13 +60,22 @@ const UIAccessControlForm: React.FC<UIAccessControlFormProps> = ({ accessToken,setLoading(true);try {// Transform form data to match API expected structure- const apiPayload = {- ui_access_mode: {- type: formValues.ui_access_mode_type,- restricted_sso_group: formValues.restricted_sso_group,- sso_group_jwt_field: formValues.sso_group_jwt_field,- }- };+ let apiPayload;++ if (formValues.ui_access_mode_type === 'all_authenticated_users') {+ // Set ui_access_mode to none when all_authenticated_users is selected+ apiPayload = {+ ui_access_mode: "none"+ };+ } else {+ apiPayload = {+ ui_access_mode: {+ type: formValues.ui_access_mode_type,+ restricted_sso_group: formValues.restricted_sso_group,+ sso_group_jwt_field: formValues.sso_group_jwt_field,+ }+ };+ }await updateSSOSettings(accessToken, apiPayload);onSuccess();