Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: stateless logout #3938

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

feat: stateless logout #3938

wants to merge 1 commit into from

Conversation

alnr
Copy link
Contributor

@alnr alnr commented Feb 6, 2025

Closes #3836

Completely eliminates database writes during logout, except session deletion. We can drop table hydra_oauth2_logout_request completely -- I didn't in this PR tho.

There is one technically-incompatible SDK change: The LogoutRequest JSON no longer contains field challenge. That field had no use whatsoever beforehand. But we could bring it back if we absolutely wanted to.

There now is no more reuse detection for logout verifiers. But double-submit use cases work as before, so I don't think there is a observable or at least no meaningful difference in behavior.

Deleted a bunch of tests, too 🥰 🔥

@alnr alnr requested a review from hperl February 6, 2025 18:13
@alnr alnr self-assigned this Feb 6, 2025
@alnr alnr requested review from aeneasr and a team as code owners February 6, 2025 18:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Make OP-initiated logout stateless
1 participant