public class QqOauth2Template
extends org.springframework.social.oauth2.OAuth2Template
传入的参数为 :clientId,clientSecret,authorizeUrl,accessTokenUrl
输出的响应为 :accessToken ,expiresIn ,refreshToken
根据 【clientId】,【clientSecret】,【authorizeUrl】,【accessTokenUrl】 构造OAuth2Template
生成的对象 供给 AbstractOAuth2ServiceProvider 使用
根据传入的参数 生成 accessToken,expiresIn,refreshToken
文档API参见 https://wiki.connect.qq.com/%E5%BC%80%E5%8F%91%E6%94%BB%E7%95%A5_server-sideConstructor and Description |
---|
QqOauth2Template(String clientId,
String clientSecret,
String authorizeUrl,
String accessTokenUrl) |
Modifier and Type | Method and Description |
---|---|
protected org.springframework.web.client.RestTemplate |
createRestTemplate() |
protected org.springframework.social.oauth2.AccessGrant |
postForAccessGrant(String accessTokenUrl,
org.springframework.util.MultiValueMap<String,String> parameters) |
authenticateClient, authenticateClient, buildAuthenticateUrl, buildAuthenticateUrl, buildAuthorizeUrl, buildAuthorizeUrl, createAccessGrant, exchangeCredentialsForAccess, exchangeForAccess, getRestTemplate, refreshAccess, refreshAccess, setRequestFactory, setUseParametersForClientAuthentication
protected org.springframework.social.oauth2.AccessGrant postForAccessGrant(String accessTokenUrl, org.springframework.util.MultiValueMap<String,String> parameters)
postForAccessGrant
in class org.springframework.social.oauth2.OAuth2Template
protected org.springframework.web.client.RestTemplate createRestTemplate()
createRestTemplate
in class org.springframework.social.oauth2.OAuth2Template
Copyright © 2021. All rights reserved.