May 23, 2018

Multiple authentication provider in Spring Security

Spring Security supports a wide range of authentication mechanisms. AuthenticationManagerBuilder object allows using multiple built-in authentication provider like In-Memory authentication, LDAP authentication, JDBC based authentication. In addition to its own set of authentication models, Spring Security allows to write your custom authentication mechanism to authenticate, for example, against a secure RESTful or SOAP remote API  authentication service.

Stack

JDK 1.8
Maven 3.5.9
Spring Security 5.0.1.RELEASE

Source

SUBVERSION
svn co https://github.com/giuseppeurso-eu/spring-mvc/trunk spring-mvc
GIT
git clone https://github.com/giuseppeurso-eu/spring-mvc.git

 

AuthenticationConfig

 

MyCustomUserDetails

 

MyCustomAuthProvider

 

 

 

Related posts

Leave a Reply

Your email address will not be published.