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

Enable CSRF for /logout #110

Merged
merged 1 commit into from
Jan 14, 2025
Merged

Enable CSRF for /logout #110

merged 1 commit into from
Jan 14, 2025

Conversation

rpoet-jh
Copy link
Contributor

@rpoet-jh rpoet-jh commented Jan 13, 2025

This PR enables CSRF requirement for the /logout endpoint.

Note the removal of http.saml2Logout from the security configuration. This is needed so the SAML SLO logout doesn't execute when a POST is sent to /logout. I assume this is what we want because in the previous configuration, SAML SLO logout was essentially disabled because it only executes for POST requests, so it was being skipped for the GET /logout requests. Let me know if I missed something with this assumption.

There will also be a pass-ui PR that must be merged with this PR. eclipse-pass/pass-ui#1294

@rpoet-jh rpoet-jh requested a review from markpatton January 13, 2025 19:28
@rpoet-jh rpoet-jh self-assigned this Jan 13, 2025
@rpoet-jh
Copy link
Contributor Author

To test in pass-docker, build pass-core and pass-ui (on branch for eclipse-pass/pass-ui#1294). Update pass-docker to run pass-ui:latest as usual.

@rpoet-jh rpoet-jh linked an issue Jan 13, 2025 that may be closed by this pull request
Copy link
Contributor

@markpatton markpatton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tested locally in pass-docker and the logout is working well. This is a good cleanup.

@rpoet-jh rpoet-jh merged commit 6de3298 into main Jan 14, 2025
3 checks passed
@rpoet-jh rpoet-jh deleted the rdp-1100-logout-csrf branch January 16, 2025 14:51
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.

Enable CSRF on /logout
2 participants