mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-07-14 23:23:09 +02:00
remove dupes
This commit is contained in:
@ -131,13 +131,6 @@ def get_application() -> FastAPI:
|
|||||||
prefix="/auth",
|
prefix="/auth",
|
||||||
)
|
)
|
||||||
|
|
||||||
# Add refresh token endpoint for OIDC
|
|
||||||
include_auth_router_with_prefix(
|
|
||||||
application,
|
|
||||||
fastapi_users.get_refresh_router(auth_backend),
|
|
||||||
prefix="/auth",
|
|
||||||
)
|
|
||||||
|
|
||||||
elif AUTH_TYPE == AuthType.SAML:
|
elif AUTH_TYPE == AuthType.SAML:
|
||||||
include_auth_router_with_prefix(
|
include_auth_router_with_prefix(
|
||||||
application,
|
application,
|
||||||
|
@ -360,13 +360,6 @@ def get_application() -> FastAPI:
|
|||||||
prefix="/users",
|
prefix="/users",
|
||||||
)
|
)
|
||||||
|
|
||||||
# Add refresh token endpoint
|
|
||||||
include_auth_router_with_prefix(
|
|
||||||
application,
|
|
||||||
fastapi_users.get_refresh_router(auth_backend),
|
|
||||||
prefix="/auth",
|
|
||||||
)
|
|
||||||
|
|
||||||
if AUTH_TYPE == AuthType.GOOGLE_OAUTH:
|
if AUTH_TYPE == AuthType.GOOGLE_OAUTH:
|
||||||
# For Google OAuth, refresh tokens are requested by:
|
# For Google OAuth, refresh tokens are requested by:
|
||||||
# 1. Adding the right scopes
|
# 1. Adding the right scopes
|
||||||
|
Reference in New Issue
Block a user