对接 OAUTH2 时,POST 请求获取用户信息失败

This issue has been tracked since 2021-06-03.

下面的代码负责发送获取用户信息的 POST 请求,
想问一下是不是应该加一个 Header:
Content-Type: application/x-www-form-urlencoded;charset=UTF-8

protected String oauthClientInfoPost(OauthClient oauthClient, String redirectUri, String accessToken,
String refreshToken) throws Exception {
String address = oauthClient.getInfoAddress();
String parameter = fillInfoParameter(oauthClient.getInfoParameter(), oauthClient, redirectUri, accessToken,
refreshToken);
logger.debug("info post address:{}.", address);
logger.debug("info post parameter:{}.", parameter);
String str = HttpConnection.postAsString(address, null, parameter);
return str;
}

More Details About Repo
Owner Name o2oa
Repo Name o2oa
Full Name o2oa/o2oa
Language JavaScript
Created Date 2017-02-14
Updated Date 2022-06-23
Star Count 3171
Watcher Count 120
Fork Count 1032
Issue Count 30

YOU MAY BE INTERESTED

Issue Title Created Date Updated Date