GMOD / Apollo

Genome annotation editor with a Java Server backend and a Javascript client that runs in a web browser as a JBrowse plugin.
http://genomearchitect.readthedocs.io/
Other
128 stars 85 forks source link

shiro login / logout invalidates session #209

Closed nathandunn closed 9 years ago

nathandunn commented 9 years ago

Related to this:

http://stackoverflow.com/questions/8882153/shiro-session-already-invalidated

But the grails / shiro plugin somehow doesn't work quite correctly.

My guess is that it has to do with the websocket thread versus the AJAX posts (which work fine).

For now passing the username through the JSON Object works fine, though not my preference.

nathandunn commented 9 years ago

This is kind of related, though it uses the Atmosphere framework:

https://jfarcand.wordpress.com/2011/07/13/quick-tip-using-apache-shiro-with-your-atmospheres-websocketcomet-app/

This is more or less what I did, but passing it as a JSON object instead.

nathandunn commented 9 years ago

working