forked from phoenix/litellm-mirror
(docstring) /google-login
This commit is contained in:
parent
4dff18754d
commit
11d9caf88c
1 changed files with 7 additions and 0 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue