Search code examples
authenticationspring-securitygrails-plugin

Spring Security Anonymous User


I am Using Grails 2.2.3 with spring security plugin 1.2.7.3 dependency. when I check springSecurity.isLoggedIn() the result is false but the user is authenticated. spring recognizes my user as anonymous User. is it just about Using HTTP and HTTPS ? Because it works fine on my local machine and the problem occurs when I deploy my app on tomcat server.


Solution

  • Actually the problem was about that the client could not get a JsessionId and that was because of one my filters securing the session. so When you have no jsesionid no matter what you would be recognized as anonymous user by the Spring Security. Also it could be disabled in spring config.