Custom Authentication provider with Spring Security and Java Config -


how can define custom authentication provider using spring security java configurations? perform login checking credentials on own database.

the following need (customauthenticationprovider implementation needs managed spring)

@configuration @enablewebmvcsecurity public class websecurityconfig extends websecurityconfigureradapter {      @autowired     private customauthenticationprovider customauthenticationprovider;      @override     protected void configure(httpsecurity http) throws exception {         /**          * stuff here          */     }      @override     protected void configure(authenticationmanagerbuilder auth) throws exception {         auth.authenticationprovider(customauthenticationprovider);     } } 

Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

android - IBM Worklight 6.1 [Application Error] There was a network error (file:///android_asset/www/index.html) -