@azure/identity 4.1.0-alpha.20240321.3 → 4.1.0-alpha.20240325.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of @azure/identity might be problematic. Click here for more details.
- package/dist/index.js +12 -4
- package/dist/index.js.map +1 -1
- package/dist-esm/src/constants.js +9 -2
- package/dist-esm/src/constants.js.map +1 -1
- package/dist-esm/src/msal/nodeFlows/msalNodeCommon.js +4 -3
- package/dist-esm/src/msal/nodeFlows/msalNodeCommon.js.map +1 -1
- package/dist-esm/src/msal/nodeFlows/msalPlugins.js +4 -3
- package/dist-esm/src/msal/nodeFlows/msalPlugins.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -93,11 +93,18 @@ const ALL_TENANTS = ["*"];
|
|
|
93
93
|
/**
|
|
94
94
|
* @internal
|
|
95
95
|
*/
|
|
96
|
-
const CACHE_CAE_SUFFIX = "
|
|
96
|
+
const CACHE_CAE_SUFFIX = "cae";
|
|
97
97
|
/**
|
|
98
98
|
* @internal
|
|
99
99
|
*/
|
|
100
|
-
const CACHE_NON_CAE_SUFFIX = "
|
|
100
|
+
const CACHE_NON_CAE_SUFFIX = "nocae";
|
|
101
|
+
/**
|
|
102
|
+
* @internal
|
|
103
|
+
*
|
|
104
|
+
* The default name for the cache persistence plugin.
|
|
105
|
+
* Matches the constant defined in the cache persistence package.
|
|
106
|
+
*/
|
|
107
|
+
const DEFAULT_TOKEN_CACHE_NAME = "msal.cache";
|
|
101
108
|
|
|
102
109
|
// Copyright (c) Microsoft Corporation.
|
|
103
110
|
// Licensed under the MIT license.
|
|
@@ -1696,8 +1703,9 @@ class MsalNode {
|
|
|
1696
1703
|
this.parentWindowHandle = (_d = options.brokerOptions) === null || _d === void 0 ? void 0 : _d.parentWindowHandle;
|
|
1697
1704
|
// If persistence has been configured
|
|
1698
1705
|
if (persistenceProvider !== undefined && ((_e = options.tokenCachePersistenceOptions) === null || _e === void 0 ? void 0 : _e.enabled)) {
|
|
1699
|
-
const
|
|
1700
|
-
const
|
|
1706
|
+
const cacheBaseName = options.tokenCachePersistenceOptions.name || DEFAULT_TOKEN_CACHE_NAME;
|
|
1707
|
+
const nonCaeOptions = Object.assign({ name: `${cacheBaseName}.${CACHE_NON_CAE_SUFFIX}` }, options.tokenCachePersistenceOptions);
|
|
1708
|
+
const caeOptions = Object.assign({ name: `${cacheBaseName}.${CACHE_CAE_SUFFIX}` }, options.tokenCachePersistenceOptions);
|
|
1701
1709
|
this.createCachePlugin = () => persistenceProvider(nonCaeOptions);
|
|
1702
1710
|
this.createCachePluginCae = () => persistenceProvider(caeOptions);
|
|
1703
1711
|
}
|