sjyangkevin opened a new pull request, #77620: URL: https://github.com/apache/airflow/pull/77620
### What With the FAB auth manager, the Flask app that serves Airflow 2 plugins under `/pluginsv2` also serves the FAB login views, but `create_app` applied the `[fab]` session settings only to the FAB auth manager app. The plugins app kept Flask's default signed-cookie sessions, so signing in on one app did not sign the user in on the other. ### How Whether an app hosts plugins and how FAB login sessions are stored are independent, so `create_app` now applies the session settings whenever the FAB auth manager is configured, and both apps share one session. Users already signed in to `/pluginsv2` sign in again once after upgrading, since their existing cookie is not a session of the configured backend. ### Testing Tested with the FAB provider tests, and manually in Breeze with an Airflow 2 plugin installed (`breeze start-airflow --auth-manager FabAuthManager`, `database` session backend): signing in on the UI also signs the user in on `/pluginsv2`, and both apps store the session in the same table. --- ##### Was generative AI tooling used to co-author this PR? - [X] Yes (please specify the tool below) Generated-by: [Claude Code (Opus 5.5)] following [the guidelines](https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#gen-ai-assisted-contributions) --- * Read the **[Pull Request Guidelines](https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#pull-request-guidelines)** for more information. Note: commit author/co-author name and email in commits become permanently public when merged. * For fundamental code changes, an Airflow Improvement Proposal ([AIP](https://cwiki.apache.org/confluence/display/AIRFLOW/Airflow+Improvement+Proposals)) is needed. * When adding dependency, check compliance with the [ASF 3rd Party License Policy](https://www.apache.org/legal/resolved.html#category-x). * For significant user-facing changes create newsfragment: `{pr_number}.significant.rst`, in [airflow-core/newsfragments](https://github.com/apache/airflow/tree/main/airflow-core/newsfragments). You can add this file in a follow-up commit after the PR is created so you know the PR number. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
