retrieving tokens from TokenHolder interface #98
-
Do you have any idea on how to retrieve tokens that are stored in InMemoryTokenHolder? In our project with version 3.1.0 we usually compare CSRF tokens from request with httpsession [since HttpSession contains csrf tokens as an attribute] and check equality. However, from version 4.0.0 we cannot retrieve csrf token attribute from sessions. In this case what can be done and how can I retrieve tokens from TokenHolder to be compared with request token since httpsession no longer contain csrf attribute? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hello @itachiuchihamadara I am not sure I understand why would you want to access the CSRF tokens. Everything should happen seamlessly within CSRF Guard. |
Beta Was this translation helpful? Give feedback.
Hello @itachiuchihamadara
I am not sure I understand why would you want to access the CSRF tokens. Everything should happen seamlessly within CSRF Guard.