在applicationContext.xml中,定义mmultiple security:custom-authentication-provider?
是有效的例如
<bean id="dummyAuthenticationProvider" class="com.user.sample.gwtspring.server.security.JDBCDummyAuthenticationProvider"> <security:custom-authentication-provider /> </bean>
<bean id="dummyAuthenticationProvider2" class="com.user.sample.gwtspring.server.security.OpenIdDummyAuthenticationProvider2"> <security:custom-authentication-provider /> </bean>
是否都会在authenticationManager中注册?我正在考虑使用dummyAuthenticationProvider2作为openId。还有什么其他的metaconfig需要放在applicationContext.xml中?
答案 0 :(得分:1)
是的,两个身份验证提供程序都将注册到身份验证管理器。不需要其他配置。
答案 1 :(得分:0)
它应该使用身份验证管理器注册两个提供程序。自动配置时,auth管理器设置了一个提供程序列表来执行身份验证(匿名提供程序,记住我提供程序等)。