Skip to content

Commit

Permalink
Use Active Broker cache specifically for Client SDK
Browse files Browse the repository at this point in the history
  • Loading branch information
rpdome committed Aug 31, 2023
1 parent aa7fd85 commit ab51806
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions changelog
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
MSAL Wiki : https://github.com/AzureAD/microsoft-authentication-library-for-android/wiki
V.NEXT
----------
- [MINOR] Use Active Broker cache specifically for Client SDK (#1892)
- [MINOR] MSA UI tests for Brokered Auth (#1856)
- [MINOR] Updated target, compile SDK, AGP and gradle versions(#1882)

Expand Down
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 ab51806

Please sign in to comment.