Spring Security Token Authentication - RESTful JSON Service

后端 未结 3 2028
感动是毒
感动是毒 2021-01-30 00:40

I\'m looking to use Spring Security for a Spring MVC application which will strictly be a JSON web service. I\'ve done some research and read a few articles but haven\'t really

3条回答
  •  梦谈多话
    2021-01-30 01:13

    In my case I found it easier to replace the org.springframework.security.web.context.SecurityContextRepository in org.springframework.security.web.context.SecurityContextPersistenceFilter with an implementation that shares the SecurityContext among several tomcat nodes. The client keeps sending a token jsessionid-like but I can do a simple round-robin load balancing and don't have to worry about session replication.

提交回复
热议问题