mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-03-26 17:51:54 +01:00
minor auth fix (#3613)
This commit is contained in:
parent
e3b2c9d944
commit
f16ca1b735
@ -109,7 +109,6 @@ def get_application() -> FastAPI:
|
||||
include_auth_router_with_prefix(
|
||||
application,
|
||||
saml_router,
|
||||
prefix="/auth/saml",
|
||||
)
|
||||
|
||||
# RBAC / group access control
|
||||
|
@ -157,7 +157,10 @@ def include_router_with_global_prefix_prepended(
|
||||
|
||||
|
||||
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:
|
||||
"""Wrapper function to include an 'auth' router with prefix + rate-limiting dependencies."""
|
||||
final_tags = tags or ["auth"]
|
||||
|
Loading…
x
Reference in New Issue
Block a user