Commit 422e9925 authored by Quxl's avatar Quxl

x

parent c9ebd651
......@@ -147,6 +147,11 @@ public interface OAuthApi {
builder.setClientId(config.getClientId());
builder.setClientSecret(config.getClientSecret());
OAuthClientRequest oauthClientRequest = builder.buildQueryMessage();
logger.debug("oauth refresh request: " + oauthClientRequest.getLocationUri());
logger.debug("oauth refresh headers: " + JSON.toJSONString(oauthClientRequest.getHeaders()));
logger.debug("oauth refresh body: " + JSON.toJSONString(oauthClientRequest.getBody()));
OAuthClient oAuthClient = new OAuthClient(new URLConnectionClient());
OAuthJSONAccessTokenResponse oAuthResponse = oAuthClient.accessToken(oauthClientRequest, OAuth.HttpMethod.POST);
String accessToken = oAuthResponse.getAccessToken();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment