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

Session cookie approach #2

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

jeffsheets
Copy link
Contributor

Trying to use the Session Cookie approach recommended by the AngularJS project. It works for the login but then starts failing. Spring Security generates a new XSRF token after the login, and it sends it to the browser in the cookie. But Angular only reads that cookie once on the first request, and never checks for a new value.

So to get this to work we'd still have to modify AngularJS code to reload the new XSRF token. Or find a way for Spring Security to not change the XSRF token value. Or maybe modify the jHipster code to refresh the $http factories somehow after the login.

For these reasons the best is probably to just use the CSRF Token in Response Headers approach. But I'll leave this pull request and commit info here for explanation reasons.

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.

None yet

1 participant