Java Code Examples for org.springframework.security.oauth2.provider.approval.TokenApprovalStore#setTokenStore()

The following examples show how to use org.springframework.security.oauth2.provider.approval.TokenApprovalStore#setTokenStore() . 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 ApprovalStore approvalStore(TokenStore tokenStore) throws Exception {
  TokenApprovalStore store = new TokenApprovalStore();
  store.setTokenStore(tokenStore);
  return store;
}
 
Example 2
Source File: OAuth2SecurityConfiguration.java    From openapi-generator with Apache License 2.0 5 votes vote down vote up
@Bean
@Autowired
public ApprovalStore approvalStore(TokenStore tokenStore) throws Exception {
    TokenApprovalStore store = new TokenApprovalStore();
    store.setTokenStore(tokenStore);
    return store;
}
 
Example 3
Source File: OAuth2SecurityConfiguration.java    From swaggy-jenkins with MIT License 5 votes vote down vote up
@Bean
@Autowired
public ApprovalStore approvalStore(TokenStore tokenStore) throws Exception {
    TokenApprovalStore store = new TokenApprovalStore();
    store.setTokenStore(tokenStore);
    return store;
}
 
Example 4
Source File: OAuth2SecurityConfiguration.java    From swagger-aem with Apache License 2.0 5 votes vote down vote up
@Bean
@Autowired
public ApprovalStore approvalStore(TokenStore tokenStore) throws Exception {
    TokenApprovalStore store = new TokenApprovalStore();
    store.setTokenStore(tokenStore);
    return store;
}
 
Example 5
Source File: AuthorizationServerConfig.java    From spring-boot-demo with MIT License 4 votes vote down vote up
@Bean
public ApprovalStore approvalStore() {
    TokenApprovalStore store = new TokenApprovalStore();
    store.setTokenStore(tokenStore());
    return store;
}