Skip to content

Fix logout flow in Keycloak auth manager#60649

Merged
vincbeck merged 1 commit into
apache:mainfrom
aws-mwaa:vincbeck/keycloak_logout
Jan 19, 2026
Merged

Fix logout flow in Keycloak auth manager#60649
vincbeck merged 1 commit into
apache:mainfrom
aws-mwaa:vincbeck/keycloak_logout

Conversation

@vincbeck
Copy link
Copy Markdown
Contributor

@vincbeck vincbeck commented Jan 16, 2026

Related #59359.

The current logout flow with Keycloak auth manager has a bug, you must have an active session in order to logout, which should not be. I update the flow to use the id token we are now saving when logging in as separate cookie.

I also update the HTTP code when invalid credentials are entered, it should be 403 and not 401.


Was generative AI tooling used to co-author this PR?

No


  • Read the Pull Request Guidelines for more information. Note: commit author/co-author name and email in commits become permanently public when merged.
  • For fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
  • When adding dependency, check compliance with the ASF 3rd Party License Policy.
  • For significant user-facing changes create newsfragment: {pr_number}.significant.rst or {issue_number}.significant.rst, in airflow-core/newsfragments.

@vincbeck vincbeck force-pushed the vincbeck/keycloak_logout branch from 8ab8522 to 2d86838 Compare January 16, 2026 20:53
@vincbeck vincbeck merged commit 82d1454 into apache:main Jan 19, 2026
84 checks passed
@vincbeck vincbeck deleted the vincbeck/keycloak_logout branch January 19, 2026 14:43
jason810496 pushed a commit to jason810496/airflow that referenced this pull request Jan 22, 2026
suii2210 pushed a commit to suii2210/airflow that referenced this pull request Jan 26, 2026
shreyas-dev pushed a commit to shreyas-dev/airflow that referenced this pull request Jan 29, 2026
jhgoebbert pushed a commit to jhgoebbert/airflow_Owen-CH-Leung that referenced this pull request Feb 8, 2026
choo121600 pushed a commit to choo121600/airflow that referenced this pull request Feb 22, 2026
Subham-KRLX pushed a commit to Subham-KRLX/airflow that referenced this pull request Mar 4, 2026
Ankurdeewan pushed a commit to Ankurdeewan/airflow that referenced this pull request Mar 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants