mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-09-20 04:37:09 +02:00
minor auth fix (#3613)
This commit is contained in:
@@ -109,7 +109,6 @@ def get_application() -> FastAPI:
|
|||||||
include_auth_router_with_prefix(
|
include_auth_router_with_prefix(
|
||||||
application,
|
application,
|
||||||
saml_router,
|
saml_router,
|
||||||
prefix="/auth/saml",
|
|
||||||
)
|
)
|
||||||
|
|
||||||
# RBAC / group access control
|
# RBAC / group access control
|
||||||
|
@@ -157,7 +157,10 @@ def include_router_with_global_prefix_prepended(
|
|||||||
|
|
||||||
|
|
||||||
def include_auth_router_with_prefix(
|
def include_auth_router_with_prefix(
|
||||||
application: FastAPI, router: APIRouter, prefix: str, tags: list[str] | None = None
|
application: FastAPI,
|
||||||
|
router: APIRouter,
|
||||||
|
prefix: str | None = None,
|
||||||
|
tags: list[str] | None = None,
|
||||||
) -> None:
|
) -> None:
|
||||||
"""Wrapper function to include an 'auth' router with prefix + rate-limiting dependencies."""
|
"""Wrapper function to include an 'auth' router with prefix + rate-limiting dependencies."""
|
||||||
final_tags = tags or ["auth"]
|
final_tags = tags or ["auth"]
|
||||||
|
Reference in New Issue
Block a user