From 11d9caf88c7951076e0c805374afe86326fa3eda Mon Sep 17 00:00:00 2001 From: ishaan-jaff Date: Sat, 27 Jan 2024 16:56:17 -0800 Subject: [PATCH] (docstring) /google-login --- litellm/proxy/proxy_server.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/litellm/proxy/proxy_server.py b/litellm/proxy/proxy_server.py index bfa71262a..e5b6af97f 100644 --- a/litellm/proxy/proxy_server.py +++ b/litellm/proxy/proxy_server.py @@ -2855,6 +2855,13 @@ async def user_auth(request: Request): @app.get("/google-login/key/generate", tags=["experimental"]) async def google_login(request: Request): + """ + Create Proxy API Keys using Google Workspace SSO. Requires setting GOOGLE_REDIRECT_URI in .env + + GOOGLE_REDIRECT_URI should be the your deployed proxy endpoint, e.g. GOOGLE_REDIRECT_URI="https://litellm-production-7002.up.railway.app" + Example: + + """ GOOGLE_REDIRECT_URI = os.getenv("GOOGLE_REDIRECT_URI") if GOOGLE_REDIRECT_URI is None: raise ProxyException(