diff --git a/docs/my-website/docs/proxy/ui.md b/docs/my-website/docs/proxy/ui.md index 6a828075a..a3eaac3c0 100644 --- a/docs/my-website/docs/proxy/ui.md +++ b/docs/my-website/docs/proxy/ui.md @@ -77,6 +77,28 @@ litellm_settings: #### Step 2: Setup Oauth Client + + +1. Add Okta credentials to your .env + +```bash +GENERIC_CLIENT_ID = "" +GENERIC_CLIENT_SECRET = "" +GENERIC_AUTHORIZATION_ENDPOINT = "/authorize" # https://dev-2kqkcd6lx6kdkuzt.us.auth0.com/authorize +GENERIC_TOKEN_ENDPOINT = "/token" # https://dev-2kqkcd6lx6kdkuzt.us.auth0.com/oauth/token +GENERIC_USERINFO_ENDPOINT = "/userinfo" # https://dev-2kqkcd6lx6kdkuzt.us.auth0.com/userinfo +``` + +You can get your domain specific auth/token/userinfo endpoints at `/.well-known/openid-configuration` + +2. Add proxy url as callback_url on Okta + +On Okta, add the 'callback_url' as `/sso/callback` + + + + + - Create a new Oauth 2.0 Client on https://console.cloud.google.com/ @@ -115,7 +137,6 @@ MICROSOFT_TENANT="5a39737 - A generic OAuth client that can be used to quickly create support for any OAuth provider with close to no code diff --git a/docs/my-website/img/okta_callback_url.png b/docs/my-website/img/okta_callback_url.png new file mode 100644 index 000000000..ef10ddfb2 Binary files /dev/null and b/docs/my-website/img/okta_callback_url.png differ diff --git a/litellm/proxy/_experimental/out/404.html b/litellm/proxy/_experimental/out/404.html deleted file mode 100644 index fc813d761..000000000 --- a/litellm/proxy/_experimental/out/404.html +++ /dev/null @@ -1 +0,0 @@ -404: This page could not be found.LiteLLM Dashboard

404

This page could not be found.

\ No newline at end of file diff --git a/litellm/proxy/_experimental/out/model_hub.html b/litellm/proxy/_experimental/out/model_hub.html deleted file mode 100644 index ab4594aac..000000000 --- a/litellm/proxy/_experimental/out/model_hub.html +++ /dev/null @@ -1 +0,0 @@ -LiteLLM Dashboard \ No newline at end of file diff --git a/litellm/proxy/_experimental/out/onboarding.html b/litellm/proxy/_experimental/out/onboarding.html deleted file mode 100644 index 65a15486d..000000000 --- a/litellm/proxy/_experimental/out/onboarding.html +++ /dev/null @@ -1 +0,0 @@ -LiteLLM Dashboard \ No newline at end of file diff --git a/litellm/proxy/proxy_server.py b/litellm/proxy/proxy_server.py index d031ca687..c715878ad 100644 --- a/litellm/proxy/proxy_server.py +++ b/litellm/proxy/proxy_server.py @@ -13070,7 +13070,9 @@ async def auth_callback(request: Request): user_role = getattr(result, generic_user_role_attribute_name, None) if user_id is None: - user_id = getattr(result, "first_name", "") + getattr(result, "last_name", "") + _first_name = getattr(result, "first_name", "") or "" + _last_name = getattr(result, "last_name", "") or "" + user_id = _first_name + _last_name user_info = None user_id_models: List = []