private AuthenticationProvider authenticationProvider() { PreAuthenticatedAuthenticationProvider authProvider = new PreAuthenticatedAuthenticationProvider(); authProvider.setPreAuthenticatedUserDetailsService(new PreAuthenticatedGrantedAuthoritiesUserDetailsService()); return authProvider; }
@Bean PreAuthenticatedAuthenticationProvider preAuthenticatedProvider() { PreAuthenticatedAuthenticationProvider preAuthenticatedAuthenticationProvider = new PreAuthenticatedAuthenticationProvider(); preAuthenticatedAuthenticationProvider.setPreAuthenticatedUserDetailsService(new PreAuthenticatedGrantedAuthoritiesUserDetailsService()); return preAuthenticatedAuthenticationProvider; }
/** * Gets the pre authenticated granted authorities user details service. * * @return the pre authenticated granted authorities user details service */ @Bean(name = "preAuthenticatedUserDetailsService") public PreAuthenticatedGrantedAuthoritiesUserDetailsService getPreAuthenticatedGrantedAuthoritiesUserDetailsService() { return new PreAuthenticatedGrantedAuthoritiesUserDetailsService(); }