minor auth fix (#3613)

This commit is contained in:
pablonyx 2025-01-06 09:51:02 -08:00 committed by GitHub
parent e3b2c9d944
commit f16ca1b735
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 2 deletions

View File

@ -109,7 +109,6 @@ def get_application() -> FastAPI:
include_auth_router_with_prefix(
application,
saml_router,
prefix="/auth/saml",
)
# RBAC / group access control

View File

@ -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"]