I am trying to use Spring Session, Spring Data Redis with Spring Security as well as Spring boot, so that we can save the user as well as all the session data into Redis, the main objective of this would be load balancing, so that sessions will not be affiliated to a particular tomcat server, and we could take tomcats down, and requests for a particular client would still be served via other tomcats, since sessions will be available via Redis.
In the application which I am trying to do this, I have upgraded to Spring Boot Release 1.5.9.RELEASE, with Spring Security version 4.2.3.RELEASE.
We are facing road blocks when we authenticate a user, and the user navigates to second page. To be more clear I have created a sample of a similar situation here(https://github.com/kashipai/spring-security-redis-sample/tree/master/complete), I have taken the Spring guide, and modified it similar to as to how it is in our project.
I have tried debugging the problem with eclipse, and I understand that the issue is to do with the deserialization of the Authentication Object from Redis, where in while fetching the entries of Authorities Object, it fails and returns null, and If in the Security Configuration there is a rule for a URL with hasAnyAuthority() then it throws a null pointer exception.
Any help or pointers as to how to go about solving this issue would be very helpful.
I have tried opening up an issue in StackOverflow without any solution being available for more than a week, don't know whether raising a query like this here is proper, if not please close the issue.
I am trying to use Spring Session, Spring Data Redis with Spring Security as well as Spring boot, so that we can save the user as well as all the session data into Redis, the main objective of this would be load balancing, so that sessions will not be affiliated to a particular tomcat server, and we could take tomcats down, and requests for a particular client would still be served via other tomcats, since sessions will be available via Redis.
In the application which I am trying to do this, I have upgraded to Spring Boot Release 1.5.9.RELEASE, with Spring Security version 4.2.3.RELEASE.
We are facing road blocks when we authenticate a user, and the user navigates to second page. To be more clear I have created a sample of a similar situation here(https://github.com/kashipai/spring-security-redis-sample/tree/master/complete), I have taken the Spring guide, and modified it similar to as to how it is in our project.
I have tried debugging the problem with eclipse, and I understand that the issue is to do with the deserialization of the Authentication Object from Redis, where in while fetching the entries of Authorities Object, it fails and returns null, and If in the Security Configuration there is a rule for a URL with hasAnyAuthority() then it throws a null pointer exception.
Any help or pointers as to how to go about solving this issue would be very helpful.
I have tried opening up an issue in StackOverflow without any solution being available for more than a week, don't know whether raising a query like this here is proper, if not please close the issue.