This is an automated email from the ASF dual-hosted git repository.
vincbeck pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/main by this push:
new 921221b7d72 Set prefix to generate correctly the FAB Auth Manager API
ref (#52329)
921221b7d72 is described below
commit 921221b7d72fd041f4d56485988c05316bda4daf
Author: Joel Pérez Izquierdo <[email protected]>
AuthorDate: Mon Jun 30 19:53:20 2025 +0200
Set prefix to generate correctly the FAB Auth Manager API ref (#52329)
* set prefix to generate correctly the documentation because it is a
FastAPI subapplication of the main one mounted in /auth
* autogenerated openapi yaml file generated by pre-commits
---
.../api_fastapi/openapi/v2-fab-auth-manager-generated.yaml | 4 ++--
scripts/in_container/run_generate_openapi_spec_fab.py | 4 +++-
2 files changed, 5 insertions(+), 3 deletions(-)
diff --git
a/providers/fab/src/airflow/providers/fab/auth_manager/api_fastapi/openapi/v2-fab-auth-manager-generated.yaml
b/providers/fab/src/airflow/providers/fab/auth_manager/api_fastapi/openapi/v2-fab-auth-manager-generated.yaml
index 25f14bc15d3..15503e4d4bb 100644
---
a/providers/fab/src/airflow/providers/fab/auth_manager/api_fastapi/openapi/v2-fab-auth-manager-generated.yaml
+++
b/providers/fab/src/airflow/providers/fab/auth_manager/api_fastapi/openapi/v2-fab-auth-manager-generated.yaml
@@ -6,7 +6,7 @@ info:
endpoints to manage users and permissions managed by the FAB auth manager.
version: 0.1.0
paths:
- /token:
+ /auth/token:
post:
tags:
- FabAuthManager
@@ -44,7 +44,7 @@ paths:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
- /token/cli:
+ /auth/token/cli:
post:
tags:
- FabAuthManager
diff --git a/scripts/in_container/run_generate_openapi_spec_fab.py
b/scripts/in_container/run_generate_openapi_spec_fab.py
index 271b1a593e9..6aa09de304f 100755
--- a/scripts/in_container/run_generate_openapi_spec_fab.py
+++ b/scripts/in_container/run_generate_openapi_spec_fab.py
@@ -36,7 +36,9 @@ ProvidersManager().initialize_providers_configuration()
# Generate FAB auth manager openapi spec
fab_auth_manager_app = FabAuthManager().get_fastapi_app()
if fab_auth_manager_app:
- generate_openapi_file(app=fab_auth_manager_app,
file_path=FAB_AUTH_MANAGER_OPENAPI_SPEC_FILE)
+ generate_openapi_file(
+ app=fab_auth_manager_app,
file_path=FAB_AUTH_MANAGER_OPENAPI_SPEC_FILE, prefix="/auth"
+ )
validate_openapi_file(FAB_AUTH_MANAGER_OPENAPI_SPEC_FILE)
else:
console.print("[red]FAB auth manager app not found. Skipping OpenAPI spec
generation.[/]")