List of usage examples for org.springframework.security.oauth2.config.annotation.web.configurers AuthorizationServerEndpointsConfigurer authenticationManager
AuthenticationManager authenticationManager
To view the source code for org.springframework.security.oauth2.config.annotation.web.configurers AuthorizationServerEndpointsConfigurer authenticationManager.
Click Source Link
From source file:com.springthunder.config.OAuth2Config.java
@Override public void configure(AuthorizationServerEndpointsConfigurer endpoints) throws Exception { endpoints.authenticationManager(authenticationManager); }
From source file:org.test.config.OAuthConfig.java
@Override public void configure(final AuthorizationServerEndpointsConfigurer endpoints) throws Exception { endpoints.authenticationManager(authenticationManager).accessTokenConverter(jwtAccessTokenConverter()); }
From source file:org.meruvian.yama.webapi.config.oauth.AuthorizationServerConfig.java
@Override public void configure(AuthorizationServerEndpointsConfigurer endpoints) throws Exception { endpoints.authenticationManager(authenticationManager).tokenServices(tokenServices) .accessTokenConverter(accessTokenConverter).userApprovalHandler(userApprovalHandler) .pathMapping("/oauth/confirm_access", "/oauth/approval"); }
From source file:com.eretailservice.security.OAuth2Configuration.java
@Override public void configure(AuthorizationServerEndpointsConfigurer endpoints) throws Exception { endpoints.authenticationManager(new AuthenticationManager() { @Override// w w w . ja va 2 s.co m public Authentication authenticate(Authentication authentication) throws AuthenticationException { return authenticationManager.getOrBuild().authenticate(authentication); } }); }
From source file:net.prasenjit.auth.config.OAuthConfig.java
/** {@inheritDoc} */ @Override/*from ww w .ja v a2s . c o m*/ public void configure(AuthorizationServerEndpointsConfigurer endpoints) throws Exception { endpoints.authenticationManager(userAuthenticationManager()).tokenEnhancer(tokenEnhancer); }
From source file:bookmarks.OAuth2Configuration.java
@Override public void configure(AuthorizationServerEndpointsConfigurer endpoints) throws Exception { // Workaround for https://github.com/spring-projects/spring-boot/issues/1801 endpoints.authenticationManager(new AuthenticationManager() { @Override// w w w. j a v a 2 s.co m public Authentication authenticate(Authentication authentication) throws AuthenticationException { return authenticationManager.getOrBuild().authenticate(authentication); } }); }
From source file:demo.OAuth2AuthorizationServerConfiguration.java
@Override public void configure(AuthorizationServerEndpointsConfigurer endpoints) throws Exception { if (this.details.getAuthorizedGrantTypes().contains("password")) { endpoints.authenticationManager(this.authenticationManager); }//from www. j a va2 s . c o m }
From source file:com.bcknds.demo.oauth2.security.AuthorizationServer.java
@Override public void configure(AuthorizationServerEndpointsConfigurer endpoints) throws Exception { AuthenticationManager authenticationManager = new AuthenticationManagerBuilder(objectPostProcessor) .userDetailsService(userService).passwordEncoder(new BCryptPasswordEncoder()).and().getOrBuild(); endpoints.authenticationManager(authenticationManager); }
From source file:org.springframework.boot.autoconfigure.security.oauth2.authserver.OAuth2AuthorizationServerConfiguration.java
@Override public void configure(AuthorizationServerEndpointsConfigurer endpoints) throws Exception { if (this.tokenStore != null) { endpoints.tokenStore(this.tokenStore); }//from ww w . ja va 2s . c o m if (this.details.getAuthorizedGrantTypes().contains("password")) { endpoints.authenticationManager(this.authenticationManager); } }