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

The following examples show how to use org.springframework.security.oauth2.provider.approval.ApprovalStore. 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;
}
 
Example #6
Source File: AuthorizationServerConfig.java    From pacbot with Apache License 2.0 4 votes vote down vote up
@Bean
public ApprovalStore approvalStore() {
    return new JdbcApprovalStore(dataSource);
}
 
Example #7
Source File: AuthenticationServerConfig.java    From JetfireCloud with Apache License 2.0 4 votes vote down vote up
@Bean
public ApprovalStore approvalStore() {
    return new JdbcApprovalStore(dataSource);
}
 
Example #8
Source File: OAuth2AuthorizationServer.java    From OAuth-2.0-Cookbook with MIT License 4 votes vote down vote up
@Bean
public ApprovalStore approvalStore() {
    return new JdbcApprovalStore(dataSource);
}
 
Example #9
Source File: OAuth2AuthorizationServer.java    From OAuth-2.0-Cookbook with MIT License 4 votes vote down vote up
@Bean
public ApprovalStore approvalStore() {
    return new JdbcApprovalStore(dataSource);
}
 
Example #10
Source File: OAuth2AuthorizationServer.java    From OAuth-2.0-Cookbook with MIT License 4 votes vote down vote up
@Bean
public ApprovalStore approvalStore() {
    return new JdbcApprovalStore(dataSource);
}
 
Example #11
Source File: IndexController.java    From spring-oauth-example with MIT License 4 votes vote down vote up
public IndexController(JdbcClientDetailsService clientDetailsService, ApprovalStore approvalStore, TokenStore tokenStore) {
    this.clientDetailsService = clientDetailsService;
    this.approvalStore = approvalStore;
    this.tokenStore = tokenStore;
}
 
Example #12
Source File: OAuthConfiguration.java    From spring-oauth-example with MIT License 4 votes vote down vote up
@Bean
public ApprovalStore approvalStore() {
    return new JdbcApprovalStore(oauthDataSource());
}
 
Example #13
Source File: AccessConfirmationController.java    From OpenESPI-DataCustodian-java with Apache License 2.0 4 votes vote down vote up
public void setApprovalStore(ApprovalStore approvalStore) {
	this.approvalStore = approvalStore;
}
 
Example #14
Source File: AuthorizationServerConfiguration.java    From open-cloud with MIT License 2 votes vote down vote up
/**
 * 授权store
 *
 * @return
 */
@Bean
public ApprovalStore approvalStore() {
    return new JdbcApprovalStore(dataSource);
}
 
Example #15
Source File: AuthorizationServerConfiguration.java    From open-cloud with MIT License 2 votes vote down vote up
/**
 * 授权store
 *
 * @return
 */
@Bean
public ApprovalStore approvalStore() {
    return new JdbcApprovalStore(dataSource);
}
 
Example #16
Source File: AuthorizationServerConfig.java    From SpringCloud with Apache License 2.0 2 votes vote down vote up
/**
 * 授权信息持久化实现
 *
 * @return JdbcApprovalStore
 */
@Bean
public ApprovalStore approvalStore() {
    return new JdbcApprovalStore(dataSource);
}