Rework SwitchBrowser Auth Tab integration to provider-based strategy (Common Option 1B), Fixes AB#3561426#3092
Closed
Copilot wants to merge 3 commits into
Closed
Rework SwitchBrowser Auth Tab integration to provider-based strategy (Common Option 1B), Fixes AB#3561426#3092Copilot wants to merge 3 commits into
Copilot wants to merge 3 commits into
Conversation
|
✅ Work item link check complete. Description contains link AB#3561426 to an Azure Boards work item. |
1 similar comment
|
✅ Work item link check complete. Description contains link AB#3561426 to an Azure Boards work item. |
Agent-Logs-Url: https://github.com/AzureAD/microsoft-authentication-library-common-for-android/sessions/b60f79aa-4017-40cb-a214-497266ae39c9 Co-authored-by: p3dr0rv <76129899+p3dr0rv@users.noreply.github.com>
Agent-Logs-Url: https://github.com/AzureAD/microsoft-authentication-library-common-for-android/sessions/b60f79aa-4017-40cb-a214-497266ae39c9 Co-authored-by: p3dr0rv <76129899+p3dr0rv@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Rework Auth Tab implementation to strategy pattern in Common, Fixes AB#3561426
Rework SwitchBrowser Auth Tab integration to provider-based strategy (Common Option 1B)
Apr 22, 2026
Contributor
|
Closing duplicate - keeping PR #3093 as the canonical PR for AB#3561426 (Option 1B rework) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This reworks the previous Auth Tab approach in Common to Option 1B: Common no longer owns Auth Tab implementation details tied to Browser 1.9.0 APIs, and instead uses a broker-registered strategy provider.
SwitchBrowserActivitynow selects Auth Tab via provider hooks with a safe Custom Tabs fallback.Provider-based Auth Tab registration in Common
AuthTabStrategyProvideras a singleton registry for broker-supplied Auth Tab behavior.register(factory, isSupported)isAuthTabSupported(context, browserPackage)createStrategy(activity, onResult)isAvailable()Strategy abstraction for browser launch
BrowserLaunchStrategyinterface (launch,handlesCancellationOnResume,cleanup).CustomTabsLaunchStrategyimplementation wrapping existingCustomTabsManagerbehavior.SwitchBrowserActivity strategy selection refactor
AuthTabStrategyProvider.CustomTabsLaunchStrategyif unavailable/unsupported/null.AuthTabManager/AuthTabLaunchStrategy.Targeted test updates
AuthTabStrategyProviderTestfor registration/availability/support/creation behavior.SwitchBrowserActivityTestcoverage for provider-driven strategy selection and fallback paths.CustomTabsLaunchStrategyTestfor cancellation-handling contract and cleanup safety.Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
dl.google.com/usr/lib/jvm/temurin-17-jdk-amd64/bin/java /usr/lib/jvm/temurin-17-jdk-amd64/bin/java --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.lang.invoke=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.prefs/java.util.prefs=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.prefs/java.util.prefs=ALL-UNNAMED --add-opens=java.base/java.nio.charset=ALL-UNNAMED --add-opens=java.base/java.net=ALL-UNNAMED --add-opens=java.base/java.util.concurrent.atomic=ALL-UNNAMED --add-opens=java.xml/javax.xml.namespace=ALL-UNNAMED -XX:MaxMetaspaceSize=1024m -XX:+HeapDumpOnOutOfMemoryError -Xmx3072m -Dfile.encoding=UTF-8 -Duser.country -Duser.language=en -Duser.variant(dns block)identitydivision.pkgs.visualstudio.com/usr/lib/jvm/temurin-17-jdk-amd64/bin/java /usr/lib/jvm/temurin-17-jdk-amd64/bin/java --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.lang.invoke=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.prefs/java.util.prefs=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.prefs/java.util.prefs=ALL-UNNAMED --add-opens=java.base/java.nio.charset=ALL-UNNAMED --add-opens=java.base/java.net=ALL-UNNAMED --add-opens=java.base/java.util.concurrent.atomic=ALL-UNNAMED --add-opens=java.xml/javax.xml.namespace=ALL-UNNAMED -XX:MaxMetaspaceSize=1024m -XX:+HeapDumpOnOutOfMemoryError -Xmx3072m -Dfile.encoding=UTF-8 -Duser.country -Duser.language=en -Duser.variant(dns block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt