Skip to content

Conversation

@vincbeck
Copy link
Contributor

@vincbeck vincbeck commented Mar 28, 2025

While working on the documentation I realized something was missing in simple auth manager. We need to have an API to generate a token when [core] simple_auth_manager_all_admins is True. The route GET /auth/token in simple auth manager currently logs in the user but we need to have both:

  • An api to generate the token so that users can generate a JWT token to access Airflow API
  • A route to log in the user when the option is enabled

I also renamed jwt_token key from the API responses to access_token to follow standards.


^ 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.rst or {issue_number}.significant.rst, in airflow-core/newsfragments.

@boring-cyborg boring-cyborg bot added area:API Airflow's REST/HTTP API area:production-image Production image improvements and fixes area:providers provider:fab labels Mar 28, 2025
@vincbeck vincbeck force-pushed the vincbeck/token_api branch 2 times, most recently from 6c15c58 to 0c5ec30 Compare March 28, 2025 14:27
@vincbeck vincbeck force-pushed the vincbeck/token_api branch from 0c5ec30 to 1d20e78 Compare March 28, 2025 15:28
@vincbeck vincbeck force-pushed the vincbeck/token_api branch from 1d20e78 to 0f76c5c Compare March 31, 2025 13:05
@vincbeck vincbeck merged commit b9026d3 into apache:main Mar 31, 2025
91 checks passed
@vincbeck vincbeck deleted the vincbeck/token_api branch March 31, 2025 13:55
shubham-pyc pushed a commit to shubham-pyc/airflow that referenced this pull request Apr 2, 2025
nailo2c pushed a commit to nailo2c/airflow that referenced this pull request Apr 4, 2025
simonprydden pushed a commit to simonprydden/airflow that referenced this pull request Apr 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:API Airflow's REST/HTTP API area:production-image Production image improvements and fixes area:providers provider:fab

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants