What I have is:
<authentication-manager alias="authenticationManager">
<authentication-provider user-service-ref="securityService"/>
</authentication-manager>
As I understand, the default AuthenticationManager implementation is used. I need to override its method authenticate. Is there a way to provide my own AuthenticationManager implementation?
You need to specify a
customAuthenticationProviderfirst, like this:-Then, your custom authentication provider can extends Spring Security’s AbstractUserDetailsAuthenticationProvider where you can place your custom authentication code.