Uploaded image for project: 'Apache Airflow'
  1. Apache Airflow
  2. AIRFLOW-3089

Google auth doesn't work under http

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.10.0
    • Fix Version/s: 1.10.1, 2.0.0
    • Component/s: authentication
    • Labels:
      None

      Description

      The google auth backend hard-codes the https scheme into its redirect urls and so doesn't work with http. This happens because the redirect url sets the `_scheme` parameter to `https`. I I see that this change was made to allow google auth to work when airflow is run behind a proxy, but I think this fix isn't correct. Instead, proxies should be configured to set `X-Forwarded-Proto` to `https`, and Flask will set the scheme correctly.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jmcarp Joshua Carp
                Reporter:
                jmcarp Joshua Carp
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: