本文整理汇总了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);
}
}
示例2: configure
import org.springframework.security.oauth2.config.annotation.configurers.ClientDetailsServiceConfigurer; //导入方法依赖的package包/类
@Override
public void configure(ClientDetailsServiceConfigurer clients) throws Exception {
clients.withClientDetails(clientService);
}
示例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());
}
示例4: configure
import org.springframework.security.oauth2.config.annotation.configurers.ClientDetailsServiceConfigurer; //导入方法依赖的package包/类
@Override
public void configure(ClientDetailsServiceConfigurer clients) throws Exception {
clients.withClientDetails(clientService);
}
示例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());
}
示例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");*/
}
示例7: configure
import org.springframework.security.oauth2.config.annotation.configurers.ClientDetailsServiceConfigurer; //导入方法依赖的package包/类
@Override
public void configure(ClientDetailsServiceConfigurer clients)
throws Exception {
clients.withClientDetails(mongoClientDetailsService);
}
示例8: configure
import org.springframework.security.oauth2.config.annotation.configurers.ClientDetailsServiceConfigurer; //导入方法依赖的package包/类
@Override
public void configure(ClientDetailsServiceConfigurer clients) throws Exception {
clients.withClientDetails(oAuth2DatabaseClientDetailsService);
}
示例9: configure
import org.springframework.security.oauth2.config.annotation.configurers.ClientDetailsServiceConfigurer; //导入方法依赖的package包/类
@Override
public void configure(ClientDetailsServiceConfigurer clients) throws Exception {
clients.withClientDetails(clientDetailsService());
}
示例10: configure
import org.springframework.security.oauth2.config.annotation.configurers.ClientDetailsServiceConfigurer; //导入方法依赖的package包/类
public void configure(ClientDetailsServiceConfigurer clients) throws Exception {
clients.withClientDetails(clientAuthenticationService);
}
示例11: configure
import org.springframework.security.oauth2.config.annotation.configurers.ClientDetailsServiceConfigurer; //导入方法依赖的package包/类
@Override
public void configure(ClientDetailsServiceConfigurer clients)
throws Exception {
clients.withClientDetails(clientDetailsService());
}
示例12: configure
import org.springframework.security.oauth2.config.annotation.configurers.ClientDetailsServiceConfigurer; //导入方法依赖的package包/类
@Override
public void configure(ClientDetailsServiceConfigurer clients) throws Exception {
clients.withClientDetails(clientDetails());
}
示例13: configure
import org.springframework.security.oauth2.config.annotation.configurers.ClientDetailsServiceConfigurer; //导入方法依赖的package包/类
@Override
public void configure(ClientDetailsServiceConfigurer clients) throws Exception {
clients.withClientDetails(customClientDetailsService);
}
示例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);
}