本文整理汇总了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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}