Skip to content

[3.0.0] Removal of AIRFLOW__WEBSERVER__ENABLE_PROXY_FIX is breaking FAB OAuth sign in #49781

@Guymestef

Description

@Guymestef

Apache Airflow version

3.0.0

If "Other Airflow 2 version" selected, which one?

No response

What happened?

FAB is poorly managing redirect_uri creation while initiating authentication to an oauth provider.
redirect_uri is using http instead of https, so authentication is failing due to a mismatch redirect_uri

To "fix" this issue, a workaround was provided in the 2.x version, by setting the config AIRFLOW__WEBSERVER__ENABLE_PROXY_FIX = True

By removing the proxy fix, oauth sign in with FAB is broken

What you think should happen instead?

Keep the proxy fix until

How to reproduce

  • Using airflow with https
  • setting AIRFLOW__CORE__AUTH_MANAGER = airflow.providers.fab.auth_manager.fab_auth_manager.FabAuthManager
  • configuring github oauth provider

Operating System

ubuntu

Versions of Apache Airflow Providers

No response

Deployment

Other 3rd-party Helm chart

Deployment details

No response

Anything else?

No response

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:corearea:webserverWebserver related Issueskind:bugThis is a clearly a bugneeds-triagelabel for new issues that we didn't triage yet

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions