Skip to content

Commit 701d8d8

Browse files
committed
make redirect_uri optional while Access Token requesting on OAuth 2.0 (thanks to https://github.com/computerlove)
1 parent 32604f1 commit 701d8d8

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

changelog

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
[SNAPSHOT]
2+
* make redirect_uri optional while Access Token requesting on OAuth 2.0 (thanks to https://github.com/computerlove)
3+
14
[5.6.0]
25
* remove support for obsolete NetEase (http://www.163.com/) and sohu 搜狐 (http://www.sohu.com/) (thanks to https://github.com/zawn)
36
* add Multipart functionality to JDK Http Client (thanks to https://github.com/eos1d3)

scribejava-core/src/main/java/com/github/scribejava/core/oauth/OAuth20Service.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ protected OAuthRequest createAccessTokenRequest(String code) {
108108
api.getClientAuthentication().addClientAuthentication(request, getApiKey(), getApiSecret());
109109

110110
request.addParameter(OAuthConstants.CODE, code);
111-
String callback = getCallback();
111+
final String callback = getCallback();
112112
if (callback != null) {
113113
request.addParameter(OAuthConstants.REDIRECT_URI, callback);
114114
}

0 commit comments

Comments
 (0)