Skip to content

Commit

Permalink
Update airflow/api_fastapi/app.py
Browse files Browse the repository at this point in the history
Co-authored-by: Jed Cunningham <[email protected]>
  • Loading branch information
vincbeck and jedcunningham authored Dec 19, 2024
1 parent 432979c commit e4b4ae9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions airflow/api_fastapi/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,7 @@ def init_auth_manager(app: FastAPI | None = None) -> BaseAuthManager:
auth_manager = create_auth_manager()
auth_manager.init()

auth_manager_fastapi_app = auth_manager.get_fastapi_app()
if app and auth_manager_fastapi_app:
if app and auth_manager_fastapi_app := auth_manager.get_fastapi_app():
app.mount("/auth", auth_manager_fastapi_app)

return auth_manager
Expand Down

0 comments on commit e4b4ae9

Please sign in to comment.