我有以下身份验证管理器配置:
<security:authentication-manager alias="authenticationManager">
<security:authentication-provider user-service-ref="userDetailsService" >
...
</security:authentication-provider>
</security:authentication-manager>
我需要将eraseCredentialsAfterAuthentication
字段设置为true。如果不使用bean
元素重写身份验证管理器配置,我可以这样做,例如
<bean id="authenticationManager" class="org.springframework.security.authentication.ProviderManager">
...
</bean>