July 2018
Intermediate to advanced
268 pages
7h 36m
English
This is a very important configuration example.
We will create an AuthenticationProvider bean. We will be using our custom LoginModule and then use org.springframework.security.authentication.jaas.DefaultJaasAuthenticationProvider to set things up. We then set this authentication provider as the global provider. Any request will pass through this provider (SpringSecurityConfig.java):
@BeanDefaultJaasAuthenticationProvider jaasAuthenticationProvider() { AppConfigurationEntry appConfig = new AppConfigurationEntry("com.packtpub.book.ch04.springsecurity.loginmodule.JaasLoginModule", AppConfigurationEntry.LoginModuleControlFlag.REQUIRED, new HashMap()); InMemoryConfiguration memoryConfig = new InMemoryConfiguration(new ...Read now
Unlock full access