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


Java OAuth2Template.setUseParametersForClientAuthentication方法代码示例

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


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

示例1: getOAuth2Template

import org.springframework.social.oauth2.OAuth2Template; //导入方法依赖的package包/类
private static OAuth2Template getOAuth2Template(String appId,
		String appSecret, String apiVersion) {
	String graphApiURL = "https://graph.facebook.com/v" + apiVersion + "/";

	OAuth2Template template = new OAuth2Template(appId, appSecret,
			"https://www.facebook.com/v" + apiVersion + "/dialog/oauth",
			graphApiURL + "oauth/access_token");

	template.setUseParametersForClientAuthentication(true);
	return template;
}
 
开发者ID:PacktPublishing,项目名称:OAuth-2.0-Cookbook,代码行数:12,代码来源:CustomFacebookServiceProvider.java

示例2: createConnectionFactory

import org.springframework.social.oauth2.OAuth2Template; //导入方法依赖的package包/类
static SalesforceConnectionFactory
    createConnectionFactory(final SocialProperties salesforceProperties) {
    final SalesforceConnectionFactory salesforce = new SalesforceConnectionFactory(salesforceProperties.getAppId(),
        salesforceProperties.getAppSecret());

    final OAuth2Template oAuthOperations = (OAuth2Template) salesforce.getOAuthOperations();

    // Salesforce requires OAuth client id and secret on the OAuth request
    oAuthOperations.setUseParametersForClientAuthentication(true);

    return salesforce;
}
 
开发者ID:syndesisio,项目名称:syndesis,代码行数:13,代码来源:SalesforceCredentialProviderFactory.java

示例3: getOAuth2Template

import org.springframework.social.oauth2.OAuth2Template; //导入方法依赖的package包/类
private static OAuth2Template getOAuth2Template(String appId, String appSecret)
{
    OAuth2Template oauth2Template = new WechatOAuth2Template(appId, appSecret,
            "https://open.weixin.qq.com/connect/oauth2/authorize", "https://api.weixin.qq.com/cgi-bin/token");
    oauth2Template.setUseParametersForClientAuthentication(true);
    return oauth2Template;
}
 
开发者ID:edwardluzi,项目名称:spring-social-wechat,代码行数:8,代码来源:WechatServiceProvider.java

示例4: getOAuth2Template

import org.springframework.social.oauth2.OAuth2Template; //导入方法依赖的package包/类
private static OAuth2Template getOAuth2Template(String appId, String appSecret) {
	OAuth2Template oAuth2Template = new OAuth2Template(appId, appSecret,
			KeyRockTemplate.API_BASE_URL + "/oauth2/authorize",
			KeyRockTemplate.API_BASE_URL + "/oauth2/token");
	//False to send clientId and clientSecret in "Authentication" header rather than POST body when exchanging the code
	oAuth2Template.setUseParametersForClientAuthentication(false);
	return oAuth2Template;
}
 
开发者ID:TribalyteTechnologies,项目名称:spring-social-fiware-lab,代码行数:9,代码来源:KeyRockServiceProvider.java

示例5: createOAuth2Template

import org.springframework.social.oauth2.OAuth2Template; //导入方法依赖的package包/类
private static OAuth2Template createOAuth2Template(String clientId, String clientSecret) {
    OAuth2Template oAuth2Template = new OAuth2Template(clientId, clientSecret, "https://discordapp.com/api/oauth2/authorize", "https://discordapp.com/api/oauth2/token");
    oAuth2Template.setUseParametersForClientAuthentication(true);
    return oAuth2Template;
}
 
开发者ID:quanticc,项目名称:sentry,代码行数:6,代码来源:DiscordServiceProvider.java

示例6: getOauth2Operations

import org.springframework.social.oauth2.OAuth2Template; //导入方法依赖的package包/类
private static OAuth2Template getOauth2Operations(String clientId, String clientSecret, String accessTokenUrl) {
    OAuth2Template template = new OAuth2Template(clientId, clientSecret, "", accessTokenUrl);
    template.setUseParametersForClientAuthentication(true);
    return template;
}
 
开发者ID:antonleliuk,项目名称:spring-social-botFramework,代码行数:6,代码来源:BotFrameworkServiceProvider.java

示例7: createOAuth2Template

import org.springframework.social.oauth2.OAuth2Template; //导入方法依赖的package包/类
private static OAuth2Template createOAuth2Template(String clientId, String clientSecret) {
	OAuth2Template oAuth2Template = new OAuth2Template(clientId, clientSecret, "https://www.strava.com/oauth/authorize", "https://www.strava.com/oauth/token");
	oAuth2Template.setUseParametersForClientAuthentication(true);
	return oAuth2Template;
}
 
开发者ID:pivotal,项目名称:spring-social-strava,代码行数:6,代码来源:StravaServiceProvider.java

示例8: getOAuth2Template

import org.springframework.social.oauth2.OAuth2Template; //导入方法依赖的package包/类
private static OAuth2Template getOAuth2Template(String clientId, String clientSecret) {
	OAuth2Template oAuth2Template = new WeiboOAuth2Template(clientId, clientSecret, "https://api.weibo.com/oauth2/authorize",
			"https://api.weibo.com/oauth2/access_token");
	oAuth2Template.setUseParametersForClientAuthentication(true);
	return oAuth2Template;
}
 
开发者ID:xfcjscn,项目名称:spring-social-weibo,代码行数:7,代码来源:WeiboServiceProvider.java

示例9: createOAuth2Template

import org.springframework.social.oauth2.OAuth2Template; //导入方法依赖的package包/类
private static OAuth2Template createOAuth2Template(String domain, String clientId, String clientSecret) {
	OAuth2Template oAuth2Template = new OAuth2Template(clientId, clientSecret, "https://" + domain + ".auth0.com/authorize", "https://" + domain + ".auth0.com/oauth/token");
	oAuth2Template.setUseParametersForClientAuthentication(true);
	return oAuth2Template;
}
 
开发者ID:cpitman,项目名称:spring-social-auth0,代码行数:6,代码来源:Auth0ServiceProvider.java

示例10: createOAuthTemplate

import org.springframework.social.oauth2.OAuth2Template; //导入方法依赖的package包/类
private static OAuth2Template createOAuthTemplate(String clientId, String clientSecret) {
    OAuth2Template template = new OAuth2Template(clientId, clientSecret, AUTH_URL, TOKEN_URL);
    template.setUseParametersForClientAuthentication(true);
    return template;
}
 
开发者ID:Glamdring,项目名称:google-plus-java-api,代码行数:6,代码来源:GooglePlusFactory.java


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