Skip to content

Conversation

@vincbeck
Copy link
Contributor

#49013 introduced a bug. If you try to login with FAB auth manager with Breeze, you'll get redirected to localhost:8080, which does not exist (the external endpoint provided by Breeze is localhost:28080). In that case, we need to set AIRFLOW__API__BASE_URL to specify the API server endpoint.


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

@ashb
Copy link
Member

ashb commented Apr 10, 2025

I'd really really like us to find a way that doesn't involve needing to set BASE_URL for this use case -- that was 90% of the reason for the change in #49013 in the first place.

Why can't it redirect to /? (i.e. a relative URL, not an absolute one?

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.

+1 for Ash comment. SimpleAuthManager do not need this, and Fab shouldn't too.

@vincbeck vincbeck force-pushed the vincbeck/fab_login branch from 16db4ac to 675fc8b Compare April 10, 2025 14:53
@vincbeck
Copy link
Contributor Author

vincbeck commented Apr 10, 2025

When I set _set_var(_env, "AIRFLOW__API__BASE_URL", "/") it works. But I am wondering if we do not miss something somewhere. We set fallback to be / so I am a bit surprised.

@vincbeck vincbeck closed this Apr 10, 2025
@vincbeck vincbeck deleted the vincbeck/fab_login branch May 1, 2025 19:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants