Skip to content

Commit

Permalink
use client sdk cache
Browse files Browse the repository at this point in the history
  • Loading branch information
rpdome committed Aug 31, 2023
1 parent 4821f95 commit 2737fc3
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion common
Submodule common updated 17 files
+22 −12 azure-pipelines/pull-request-validation/build-consumers.yml
+15 −8 changelog.txt
+3 −4 common/src/main/java/com/microsoft/identity/common/internal/activebrokerdiscovery/BrokerDiscoveryClient.kt
+27 −3 .../src/main/java/com/microsoft/identity/common/internal/activebrokerdiscovery/BrokerDiscoveryClientFactory.kt
+36 −16 common/src/main/java/com/microsoft/identity/common/internal/broker/BrokerValidator.kt
+4 −2 common/src/main/java/com/microsoft/identity/common/internal/broker/ipc/BrokerOperationBundle.java
+7 −0 common/src/main/java/com/microsoft/identity/common/internal/cache/ActiveBrokerCacheUpdater.kt
+30 −7 common/src/main/java/com/microsoft/identity/common/internal/cache/ClientActiveBrokerCache.kt
+1 −1 common/src/main/java/com/microsoft/identity/common/internal/controllers/BrokerMsalController.java
+3 −2 common/src/main/java/com/microsoft/identity/common/internal/logging/Logger.java
+16 −14 common/src/main/java/com/microsoft/identity/common/internal/platform/AndroidDevicePopManager.java
+4 −1 common/src/main/java/com/microsoft/identity/common/logging/Logger.java
+5 −3 common4j/src/main/com/microsoft/identity/common/java/cache/MsalOAuth2TokenCache.java
+1 −2 gradle.properties
+0 −2 uiautomationutilities/src/main/java/com/microsoft/identity/client/ui/automation/app/OneAuthTestApp.java
+1 −0 uiautomationutilities/src/main/java/com/microsoft/identity/client/ui/automation/broker/BrokerHost.java
+2 −0 ...tilities/src/main/java/com/microsoft/identity/client/ui/automation/broker/BrokerMicrosoftAuthenticator.java
Original file line number Diff line number Diff line change
Expand Up @@ -2301,7 +2301,7 @@ public boolean isValidBrokerPackage(@NonNull final Context context,
**/
@Nullable
public String getActiveBrokerPackageName(@NonNull final Context context) {
final BrokerData activeBroker = BrokerDiscoveryClientFactory.getInstance(context,
final BrokerData activeBroker = BrokerDiscoveryClientFactory.getInstanceForClientSdk(context,
AndroidPlatformComponentsFactory.createFromContext(context))
.getActiveBroker(false);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class MSALControllerFactory(
private val platformComponents: IPlatformComponents,
private val applicationConfiguration: PublicClientApplicationConfiguration) {

private val discoveryClient = BrokerDiscoveryClientFactory.getInstance(
private val discoveryClient = BrokerDiscoveryClientFactory.getInstanceForClientSdk(
context = applicationContext,
platformComponents = platformComponents
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ public void onClick(View v) {
mDebugBrokers.setTextOn("Debug Brokers");
mDebugBrokers.setChecked(BrokerData.getShouldTrustDebugBrokers());

mCache = ClientActiveBrokerCache.Companion.getCache(
mCache = ClientActiveBrokerCache.getClientSdkCache(
AndroidPlatformComponentsFactory.createFromContext(getContext()).getStorageSupplier()
);

Expand Down

0 comments on commit 2737fc3

Please sign in to comment.