@Autowired public AuthServiceImpl( AuthenticationManager authenticationManager, UserDetailsService userDetailsService, JwtTokenUtil jwtTokenUtil, UsersRepository usersRepository) { this.authenticationManager = authenticationManager; this.userDetailsService = userDetailsService; this.jwtTokenUtil = jwtTokenUtil; this.usersRepository = usersRepository; }
public AuthorizationServerConfiguration(@Qualifier("authenticationManagerBean") AuthenticationManager authenticationManager, TokenStore tokenStore, DataSource dataSource) { this.authenticationManager = authenticationManager; this.tokenStore = tokenStore; this.dataSource = dataSource; }
@Autowired public AuthServiceImpl( AuthenticationManager authenticationManager, UserDetailsService userDetailsService, JwtTokenUtil jwtTokenUtil, UserRepository userRepository, RoleRepository roleRepository) { this.authenticationManager = authenticationManager; this.userDetailsService = userDetailsService; this.jwtTokenUtil = jwtTokenUtil; this.userRepository = userRepository; this.roleRepository = roleRepository; }
public OAuth2Configuration(ResourceLoader resourceLoader, OpenIdProviderProperties properties, ObjectProvider<JdbcOperations> jdbcOperations, ObjectProvider<AuthenticationManager> authenticationManager, ObjectProvider<HazelcastInstance> hazelcastInstance) { this.resourceLoader = resourceLoader; this.properties = properties; this.jdbcOperations = jdbcOperations.getObject(); this.authenticationManager = authenticationManager.getObject(); this.hazelcastInstance = hazelcastInstance.getObject(); }
public OAuth2AuthorizationServerConfig(AccessTokenConverter accessTokenConverter, ApprovalStore approvalStore, AuthenticationManager authenticationManager, OAuth2ClientService clientService, TokenEnhancer tokenEnhancer, TokenStore tokenStore) { this.accessTokenConverter = accessTokenConverter; this.approvalStore = approvalStore; this.authenticationManager = authenticationManager; this.clientService = clientService; this.tokenEnhancer = tokenEnhancer; this.tokenStore = tokenStore; }
public PreauthFilter(AuthenticationManager authenticationManager, AuditLogger logger) { super(); this.setAuthenticationManager(authenticationManager); this.setAuthenticationSuccessHandler((request, response, authentication) -> logger.logEvent(new LoginEvent(Instant.now(), extractUsername(request), true))); this.setAuthenticationFailureHandler((request, response, exception) -> logger.logEvent(new LoginEvent(Instant.now(), extractUsername(request), false))); }
protected JWTLoginFilter(String defaultFilterProcessesUrl, TokenProvider tokenProvider, JwtSecurityProperties jwtSecurityProperties, AuthenticationManager authenticationManager) { super(new AntPathRequestMatcher(defaultFilterProcessesUrl)); this.tokenProvider = tokenProvider; this.jwtSecurityProperties = jwtSecurityProperties; setAuthenticationManager(authenticationManager); }
@Bean(name="authenticationManagerBean") public AuthenticationManager getAuthenticationManager(){ return new AuthenticationManager() { @Override public Authentication authenticate(Authentication authentication) throws AuthenticationException { throw new UnsupportedOperationException("No authentication should be done with this AuthenticationManager"); } }; }
public static Authentication auth(AuthenticationManager authenticationManager, String userName, String password) { SecurityContext sc = SecurityContextHolder.getContext(); UsernamePasswordAuthenticationToken upToken = new UsernamePasswordAuthenticationToken(userName, password); Authentication authentication = authenticationManager.authenticate(upToken); sc.setAuthentication(authentication); return sc.getAuthentication(); }
@Override @Bean public AuthenticationManager authenticationManagerBean() throws Exception { return super.authenticationManagerBean(); }
@Autowired public AuthServerOAuth2Config(AuthenticationManager authenticationManager, AppConfig appConfig) { this.authenticationManager = authenticationManager; this.appConfig = appConfig; }
public UserJWTController(TokenProvider tokenProvider, AuthenticationManager authenticationManager) { this.tokenProvider = tokenProvider; this.authenticationManager = authenticationManager; }
@Bean @Override public AuthenticationManager authenticationManagerBean() throws Exception { return super.authenticationManagerBean(); }
protected CustomAuthorizationServer(AuthenticationManager authenticationManager) { this.authenticationManager = authenticationManager; }
@Override protected AuthenticationManager authenticationManager() throws Exception { return new ProviderManager(Arrays.asList(appAdminProvider, appHRProvider ), appAuthenticationMgr); }
public JWTLoginFilter(String url, AuthenticationManager authManager) { super(new AntPathRequestMatcher(url)); setAuthenticationManager(authManager); }
public static AuthenticationManager getAuthenticationManager() { return authManager; }
@Autowired public ResourceServerConfiguration(AuthenticationManager authenticationManager, TokenStore tokenStore) { this.authenticationManager = authenticationManager; this.tokenStore = tokenStore; }
@Autowired public WebSecurityConfiguration(UserDetailsService userDetailsService, AuthenticationManager authenticationManager) { this.userDetailsService = userDetailsService; this.authenticationManager = authenticationManager; }
@Autowired public AuthorizationServerConfiguration(AuthenticationManager authenticationManager, JwtAccessTokenConverter jwtAccessTokenConverter) { this.authenticationManager = authenticationManager; this.jwtAccessTokenConverter = jwtAccessTokenConverter; }
@Autowired public AuthorizationServerConfig(@Qualifier("mongoTokenStore") final TokenStore tokenStore, final AuthenticationManager authenticationManager) { this.tokenStore = tokenStore; this.authenticationManager = authenticationManager; }
public JwtAuthenticationTokenFilter(AuthenticationManager authenticationManager, AuthenticationEntryPoint authenticationEntryPoint) { this.authenticationManager = authenticationManager; this.authenticationEntryPoint = authenticationEntryPoint; }