当前位置: 首页>>代码示例>>Java>>正文


Java ClientDetailsServiceConfigurer.withClientDetails方法代码示例

本文整理汇总了Java中org.springframework.security.oauth2.config.annotation.configurers.ClientDetailsServiceConfigurer.withClientDetails方法的典型用法代码示例。如果您正苦于以下问题:Java ClientDetailsServiceConfigurer.withClientDetails方法的具体用法?Java ClientDetailsServiceConfigurer.withClientDetails怎么用?Java ClientDetailsServiceConfigurer.withClientDetails使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.springframework.security.oauth2.config.annotation.configurers.ClientDetailsServiceConfigurer的用法示例。


在下文中一共展示了ClientDetailsServiceConfigurer.withClientDetails方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: configure

import org.springframework.security.oauth2.config.annotation.configurers.ClientDetailsServiceConfigurer; //导入方法依赖的package包/类
@Override
public void configure(ClientDetailsServiceConfigurer clients) throws Exception {
    
    clients.withClientDetails(clientDetailsService);
 
    String client_key = System.getenv().get(TEST_CLIENT_KEY);
    //Create Fake seldon deployment for testing
    if (client_key != null)
    {
        String client_secret = System.getenv().get(TEST_CLIENT_SECRET);
        clientDetailsService.addClient(client_key,client_secret);
        SeldonDeployment dep = SeldonDeployment.newBuilder()
                .setApiVersion("v1alpha1")
                .setKind("SeldonDeplyment")
                .setSpec(DeploymentSpec.newBuilder()
                        .setName("localhost")
                    .setOauthKey(client_key)
                    .setOauthSecret(client_secret)
                    ).build();   
        deploymentStore.deploymentAdded(dep);
    }
}
 
开发者ID:SeldonIO,项目名称:seldon-core,代码行数:23,代码来源:AuthorizationServerConfiguration.java

示例2: configure

import org.springframework.security.oauth2.config.annotation.configurers.ClientDetailsServiceConfigurer; //导入方法依赖的package包/类
@Override
public void configure(ClientDetailsServiceConfigurer clients) throws Exception {
  clients.withClientDetails(clientService);
}
 
开发者ID:t0bst4r,项目名称:authorizer,代码行数:5,代码来源:OAuth2Configuration.java

示例3: configure

import org.springframework.security.oauth2.config.annotation.configurers.ClientDetailsServiceConfigurer; //导入方法依赖的package包/类
/**
 * This method tells the AuthorizationServerConfigurerAdapter to use our self-defined client details service to
 * authenticate clients with.
 */
@Override
public void configure(ClientDetailsServiceConfigurer clients)
		throws Exception {
	clients.withClientDetails(clientDetailsService());
}
 
开发者ID:juleswhite,项目名称:mobilecloud-15,代码行数:10,代码来源:OAuth2SecurityConfiguration.java

示例4: configure

import org.springframework.security.oauth2.config.annotation.configurers.ClientDetailsServiceConfigurer; //导入方法依赖的package包/类
@Override
public void configure(ClientDetailsServiceConfigurer clients) throws Exception {
	clients.withClientDetails(clientService);
}
 
开发者ID:codenergic,项目名称:theskeleton,代码行数:5,代码来源:OAuth2AuthorizationServerConfig.java

示例5: configure

import org.springframework.security.oauth2.config.annotation.configurers.ClientDetailsServiceConfigurer; //导入方法依赖的package包/类
@Override
	public void configure(ClientDetailsServiceConfigurer clients) throws Exception {
//		clients.inMemory()
//				.withClient("sso_client")
//					.scopes("xx")//此处的scopes是无用的,可以随意设置
//					.secret("sso_client_pwd")
//					.authorizedGrantTypes("password", "authorization_code", "refresh_token")
//					.and()
//				.withClient("gateway")
//					.scopes("xx")//此处的scopes是无用的,可以随意设置
//					.authorizedGrantTypes("implicit");
		clients.withClientDetails(clientDetails());
	}
 
开发者ID:JerryNiu,项目名称:cloud,代码行数:14,代码来源:AuthorizationServerConfig.java

示例6: configure

import org.springframework.security.oauth2.config.annotation.configurers.ClientDetailsServiceConfigurer; //导入方法依赖的package包/类
@Override
public void configure(ClientDetailsServiceConfigurer clients) throws Exception {
    clients.withClientDetails(clientDetails());
    /*clients
            .inMemory()
            .withClient("client")
            .authorizedGrantTypes("password", "refresh_token")
            .scopes("app")
            .secret("security");*/
}
 
开发者ID:ustcwudi,项目名称:springboot-seed,代码行数:11,代码来源:AuthorizationServerConfig.java

示例7: configure

import org.springframework.security.oauth2.config.annotation.configurers.ClientDetailsServiceConfigurer; //导入方法依赖的package包/类
@Override
public void configure(ClientDetailsServiceConfigurer clients)
		throws Exception {
	clients.withClientDetails(mongoClientDetailsService);
}
 
开发者ID:cloudade,项目名称:authorization-server-with-mongodb,代码行数:6,代码来源:OAuthConfiguration.java

示例8: configure

import org.springframework.security.oauth2.config.annotation.configurers.ClientDetailsServiceConfigurer; //导入方法依赖的package包/类
@Override
public void configure(ClientDetailsServiceConfigurer clients) throws Exception {
  clients.withClientDetails(oAuth2DatabaseClientDetailsService);
}
 
开发者ID:venus-boot,项目名称:saluki,代码行数:5,代码来源:AuthorizationServerConfiguration.java

示例9: configure

import org.springframework.security.oauth2.config.annotation.configurers.ClientDetailsServiceConfigurer; //导入方法依赖的package包/类
@Override
public void configure(ClientDetailsServiceConfigurer clients) throws Exception {
    clients.withClientDetails(clientDetailsService());
}
 
开发者ID:TulevaEE,项目名称:onboarding-service,代码行数:5,代码来源:OAuthConfiguration.java

示例10: configure

import org.springframework.security.oauth2.config.annotation.configurers.ClientDetailsServiceConfigurer; //导入方法依赖的package包/类
public void configure(ClientDetailsServiceConfigurer clients) throws Exception {
	clients.withClientDetails(clientAuthenticationService);
}
 
开发者ID:PatternFM,项目名称:tokamak,代码行数:4,代码来源:AuthorizationServerConfiguration.java

示例11: configure

import org.springframework.security.oauth2.config.annotation.configurers.ClientDetailsServiceConfigurer; //导入方法依赖的package包/类
@Override
public void configure(ClientDetailsServiceConfigurer clients) 
				throws Exception {
	clients.withClientDetails(clientDetailsService());
}
 
开发者ID:kflauri2312lffds,项目名称:Android_watch_magpie,代码行数:6,代码来源:OAuth2SecurityConfiguration.java

示例12: configure

import org.springframework.security.oauth2.config.annotation.configurers.ClientDetailsServiceConfigurer; //导入方法依赖的package包/类
@Override
public void configure(ClientDetailsServiceConfigurer clients) throws Exception {
    clients.withClientDetails(clientDetails());
}
 
开发者ID:hulvyou,项目名称:spring-cloud-template,代码行数:5,代码来源:OAuth2ServerConfig.java

示例13: configure

import org.springframework.security.oauth2.config.annotation.configurers.ClientDetailsServiceConfigurer; //导入方法依赖的package包/类
@Override
public void configure(ClientDetailsServiceConfigurer clients) throws Exception {
    clients.withClientDetails(customClientDetailsService);
}
 
开发者ID:themadweaz,项目名称:weazbootgradle,代码行数:5,代码来源:AuthorizationServerConfiguration.java

示例14: configure

import org.springframework.security.oauth2.config.annotation.configurers.ClientDetailsServiceConfigurer; //导入方法依赖的package包/类
@Override
public void configure(ClientDetailsServiceConfigurer clients) throws Exception {
    clients.withClientDetails(clientDetailsService);
}
 
开发者ID:gravitee-io,项目名称:graviteeio-access-management,代码行数:5,代码来源:AuthorizationServerConfiguration.java

示例15: configure

import org.springframework.security.oauth2.config.annotation.configurers.ClientDetailsServiceConfigurer; //导入方法依赖的package包/类
@Override
public void configure(ClientDetailsServiceConfigurer clients) throws Exception {
	clients.withClientDetails(clientDetailsService);
}
 
开发者ID:KonkerLabs,项目名称:konker-platform,代码行数:5,代码来源:OAuth2Config.java


注:本文中的org.springframework.security.oauth2.config.annotation.configurers.ClientDetailsServiceConfigurer.withClientDetails方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。