OAuth: exclude SBrowser 5.3 or older

pull/209/head
M66B 2 years ago
parent 454d72a6d2
commit 427518c1ed

@ -383,7 +383,13 @@ public class FragmentOAuth extends FragmentBase {
AppAuthConfiguration appAuthConfig = new AppAuthConfiguration.Builder()
.setBrowserMatcher(new BrowserMatcher() {
// https://github.com/openid/AppAuth-Android/issues/116
final BrowserMatcher SBROWSER = new VersionedBrowserMatcher(
Browsers.SBrowser.PACKAGE_NAME,
Browsers.SBrowser.SIGNATURE_SET,
false,
VersionRange.atMost("5.3"));
final BrowserMatcher SBROWSER_TAB = new VersionedBrowserMatcher(
Browsers.SBrowser.PACKAGE_NAME,
Browsers.SBrowser.SIGNATURE_SET,
true,
@ -391,7 +397,7 @@ public class FragmentOAuth extends FragmentBase {
@Override
public boolean matches(@NonNull BrowserDescriptor descriptor) {
boolean accept = !SBROWSER.matches(descriptor);
boolean accept = !(SBROWSER.matches(descriptor) || SBROWSER_TAB.matches(descriptor));
EntityLog.log(context,
"Browser=" + descriptor.packageName +
":" + descriptor.version +

Loading…
Cancel
Save