diff --git a/library/src/main/java/com/wuman/android/auth/OAuthDialogFragment.java b/library/src/main/java/com/wuman/android/auth/OAuthDialogFragment.java index 00e50a9..a2b6cf2 100644 --- a/library/src/main/java/com/wuman/android/auth/OAuthDialogFragment.java +++ b/library/src/main/java/com/wuman/android/auth/OAuthDialogFragment.java @@ -226,7 +226,7 @@ private boolean interceptUrlCompat(WebView view, String url, boolean loadUrl) { .toString(); LOGGER.info("url: " + url + ", redirect: " + redirectUri + ", callback: " + TextUtils.equals(baseUrl, redirectUri)); - if (TextUtils.equals(baseUrl, redirectUri)) { + if (redirectUri.startsWith(baseUrl)) { if (TextUtils.equals(authorizationType, AUTHORIZATION_10A)) { OAuth10aResponseUrl responseUrl = new OAuth10aResponseUrl(url); mController.set(responseUrl.getVerifier(), responseUrl.getError(), null,