fix error on enforce sso

This commit is contained in:
Ishaan Jaff 2024-05-20 13:02:56 -07:00
parent 561b00283c
commit d956020470

View file

@ -9000,7 +9000,7 @@ async def google_login(request: Request):
):
if premium_user != True:
raise ProxyException(
message="You must be a LiteLLM Enterprise user to use SSO. Meet with us to get a license: https://calendly.com/d/4mp-gd3-k5k/litellm-1-1-onboarding-chat",
message="You must be a LiteLLM Enterprise user to use SSO. If you have a license please set `LITELLM_LICENSE` in your env. If you want to obtain a license meet with us here: https://calendly.com/d/4mp-gd3-k5k/litellm-1-1-onboarding-chat You are seeing this error message because You set one of `MICROSOFT_CLIENT_ID`, `GOOGLE_CLIENT_ID`, or `GENERIC_CLIENT_ID` in your env. Please unset this",
type="auth_error",
param="premium_user",
code=status.HTTP_403_FORBIDDEN,