本文整理匯總了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);
}