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
2 changed files with 4 additions and 2 deletions

View File

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

View File

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