Example how to configure Spring Security to support multiple Authentication Providers.

We have 2 Authentication Providers:

  • InternalAuthenticationProvider - for from-login with username & password parametters
  • AuthenticationTokenProvider - for the login by token string