2009-06-09 16 views
2

applicationContext.xmlでは、複数のセキュリティを定義することが有効です。例えば複数のセキュリティ:カスタム認証プロバイダ

<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内部に登録されますか?私はopenAdとしてdummyAuthenticationProvider2を使用することを考えています。他のmetaconfigをapplicationContext.xmlの中に入れる必要がありますか?

答えて

1

(..など、匿名のプロバイダー私のプロバイダを覚えて)認証を実行するためにプロバイダのリストに設定されています。他の設定は必要ありません。

関連する問題