baptistegh commented on PR #77569: URL: https://github.com/apache/airflow/pull/77569#issuecomment-7167072092
> Would it make sense to then delete the redirect based logout mechanism? Since your mechanism does it, do we need to have both? I'd keep both, they don't fully overlap: - the back-channel call only runs on Airflow 3.3+. The provider still supports 3.0+, and there the redirect is the only thing that logs you out of Keycloak. - revoking the refresh token kills the Keycloak session, but only the browser redirect does front-channel logout for the other clients in the realm, or for an upstream IdP if Keycloak is brokering one (Entra, Google...). - they fail in opposite cases. The back-channel call needs the refresh token cookie and Keycloak reachable from the API server. The redirect needs the id token cookie and a browser that follows it. This PR is for when the redirect doesn't happen, so dropping the redirect would just leave the other case uncovered. I tested both together on a local Keycloak. After the back-channel logout the redirect still goes straight to `post_logout_redirect_uri`, so the user doesn't see anything different. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
