(docstring) /google-login

This commit is contained in:
ishaan-jaff 2024-01-27 16:56:17 -08:00
parent 9d5bfa45c1
commit 4731f869e3

View file

@ -2859,6 +2859,13 @@ async def user_auth(request: Request):
@app.get("/google-login/key/generate", tags=["experimental"]) @app.get("/google-login/key/generate", tags=["experimental"])
async def google_login(request: Request): 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") GOOGLE_REDIRECT_URI = os.getenv("GOOGLE_REDIRECT_URI")
if GOOGLE_REDIRECT_URI is None: if GOOGLE_REDIRECT_URI is None:
raise ProxyException( raise ProxyException(