Skip to content

Conversation

@vincbeck
Copy link
Contributor

@vincbeck vincbeck commented Feb 6, 2025

FAB auth manager is currently used in AF2 web application (Flask) and AF3 web application (fastapi). One of the responsibility of the auth manager is to provide the url of the login page. This URL differs whether we are in the context of AF2 or AF3. To address both use cases, I introduce an ugly flag to specify whether the auth manager is run in AF2 or AF3. This is temporary and will be removed when the AF2 Flask application is removed.


^ 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 newsfragments.

@vincbeck vincbeck force-pushed the vincbeck/fab_login_url branch from dcc9c0d to 7699af3 Compare February 6, 2025 18:11
@vincbeck vincbeck changed the title Update FAB auth manager get_url_login method to handle AF2 and AF3 Update FAB auth manager get_url_login method to handle Flask and Fastapi Feb 6, 2025
@jedcunningham jedcunningham merged commit 70de527 into apache:main Feb 6, 2025
62 checks passed
niklasr22 pushed a commit to niklasr22/airflow that referenced this pull request Feb 8, 2025
ambika-garg pushed a commit to ambika-garg/airflow that referenced this pull request Feb 17, 2025
@vincbeck vincbeck deleted the vincbeck/fab_login_url branch April 2, 2025 13:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:webserver Webserver related Issues provider:fab

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants