diff --git a/litellm/proxy/proxy_server.py b/litellm/proxy/proxy_server.py index 6416044d8ca..4e7ef416e9d 100644 --- a/litellm/proxy/proxy_server.py +++ b/litellm/proxy/proxy_server.py @@ -7925,6 +7925,7 @@ async def auth_callback(request: Request): "models": getattr(user_info, "models", []), "user_id": getattr(user_info, "user_id", user_id), "user_email": getattr(user_info, "user_id", user_email), + "user_role": getattr(user_info, "user_role", None), } user_role = getattr(user_info, "user_role", None) diff --git a/ui/litellm-dashboard/src/components/admins.tsx b/ui/litellm-dashboard/src/components/admins.tsx index 926df9b87cb..cff4ca2b875 100644 --- a/ui/litellm-dashboard/src/components/admins.tsx +++ b/ui/litellm-dashboard/src/components/admins.tsx @@ -61,6 +61,7 @@ const AdminPanel: React.FC = ({ const [isInstructionsModalVisible, setIsInstructionsModalVisible] = useState(false); const handleAddSSOOk = () => { + setIsAddSSOModalVisible(false); form.resetFields(); }; @@ -71,10 +72,11 @@ const handleAddSSOCancel = () => { }; const handleShowInstructions = (formValues: Record) => { + handleAdminCreate(formValues); + handleSSOUpdate(formValues); setIsAddSSOModalVisible(false); setIsInstructionsModalVisible(true); // Optionally, you can call handleSSOUpdate here with the formValues - // handleSSOUpdate(formValues); }; const handleInstructionsOk = () => { @@ -439,10 +441,17 @@ const handleInstructionsCancel = () => { labelAlign="left" > <> + + + @@ -450,7 +459,7 @@ const handleInstructionsCancel = () => { @@ -458,7 +467,7 @@ const handleInstructionsCancel = () => {