diff --git a/changelog.txt b/changelog.txt index 9f711cf04c..13978a533b 100644 --- a/changelog.txt +++ b/changelog.txt @@ -12,6 +12,10 @@ vNext - [MINOR] Added error handling when webcp redirects have browser protocol #2767 - [PATCH] Fix for app link redirect from CCT due to forced browser preference (#2775) +Version 22.1.3 +---------- +- [PATCH] Don't set browser pkg name in CustomTabIntent (#2777) + Version 22.1.0 ---------- - [PATCH] Fix Switch browser back stack (#2750) diff --git a/common/src/main/java/com/microsoft/identity/common/internal/ui/browser/BrowserAuthorizationStrategy.java b/common/src/main/java/com/microsoft/identity/common/internal/ui/browser/BrowserAuthorizationStrategy.java index 028e67fa4d..f98790be1a 100644 --- a/common/src/main/java/com/microsoft/identity/common/internal/ui/browser/BrowserAuthorizationStrategy.java +++ b/common/src/main/java/com/microsoft/identity/common/internal/ui/browser/BrowserAuthorizationStrategy.java @@ -99,6 +99,7 @@ public Future requestAuthorization( if (!mCustomTabManager.bind(context, mBrowser.getPackageName())) { //create browser auth intent authIntent = new Intent(Intent.ACTION_VIEW); + authIntent.setPackage(mBrowser.getPackageName()); } else { authIntent = mCustomTabManager.getCustomTabsIntent().intent; } @@ -109,9 +110,9 @@ public Future requestAuthorization( ); //create browser auth intent authIntent = new Intent(Intent.ACTION_VIEW); + authIntent.setPackage(mBrowser.getPackageName()); } - authIntent.setPackage(mBrowser.getPackageName()); final URI requestUrl = authorizationRequest.getAuthorizationRequestAsHttpRequest(); authIntent.setData(Uri.parse(requestUrl.toString()));