Skip to content

Pass down the previous page (referrer) in the URL after logging in successfully with simple auth manager #44848

Closed

Description

@vincbeck

Description

When using the FAB auth manager, when logging in, the user gets redirected automatically to the page they were before logging in. This same mechanism needs to be implemented in the simple auth manager. This is particularly important because this feature is needed to test the authentication and authorization flow with simple auth manager in Airflow 3 (more details below).

After logging in successfully with the simple auth manager, the JWT token is returned as part of the URL (e.g. <airflow_endpoint>/home?token=....). To start testing the authorization in Airflow 3, this redirection needs to happen to Airflow 3 UI homepage so that the new font-end can handle this token (and save it locally).

Use case/motivation

No response

Related issues

No response

Are you willing to submit a PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Activity

  1. added
    kind:feature
    needs-triage
    and removed
    needs-triage
    on Dec 11, 2024
  2. added
    area:UI
    on Dec 11, 2024
  3. vincbeck commented on Dec 11, 2024

    @vincbeck
    ContributorAuthor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:UIarea:authkind:feature

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions