Merge branch 'open-webui:dev' into dev
This commit is contained in:
commit
08f4a2dff8
|
@ -1977,8 +1977,8 @@ async def oauth_login(provider: str, request: Request):
|
||||||
# - This is considered insecure in general, as OAuth providers do not always verify email addresses
|
# - This is considered insecure in general, as OAuth providers do not always verify email addresses
|
||||||
# 3. If there is no user, and ENABLE_OAUTH_SIGNUP is true, create a user
|
# 3. If there is no user, and ENABLE_OAUTH_SIGNUP is true, create a user
|
||||||
# - Email addresses are considered unique, so we fail registration if the email address is already taken
|
# - Email addresses are considered unique, so we fail registration if the email address is already taken
|
||||||
@app.get("/oauth/{provider}/callback") # Legacy endpoint
|
|
||||||
@app.get("/oauth/{provider}/login/callback")
|
@app.get("/oauth/{provider}/login/callback")
|
||||||
|
@app.get("/oauth/{provider}/callback") # Legacy endpoint
|
||||||
async def oauth_login_callback(provider: str, request: Request, response: Response):
|
async def oauth_login_callback(provider: str, request: Request, response: Response):
|
||||||
return await oauth_manager.handle_callback(request, provider, response)
|
return await oauth_manager.handle_callback(request, provider, response)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue