Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4f23cfa

Browse files
Stuart Grimshawfernandezpablo85
authored andcommitted
Moved callback header above call to addOAthParams so it gets properly
signed.
1 parent 5c0d150 commit 4f23cfa

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

changelog.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,8 @@
3030
* FIX: Removed isEmpty() from OAuth2.0 code in order to support older JVMs
3131
* FEATURE: Overloaded provider() method to support instances as well as classes (thanks dustismo)
3232
* FIX: White-space parameter bug (thanks Krogoth)
33-
* FEATURE: OAuth 2.0 now implements server-flow (thanks Diego Silveira)
33+
* FEATURE: OAuth 2.0 now implements server-flow (thanks Diego Silveira)
34+
35+
[1.1.2]
36+
37+
* FIX: Fixed ugly bug that made 1.1.1 practically unusable (thanks Stubbs)

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<groupId>org.scribe</groupId>
55
<artifactId>scribe</artifactId>
66
<packaging>jar</packaging>
7-
<version>1.1.1</version>
7+
<version>1.1.2</version>
88
<name>Scribe OAuth Library</name>
99
<description>The best OAuth library out there</description>
1010
<url>http://github.com/fernandezpablo85/scribe-java</url>

src/main/java/org/scribe/oauth/OAuth10aServiceImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ public OAuth10aServiceImpl(DefaultApi10a api, OAuthConfig config)
3636
public Token getRequestToken()
3737
{
3838
OAuthRequest request = new OAuthRequest(api.getRequestTokenVerb(), api.getRequestTokenEndpoint());
39-
addOAuthParams(request, OAuthConstants.EMPTY_TOKEN);
4039
request.addOAuthParameter(OAuthConstants.CALLBACK, config.getCallback());
40+
addOAuthParams(request, OAuthConstants.EMPTY_TOKEN);
4141
addOAuthHeader(request);
4242
Response response = request.send();
4343
return api.getRequestTokenExtractor().extract(response.getBody());

0 commit comments

Comments
 (0)