Skip to content

Conversation

@vincbeck
Copy link
Contributor

@vincbeck vincbeck commented Sep 11, 2025

The refresh token flow gets updated to make it simpler. Auth managers that need to refresh token periodically (e.g. Keycloak), need to implement the method refresh_token. This method is called before every request and check whether the token needs to be refreshed. If so, the token gets refreshed, is passed to the route implementation and saved as part of the response as cookie. This happens silently without the user noticing. Hence, we no longer need to have a refresh token public 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.rst or {issue_number}.significant.rst, in airflow-core/newsfragments.

@boring-cyborg boring-cyborg bot added area:API Airflow's REST/HTTP API area:providers area:UI Related to UI/UX. For Frontend Developers. kind:documentation provider:amazon AWS/Amazon - related issues provider:fab labels Sep 11, 2025
Copy link
Contributor

@bugraoz93 bugraoz93 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall, I like the approach. It is simple and extensible. It won't bring any complexity to create new auth managers. Thanks, Vincent!

Copy link
Member

@pierrejeambrun pierrejeambrun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, I like this approach too. 👍

Copy link
Member

@jason810496 jason810496 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! Thanks for the PR!

@vincbeck vincbeck force-pushed the vincbeck/auth branch 2 times, most recently from b9ed97b to fc13ede Compare September 29, 2025 14:19
Copy link
Member

@pierrejeambrun pierrejeambrun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, just one remark

@vincbeck vincbeck changed the title Update UI authentication Update refresh token flow Oct 15, 2025
@vincbeck
Copy link
Contributor Author

#56633 was merged so I rebased this PR to only include the refresh token change.

Copy link
Member

@potiuk potiuk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@vincbeck vincbeck merged commit d58da15 into apache:main Oct 16, 2025
112 checks passed
@vincbeck vincbeck deleted the vincbeck/auth branch October 16, 2025 14:10
abdulrahman305 bot pushed a commit to abdulrahman305/airflow that referenced this pull request Oct 17, 2025
abdulrahman305 bot pushed a commit to abdulrahman305/airflow that referenced this pull request Oct 19, 2025
TyrellHaywood pushed a commit to TyrellHaywood/airflow that referenced this pull request Oct 22, 2025
vincbeck added a commit to aws-mwaa/upstream-to-airflow that referenced this pull request Nov 24, 2025
vincbeck added a commit to aws-mwaa/upstream-to-airflow that referenced this pull request Nov 24, 2025
potiuk pushed a commit that referenced this pull request Nov 25, 2025
@potiuk potiuk modified the milestones: Airflow 3.2.0, Airflow 3.1.4 Nov 25, 2025
ephraimbuddy added a commit that referenced this pull request Dec 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:providers area:UI Related to UI/UX. For Frontend Developers. kind:documentation provider:amazon AWS/Amazon - related issues provider:fab

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants