Java Code Examples for org.springframework.security.oauth2.provider.approval.TokenApprovalStore

The following are top voted examples for showing how to use org.springframework.security.oauth2.provider.approval.TokenApprovalStore. These examples are extracted from open source projects. You can vote up the examples you like and your votes will be used in our system to generate more good examples.
Example 1
Project: urlshortener   File: AuthorizationServerConfiguration.java   Source Code and 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
Project: graviteeio-access-management   File: OAuth2SecurityConfiguration.java   Source Code and 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 3
Project: saluki   File: AuthorizationServerConfiguration.java   Source Code and License 4 votes vote down vote up
@Bean
public ApprovalStore approvalStore() {
  TokenApprovalStore tokenStore = new TokenApprovalStore();
  tokenStore.setTokenStore(tokenStoreService);
  return tokenStore;
}
 
Example 4
Project: oauth-client-master   File: OAuth2ServerConfig.java   Source Code and License 4 votes vote down vote up
@Bean
public ApprovalStore approvalStore() throws Exception {
	TokenApprovalStore store = new TokenApprovalStore();
	store.setTokenStore(tokenStore);
	return store;
}