Skip to content

using csrfGuard without SessionTokenKeyExtractor #44

Answered by forgedhallpass
ACM-Unit asked this question in Q&A
Discussion options

You must be logged in to vote

Hello @ACM-Unit,

Could you please let me know what exactly you are trying to achieve?

The LogicalSessionExtractor, as the name suggests is intended to extract logical sessions from requests. It has two methods that, return a LogicalSession interface. The default implementation for the LogicalSessionExtractor is the SessionTokenKeyExtractor, which uses a ContainerSession.

If your web application is stateful and uses container sessions (JSESSIONID), then you don't need to change anything, except adding the csrfguard-extension-session dependency (see https://github.com/OWASP/www-project-csrfguard#using-with-maven), where the reference implementation is stored.

Please see the bundled test app…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by forgedhallpass
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants