Skip to content

Commit c20d7c8

Browse files
committed
New intent:// scheme breaks this check. Disable for now
1 parent f06e1c1 commit c20d7c8

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

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: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -122,11 +122,9 @@ public void connect() {
122122
public void authorize(Uri uri, OAuthAccessHandler handler) {
123123
this.accessHandler = handler;
124124
if (checkAccessToken() == null && uri != null) {
125-
String uriServiceCallback = uri.getScheme() + "://" + uri.getHost();
126-
// check if the authorize callback matches this service before trying to get an access token
127-
if (uriServiceCallback.equals(callbackUrl)) {
128-
client.fetchAccessToken(getOAuth1RequestToken(), uri);
129-
}
125+
// TODO: check UriServiceCallback with intent:// scheme
126+
client.fetchAccessToken(getOAuth1RequestToken(), uri);
127+
130128
} else if (checkAccessToken() != null) { // already have access token
131129
this.accessHandler.onLoginSuccess();
132130
}

0 commit comments

Comments
 (0)