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

Issue with spring security core: Logged in user's session gets expired once JavaScript attempts to get registered event #68

Open
laamlatay opened this issue May 15, 2015 · 2 comments

Comments

@laamlatay
Copy link

When I put the following lines in my gsp, I successfully get push events but the sessions gets expired and I get redirected to login page when page refresh is attempted. Working fine without spring security.

try {
var grailsEvents = new grails.Events("${createLink(uri:'')}", {transport: "sse"});
grailsEvents.on('bagsUpdated', function (data) {
console.log("GOT bags!");
});
} catch (error) {
console.log("ERROR: " + error.toString());
}

My plugins,

compile ":spring-security-core:2.0-RC4"
compile ":events-push:1.0.M7"

@smaldini
Copy link
Owner

Any log to support the debugging ? We need to see the cookies on the client side and the DEBUG mode on the server side for spring security and grails (org.springframework DEBUG should be fine).

@laamlatay
Copy link
Author

There is no cookies but the one for session (JSESSIONID).

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

No branches or pull requests

2 participants