HttpSession returned null object for SPRING_SECURITY_CONTEXT

后端 未结 2 1534
抹茶落季
抹茶落季 2021-01-02 13:13

I\'m trying to integrate the Spring Saml library in a sample webapplication, using Shibboleth as IDP. I\'m able to load the login page, to login and to show the index page.<

2条回答
  •  天命终不由人
    2021-01-02 13:42

    I've experienced the same problem. After debugging realized that SecurityContext is cleared before it's persisted. After googling I found this: https://jira.springsource.org/browse/SEC-2027 Moving to spring security version 3.1.2 solved it for me.

    I hope it will help someone.

提交回复
热议问题