Skip to content
3 changes: 2 additions & 1 deletion changelog.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
vNext
----------
- [MINOR] Use SharedPreferencesInMemoryCache implementation in Broker (#2802)
- [MINOR] Add new span name for DELEGATION_CERT_INSTALL's telemetry (#2790)
- [MINOR] Refactor getAccountByLocalAccountId (#2781)
- [MINOR] Add OTel Benchmarker (#2786)
Expand Down Expand Up @@ -1189,4 +1190,4 @@ Version 0.0.3
* Separate methods for PII/OII logging
- Initial Exception model implemented
* BaseException + Client & Service subclasses
- Substantial portions of HTTP/S networking code migrated from ADAL & MSAL to this module
- Substantial portions of HTTP/S networking code migrated from ADAL & MSAL to this module
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@
import com.microsoft.identity.common.java.dto.IdTokenRecord;
import com.microsoft.identity.common.java.dto.RefreshTokenRecord;
import com.microsoft.identity.common.java.exception.ClientException;
import com.microsoft.identity.common.java.flighting.CommonFlight;
import com.microsoft.identity.common.java.flighting.CommonFlightsManager;
import com.microsoft.identity.common.java.interfaces.INameValueStorage;
import com.microsoft.identity.common.java.interfaces.IPlatformComponents;
import com.microsoft.identity.common.java.logging.Logger;
Expand Down Expand Up @@ -161,7 +163,9 @@ MicrosoftRefreshToken> create(@NonNull final IPlatformComponents components, boo
String.class
);
final IAccountCredentialCache accountCredentialCache;
if (useInMemoryCache) {
if (useInMemoryCache || CommonFlightsManager.INSTANCE
.getFlightsProvider()
.isFlightEnabled(CommonFlight.USE_IN_MEMORY_CACHE_FOR_ACCOUNTS_AND_CREDENTIALS)) {
accountCredentialCache = new SharedPreferencesAccountCredentialCacheWithMemoryCache(
cacheKeyValueDelegate,
sharedPreferencesFileManager
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,12 @@ public enum CommonFlight implements IFlightConfig {
* Flight to enable OpenID issuer validation code which validates issuer against the open id well known
* config endpoint and only reports the failure result.
*/
ENABLE_OPENID_ISSUER_VALIDATION_REPORTING("EnableOpenIdIssuerValidationReporting", true);
ENABLE_OPENID_ISSUER_VALIDATION_REPORTING("EnableOpenIdIssuerValidationReporting", true),

/**
* Flight to control whether or not to use in memory cache for accounts and credentials.
*/
USE_IN_MEMORY_CACHE_FOR_ACCOUNTS_AND_CREDENTIALS("UseInMemoryCacheForAccountsAndCredentials", false);

private String key;
private Object defaultValue;
Expand Down
Loading