Skip to content

Commit b80bb40

Browse files
authored
Merge pull request #37 from rogerhu/fix_oauth
We should be using OAuth1 access token, not request token
2 parents f06e1c1 + 9874f87 commit b80bb40

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Next, add this line to your `app/build.gradle` file:
2424

2525
```gradle
2626
dependencies {
27-
compile 'com.codepath.libraries:android-oauth-handler:1.1.2'
27+
compile 'com.codepath.libraries:android-oauth-handler:1.1.3'
2828
}
2929
```
3030

app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ ext {
88

99
GROUP = 'com.codepath.libraries'
1010
BASE_VERSION = "1.2"
11-
VERSION_NAME = "1.2.2"
11+
VERSION_NAME = "1.2.3"
1212
POM_PACKAGING = "aar"
1313
POM_DESCRIPTION = "CodePath OAuth Handler"
1414

app/src/main/java/com/codepath/oauth/OAuthBaseClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ public Token checkAccessToken() {
137137
int oAuthVersion = prefs.getInt(OAuthConstants.VERSION, 0);
138138

139139
if (oAuthVersion == 1 && prefs.contains(OAuthConstants.TOKEN) && prefs.contains(OAuthConstants.TOKEN_SECRET)) {
140-
return new OAuth1RequestToken(prefs.getString(OAuthConstants.TOKEN, ""),
140+
return new OAuth1AccessToken(prefs.getString(OAuthConstants.TOKEN, ""),
141141
prefs.getString(OAuthConstants.TOKEN_SECRET, ""));
142142
} else if (oAuthVersion == 2 && prefs.contains(OAuthConstants.TOKEN)) {
143143
return new OAuth2AccessToken(prefs.getString(OAuthConstants.TOKEN, ""));

0 commit comments

Comments
 (0)