Skip to content

Conversation

@pierrejeambrun
Copy link
Member

@pierrejeambrun pierrejeambrun commented Mar 13, 2025

related to: #47559

This add the logout endpoint.

When I try this locally with the FabAuthManager we get the same problem as #47662, we are working outside of a request context.

I think we need to do the same thing we do for the login -> redirect to a flask login_url so this is rendered with the WSGI middleware and passing the flask context along. (Also this needs to not crash when no user is logged in)

@pierrejeambrun pierrejeambrun added the AIP-84 Modern Rest API label Mar 13, 2025
@pierrejeambrun pierrejeambrun added this to the Airflow 3.0.0 milestone Mar 13, 2025
@pierrejeambrun pierrejeambrun self-assigned this Mar 13, 2025
@pierrejeambrun pierrejeambrun requested a review from vincbeck March 13, 2025 13:20
@boring-cyborg boring-cyborg bot added area:API Airflow's REST/HTTP API area:UI Related to UI/UX. For Frontend Developers. labels Mar 13, 2025
@pierrejeambrun
Copy link
Member Author

cc: @vincbeck

@vincbeck
Copy link
Contributor

vincbeck commented Mar 13, 2025

Yes we need to do the same mechanism as login :/ I can create the methods in the auth managers if you want then, you can use it in this PR

@pierrejeambrun
Copy link
Member Author

That would be great, thanks

@vincbeck
Copy link
Contributor

#47729

@pierrejeambrun
Copy link
Member Author

Unrelated failure, merging.

@pierrejeambrun pierrejeambrun merged commit 0c0c298 into apache:main Mar 13, 2025
87 of 89 checks passed
@pierrejeambrun pierrejeambrun deleted the 47559-backend branch March 13, 2025 21:37
nailo2c pushed a commit to nailo2c/airflow that referenced this pull request Apr 4, 2025
* AIP-84 Add logout endpoint

* Adjust following AuthManager update

* Address PR comment

* Fix CI
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AIP-84 Modern Rest API area:API Airflow's REST/HTTP API area:UI Related to UI/UX. For Frontend Developers.

Projects

No open projects

Development

Successfully merging this pull request may close these issues.

2 participants