Skip to content

Make request cookies available to AuthManager methods #70720

Description

@stephen-bracken

Description

Add an interface for Auth Managers to access the request cookies from an auth request, in order to enable reading from the user's cookies at auth time.

Use case/motivation

In order to separate out the JWTs for Keycloak and Airflow, we need to be able to retrieve the Keycloak JWT cookies from cookies inside the auth manager. To do this we currently need to either add the keycloak JWTs to the airflow JWT, which is sub-optimal because it creates a very large cookie, risking rejection on most browsers, or we need to modify the refresh token flow to also pass through a request object with the cookies included.

Related issues

#70707

Are you willing to submit a PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions