org.springframework.security.oauth2.provider.approval.TokenStoreUserApprovalHandler Java Examples

The following examples show how to use org.springframework.security.oauth2.provider.approval.TokenStoreUserApprovalHandler. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: WebSecurityConfig.java    From Mastering-Microservices-with-Java-Third-Edition with MIT License 5 votes vote down vote up
@Bean
@Autowired
public TokenStoreUserApprovalHandler userApprovalHandler(TokenStore tokenStore) {
  TokenStoreUserApprovalHandler handler = new TokenStoreUserApprovalHandler();
  handler.setTokenStore(tokenStore);
  handler.setRequestFactory(new DefaultOAuth2RequestFactory(clientDetailsService));
  handler.setClientDetailsService(clientDetailsService);
  return handler;
}
 
Example #2
Source File: OAuth2SecurityConfiguration.java    From openapi-generator with Apache License 2.0 5 votes vote down vote up
@Bean
@Autowired
public TokenStoreUserApprovalHandler userApprovalHandler(TokenStore tokenStore){
    TokenStoreUserApprovalHandler handler = new TokenStoreUserApprovalHandler();
    handler.setTokenStore(tokenStore);
    handler.setRequestFactory(new DefaultOAuth2RequestFactory(clientDetailsService));
    handler.setClientDetailsService(clientDetailsService);
    return handler;
}
 
Example #3
Source File: OAuth2SecurityConfiguration.java    From swaggy-jenkins with MIT License 5 votes vote down vote up
@Bean
@Autowired
public TokenStoreUserApprovalHandler userApprovalHandler(TokenStore tokenStore){
    TokenStoreUserApprovalHandler handler = new TokenStoreUserApprovalHandler();
    handler.setTokenStore(tokenStore);
    handler.setRequestFactory(new DefaultOAuth2RequestFactory(clientDetailsService));
    handler.setClientDetailsService(clientDetailsService);
    return handler;
}
 
Example #4
Source File: OAuth2SecurityConfiguration.java    From swagger-aem with Apache License 2.0 5 votes vote down vote up
@Bean
@Autowired
public TokenStoreUserApprovalHandler userApprovalHandler(TokenStore tokenStore){
    TokenStoreUserApprovalHandler handler = new TokenStoreUserApprovalHandler();
    handler.setTokenStore(tokenStore);
    handler.setRequestFactory(new DefaultOAuth2RequestFactory(clientDetailsService));
    handler.setClientDetailsService(clientDetailsService);
    return handler;
}