當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。