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

Fix issue with PrepareLogoutAsync with null LogoutRequest #147

Merged

Conversation

khalidabuhakmeh
Copy link
Contributor

Updated CreateEndSessionUrl to handle null IdTokenHint and added a test for logout preparation without an ID token hint.

What issue does this PR address?

The PrepareLogoutAsync method throws if no LogoutRequest is provided. This is incorrect, as the LogoutRequest is optional. The internal code is now more defensive to match the public facing API.

Updated `CreateEndSessionUrl` to handle null `IdTokenHint` and added a test for logout preparation without an ID token hint.
@khalidabuhakmeh khalidabuhakmeh requested a review from a team as a code owner March 19, 2025 22:08
josephdecock
josephdecock previously approved these changes Mar 19, 2025
@josephdecock josephdecock self-assigned this Mar 21, 2025
@josephdecock josephdecock merged commit 9b28eee into DuendeSoftware:main Mar 21, 2025
2 checks passed
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.

2 participants