Multiple login forms, different authentication managers - latest spring security

后端 未结 2 1459
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-16 19:03

I have a web application secured with Spring Security that needs two separate login forms. These two login forms need to be totally independent. I mean different login form,

2条回答
  •  半阙折子戏
    2020-12-16 19:28

    Ritesh, you are right, however, if I try to configure authentication-manager-ref in the http element, the follow exception occurs: org.xml.sax.SAXParseException: cvc-complex-type.3.2.2: Attribute 'authentication-manager-ref' is not allowed to appear in element 'security:http'.

    In header of my security.xml, I'm using http://www.springframework.org/schema/security/spring-security-3.1.xsd. If I browse to this URL, the xsd loaded declares the attribute authentication-manager-ref to the http element, but the xsd in spring-security-config-3.1.0.RC2.jar doesn't.

    I created an issue in springsource jira-> https://jira.springsource.org/browse/SEC-1879 .

    I replaced the xsd contained in spring-security-config-3.1.0.RC3.jar with a correct one and org.xml.sax.SAXParseException doesn't occur anymore, but it's not possible to declare two authentication-manager beans in security.xml.

提交回复
热议问题