-
Notifications
You must be signed in to change notification settings - Fork 16.3k
Update simple auth manager documentation to include token API #48454
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR updates the documentation configuration for the simple auth manager token API and refreshes the API documentation for both the Apache Airflow and Fab auth managers. Key changes include:
- Adding a new Redoc entry for the simple auth manager token API using its generated OpenAPI spec.
- Updating the Redoc configuration for the Apache Airflow REST API and Fab auth manager API to use module-inferred paths.
Files not reviewed (5)
- airflow-core/docs/core-concepts/auth-manager/index.rst: Language not supported
- airflow-core/docs/core-concepts/auth-manager/simple/index.rst: Language not supported
- airflow-core/docs/core-concepts/auth-manager/simple/sam-token-api-ref.rst: Language not supported
- airflow-core/docs/core-concepts/auth-manager/simple/token.rst: Language not supported
- providers/fab/docs/auth-manager/token.rst: Language not supported
Comments suppressed due to low confidence (2)
docs/conf.py:906
- [nitpick] Consider renaming the alias 'sam_openapi_file' to a more descriptive name such as 'simple_auth_manager_openapi_file' for improved readability.
from airflow.api_fastapi.auth.managers.simple.openapi import __file__ as sam_openapi_file
docs/conf.py:932
- [nitpick] Consider renaming 'fab_auth_manager_fastapi_api_file' to 'fab_auth_manager_fastapi_openapi_file' to clearly indicate that this file relates to the OpenAPI specification.
from airflow.providers.fab.auth_manager.api_fastapi.openapi import (__file__ as fab_auth_manager_fastapi_api_file,)
pierrejeambrun
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
edec48c to
9f8613c
Compare
Add documentation about how to generate a JWT token using simple auth manager. I also generate the API documentation for the simple auth manager token API.
^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named
{pr_number}.significant.rstor{issue_number}.significant.rst, in airflow-core/newsfragments.