@azure/msal-node 2.0.2 → 2.2.0-alpha.0
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.
- package/README.md +3 -1
- package/dist/cache/ITokenCache.d.ts +15 -15
- package/dist/cache/NodeStorage.cjs +401 -401
- package/dist/cache/NodeStorage.cjs.map +1 -1
- package/dist/cache/NodeStorage.d.ts +182 -182
- package/dist/cache/NodeStorage.d.ts.map +1 -1
- package/dist/cache/NodeStorage.mjs +401 -401
- package/dist/cache/NodeStorage.mjs.map +1 -1
- package/dist/cache/TokenCache.cjs +265 -269
- package/dist/cache/TokenCache.cjs.map +1 -1
- package/dist/cache/TokenCache.d.ts +90 -90
- package/dist/cache/TokenCache.d.ts.map +1 -1
- package/dist/cache/TokenCache.mjs +266 -270
- package/dist/cache/TokenCache.mjs.map +1 -1
- package/dist/cache/distributed/DistributedCachePlugin.cjs +26 -26
- package/dist/cache/distributed/DistributedCachePlugin.cjs.map +1 -1
- package/dist/cache/distributed/DistributedCachePlugin.d.ts +10 -10
- package/dist/cache/distributed/DistributedCachePlugin.d.ts.map +1 -1
- package/dist/cache/distributed/DistributedCachePlugin.mjs +26 -26
- package/dist/cache/distributed/DistributedCachePlugin.mjs.map +1 -1
- package/dist/cache/distributed/ICacheClient.d.ts +17 -17
- package/dist/cache/distributed/IPartitionManager.d.ts +28 -28
- package/dist/cache/serializer/Deserializer.cjs +173 -175
- package/dist/cache/serializer/Deserializer.cjs.map +1 -1
- package/dist/cache/serializer/Deserializer.d.ts +42 -42
- package/dist/cache/serializer/Deserializer.d.ts.map +1 -1
- package/dist/cache/serializer/Deserializer.mjs +174 -176
- package/dist/cache/serializer/Deserializer.mjs.map +1 -1
- package/dist/cache/serializer/Serializer.cjs +134 -134
- package/dist/cache/serializer/Serializer.cjs.map +1 -1
- package/dist/cache/serializer/Serializer.d.ts +39 -39
- package/dist/cache/serializer/Serializer.d.ts.map +1 -1
- package/dist/cache/serializer/Serializer.mjs +134 -134
- package/dist/cache/serializer/Serializer.mjs.map +1 -1
- package/dist/cache/serializer/SerializerTypes.d.ts +101 -101
- package/dist/client/ClientApplication.cjs +333 -333
- package/dist/client/ClientApplication.cjs.map +1 -1
- package/dist/client/ClientApplication.d.ts +142 -142
- package/dist/client/ClientApplication.d.ts.map +1 -1
- package/dist/client/ClientApplication.mjs +334 -334
- package/dist/client/ClientApplication.mjs.map +1 -1
- package/dist/client/ClientAssertion.cjs +116 -116
- package/dist/client/ClientAssertion.cjs.map +1 -1
- package/dist/client/ClientAssertion.d.ts +46 -46
- package/dist/client/ClientAssertion.d.ts.map +1 -1
- package/dist/client/ClientAssertion.mjs +117 -117
- package/dist/client/ClientAssertion.mjs.map +1 -1
- package/dist/client/ClientCredentialClient.cjs +189 -168
- package/dist/client/ClientCredentialClient.cjs.map +1 -1
- package/dist/client/ClientCredentialClient.d.ts +33 -33
- package/dist/client/ClientCredentialClient.d.ts.map +1 -1
- package/dist/client/ClientCredentialClient.mjs +190 -169
- package/dist/client/ClientCredentialClient.mjs.map +1 -1
- package/dist/client/ConfidentialClientApplication.cjs +163 -164
- package/dist/client/ConfidentialClientApplication.cjs.map +1 -1
- package/dist/client/ConfidentialClientApplication.d.ts +58 -58
- package/dist/client/ConfidentialClientApplication.d.ts.map +1 -1
- package/dist/client/ConfidentialClientApplication.mjs +164 -165
- package/dist/client/ConfidentialClientApplication.mjs.map +1 -1
- package/dist/client/DeviceCodeClient.cjs +207 -207
- package/dist/client/DeviceCodeClient.cjs.map +1 -1
- package/dist/client/DeviceCodeClient.d.ts +53 -53
- package/dist/client/DeviceCodeClient.d.ts.map +1 -1
- package/dist/client/DeviceCodeClient.mjs +208 -208
- package/dist/client/DeviceCodeClient.mjs.map +1 -1
- package/dist/client/IConfidentialClientApplication.d.ts +39 -39
- package/dist/client/IConfidentialClientApplication.d.ts.map +1 -1
- package/dist/client/IPublicClientApplication.d.ts +42 -42
- package/dist/client/IPublicClientApplication.d.ts.map +1 -1
- package/dist/client/OnBehalfOfClient.cjs +203 -204
- package/dist/client/OnBehalfOfClient.cjs.map +1 -1
- package/dist/client/OnBehalfOfClient.d.ts +47 -47
- package/dist/client/OnBehalfOfClient.d.ts.map +1 -1
- package/dist/client/OnBehalfOfClient.mjs +204 -205
- package/dist/client/OnBehalfOfClient.mjs.map +1 -1
- package/dist/client/PublicClientApplication.cjs +229 -175
- package/dist/client/PublicClientApplication.cjs.map +1 -1
- package/dist/client/PublicClientApplication.d.ts +71 -65
- package/dist/client/PublicClientApplication.d.ts.map +1 -1
- package/dist/client/PublicClientApplication.mjs +232 -178
- package/dist/client/PublicClientApplication.mjs.map +1 -1
- package/dist/client/UsernamePasswordClient.cjs +95 -95
- package/dist/client/UsernamePasswordClient.cjs.map +1 -1
- package/dist/client/UsernamePasswordClient.d.ts +25 -25
- package/dist/client/UsernamePasswordClient.d.ts.map +1 -1
- package/dist/client/UsernamePasswordClient.mjs +95 -95
- package/dist/client/UsernamePasswordClient.mjs.map +1 -1
- package/dist/config/Configuration.cjs +72 -72
- package/dist/config/Configuration.cjs.map +1 -1
- package/dist/config/Configuration.d.ts +107 -107
- package/dist/config/Configuration.mjs +72 -72
- package/dist/config/Configuration.mjs.map +1 -1
- package/dist/crypto/CryptoProvider.cjs +75 -75
- package/dist/crypto/CryptoProvider.cjs.map +1 -1
- package/dist/crypto/CryptoProvider.d.ts +52 -52
- package/dist/crypto/CryptoProvider.mjs +75 -75
- package/dist/crypto/CryptoProvider.mjs.map +1 -1
- package/dist/crypto/GuidGenerator.cjs +22 -22
- package/dist/crypto/GuidGenerator.cjs.map +1 -1
- package/dist/crypto/GuidGenerator.d.ts +14 -14
- package/dist/crypto/GuidGenerator.mjs +22 -22
- package/dist/crypto/GuidGenerator.mjs.map +1 -1
- package/dist/crypto/HashUtils.cjs +13 -13
- package/dist/crypto/HashUtils.cjs.map +1 -1
- package/dist/crypto/HashUtils.d.ts +8 -8
- package/dist/crypto/HashUtils.mjs +13 -13
- package/dist/crypto/HashUtils.mjs.map +1 -1
- package/dist/crypto/PkceGenerator.cjs +49 -49
- package/dist/crypto/PkceGenerator.cjs.map +1 -1
- package/dist/crypto/PkceGenerator.d.ts +22 -22
- package/dist/crypto/PkceGenerator.mjs +49 -49
- package/dist/crypto/PkceGenerator.mjs.map +1 -1
- package/dist/error/NodeAuthError.cjs +85 -85
- package/dist/error/NodeAuthError.cjs.map +1 -1
- package/dist/error/NodeAuthError.d.ts +65 -65
- package/dist/error/NodeAuthError.mjs +85 -85
- package/dist/error/NodeAuthError.mjs.map +1 -1
- package/dist/index.cjs +17 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +42 -42
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/internals.cjs +8 -8
- package/dist/internals.cjs.map +1 -1
- package/dist/internals.d.ts +6 -6
- package/dist/internals.d.ts.map +1 -1
- package/dist/internals.mjs +8 -8
- package/dist/internals.mjs.map +1 -1
- package/dist/network/HttpClient.cjs +277 -276
- package/dist/network/HttpClient.cjs.map +1 -1
- package/dist/network/HttpClient.d.ts +25 -25
- package/dist/network/HttpClient.d.ts.map +1 -1
- package/dist/network/HttpClient.mjs +278 -277
- package/dist/network/HttpClient.mjs.map +1 -1
- package/dist/network/ILoopbackClient.d.ts +10 -10
- package/dist/network/LoopbackClient.cjs +75 -84
- package/dist/network/LoopbackClient.cjs.map +1 -1
- package/dist/network/LoopbackClient.d.ts +21 -21
- package/dist/network/LoopbackClient.d.ts.map +1 -1
- package/dist/network/LoopbackClient.mjs +77 -86
- package/dist/network/LoopbackClient.mjs.map +1 -1
- package/dist/packageMetadata.cjs +4 -4
- package/dist/packageMetadata.cjs.map +1 -1
- package/dist/packageMetadata.d.ts +2 -2
- package/dist/packageMetadata.mjs +4 -4
- package/dist/packageMetadata.mjs.map +1 -1
- package/dist/request/AuthorizationCodeRequest.d.ts +21 -21
- package/dist/request/AuthorizationUrlRequest.d.ts +33 -33
- package/dist/request/ClientCredentialRequest.d.ts +14 -14
- package/dist/request/DeviceCodeRequest.d.ts +15 -15
- package/dist/request/InteractiveRequest.d.ts +22 -22
- package/dist/request/InteractiveRequest.d.ts.map +1 -1
- package/dist/request/OnBehalfOfRequest.d.ts +14 -14
- package/dist/request/RefreshTokenRequest.d.ts +17 -17
- package/dist/request/SignOutRequest.d.ts +5 -5
- package/dist/request/SilentFlowRequest.d.ts +16 -16
- package/dist/request/UsernamePasswordRequest.d.ts +19 -19
- package/dist/utils/Constants.cjs +80 -90
- package/dist/utils/Constants.cjs.map +1 -1
- package/dist/utils/Constants.d.ts +86 -96
- package/dist/utils/Constants.d.ts.map +1 -1
- package/dist/utils/Constants.mjs +81 -90
- package/dist/utils/Constants.mjs.map +1 -1
- package/dist/utils/EncodingUtils.cjs +44 -44
- package/dist/utils/EncodingUtils.cjs.map +1 -1
- package/dist/utils/EncodingUtils.d.ts +26 -26
- package/dist/utils/EncodingUtils.mjs +44 -44
- package/dist/utils/EncodingUtils.mjs.map +1 -1
- package/dist/utils/NetworkUtils.cjs +38 -38
- package/dist/utils/NetworkUtils.cjs.map +1 -1
- package/dist/utils/NetworkUtils.d.ts +5 -5
- package/dist/utils/NetworkUtils.mjs +38 -38
- package/dist/utils/NetworkUtils.mjs.map +1 -1
- package/package.json +8 -5
- package/src/cache/ITokenCache.ts +24 -0
- package/src/cache/NodeStorage.ts +533 -0
- package/src/cache/TokenCache.ts +358 -0
- package/src/cache/distributed/DistributedCachePlugin.ts +56 -0
- package/src/cache/distributed/ICacheClient.ts +23 -0
- package/src/cache/distributed/IPartitionManager.ts +35 -0
- package/src/cache/serializer/Deserializer.ts +218 -0
- package/src/cache/serializer/Serializer.ts +173 -0
- package/src/cache/serializer/SerializerTypes.ts +121 -0
- package/src/client/ClientApplication.ts +596 -0
- package/src/client/ClientAssertion.ts +165 -0
- package/src/client/ClientCredentialClient.ts +346 -0
- package/src/client/ConfidentialClientApplication.ts +268 -0
- package/src/client/DeviceCodeClient.ts +369 -0
- package/src/client/IConfidentialClientApplication.ts +72 -0
- package/src/client/IPublicClientApplication.ts +72 -0
- package/src/client/OnBehalfOfClient.ts +368 -0
- package/src/client/PublicClientApplication.ts +339 -0
- package/src/client/UsernamePasswordClient.ts +180 -0
- package/src/config/Configuration.ts +201 -0
- package/src/crypto/CryptoProvider.ts +98 -0
- package/src/crypto/GuidGenerator.ts +28 -0
- package/src/crypto/HashUtils.ts +17 -0
- package/src/crypto/PkceGenerator.ts +63 -0
- package/src/error/NodeAuthError.ts +117 -0
- package/src/index.ts +125 -0
- package/src/internals.ts +12 -0
- package/src/network/HttpClient.ts +425 -0
- package/src/network/ILoopbackClient.ts +19 -0
- package/src/network/LoopbackClient.ts +110 -0
- package/src/packageMetadata.ts +3 -0
- package/src/request/AuthorizationCodeRequest.ts +39 -0
- package/src/request/AuthorizationUrlRequest.ts +50 -0
- package/src/request/ClientCredentialRequest.ts +29 -0
- package/src/request/DeviceCodeRequest.ts +34 -0
- package/src/request/InteractiveRequest.ts +39 -0
- package/src/request/OnBehalfOfRequest.ts +30 -0
- package/src/request/RefreshTokenRequest.ts +34 -0
- package/src/request/SignOutRequest.ts +11 -0
- package/src/request/SilentFlowRequest.ts +32 -0
- package/src/request/UsernamePasswordRequest.ts +36 -0
- package/src/utils/Constants.ts +103 -0
- package/src/utils/EncodingUtils.ts +50 -0
- package/src/utils/NetworkUtils.ts +49 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NodeStorage.mjs","sources":["../../src/cache/NodeStorage.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;
|
|
1
|
+
{"version":3,"file":"NodeStorage.mjs","sources":["../../src/cache/NodeStorage.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;AAKA;AAmBA;AAMA;;;;;;AAeI,MAAA,WAAA,SAAA,YAAA,CAAA;;;AAGG,QAAA,IAAA,CAAA,KAAA,GAAA,EAAA,CAAA;AACH,QAAA,IAAA,CAAA,cAA0B,GAAA,EAAE,CAAM;AAIlC,QAAA,IAAA,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,CAAA,IAAA,CAAA,aAAA,CAAA,aAAA,CAAA;AAoBhC,SAAA,CAAA;;;AAGG;AACH;AAIA;;AAEG,IAAA,UAAA,CAAA,UAAA,EAAA;QACI,MAAA,OAAU,GAAE,IAAA,CAAA,OAAA,CAAA,UAAA,CAAA,CAAA;AAQnB,QAAA,IAAA,aAAA,CAAA,eAAA,CAAA,OAAA,CAAA,EAAA;;AAEG,SAAA;AACG,QAAA,OAAS,IAAA,CAAO;AAatB,KAAA;;;AAGG;AACH;AAMA,IAAA,UAAA,CAAA,OAAA,EAAA;;;AAGG,KAAA;AACH;AAIA;;AAEG;IACH,oBAAwB,CAAA;AAwB3B,QAAA,MAAA,OAAA,GAAA,IAAA,CAAA,OAAA,CAAA,UAAA,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @azure/msal-node v2.0.
|
|
1
|
+
/*! @azure/msal-node v2.2.0-alpha.0 2023-09-20 */
|
|
2
2
|
'use strict';
|
|
3
3
|
'use strict';
|
|
4
4
|
|
|
@@ -6,274 +6,270 @@ var msalCommon = require('@azure/msal-common');
|
|
|
6
6
|
var Deserializer = require('./serializer/Deserializer.cjs');
|
|
7
7
|
var Serializer = require('./serializer/Serializer.cjs');
|
|
8
8
|
|
|
9
|
-
/*
|
|
10
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
11
|
-
* Licensed under the MIT License.
|
|
12
|
-
*/
|
|
13
|
-
const defaultSerializedCache = {
|
|
14
|
-
Account: {},
|
|
15
|
-
IdToken: {},
|
|
16
|
-
AccessToken: {},
|
|
17
|
-
RefreshToken: {},
|
|
18
|
-
AppMetadata: {},
|
|
19
|
-
};
|
|
20
|
-
/**
|
|
21
|
-
* In-memory token cache manager
|
|
22
|
-
* @public
|
|
23
|
-
*/
|
|
24
|
-
class TokenCache {
|
|
25
|
-
constructor(storage, logger, cachePlugin) {
|
|
26
|
-
this.cacheHasChanged = false;
|
|
27
|
-
this.storage = storage;
|
|
28
|
-
this.storage.registerChangeEmitter(this.handleChangeEvent.bind(this));
|
|
29
|
-
if (cachePlugin) {
|
|
30
|
-
this.persistence = cachePlugin;
|
|
31
|
-
}
|
|
32
|
-
this.logger = logger;
|
|
33
|
-
}
|
|
34
|
-
/**
|
|
35
|
-
* Set to true if cache state has changed since last time serialize or writeToPersistence was called
|
|
36
|
-
*/
|
|
37
|
-
hasChanged() {
|
|
38
|
-
return this.cacheHasChanged;
|
|
39
|
-
}
|
|
40
|
-
/**
|
|
41
|
-
* Serializes in memory cache to JSON
|
|
42
|
-
*/
|
|
43
|
-
serialize() {
|
|
44
|
-
this.logger.trace("Serializing in-memory cache");
|
|
45
|
-
let finalState = Serializer.Serializer.serializeAllCache(this.storage.getInMemoryCache());
|
|
46
|
-
// if cacheSnapshot not null or empty, merge
|
|
47
|
-
if (
|
|
48
|
-
this.logger.trace("Reading cache snapshot from disk");
|
|
49
|
-
finalState = this.mergeState(JSON.parse(this.cacheSnapshot), finalState);
|
|
50
|
-
}
|
|
51
|
-
else {
|
|
52
|
-
this.logger.trace("No cache snapshot to merge");
|
|
53
|
-
}
|
|
54
|
-
this.cacheHasChanged = false;
|
|
55
|
-
return JSON.stringify(finalState);
|
|
56
|
-
}
|
|
57
|
-
/**
|
|
58
|
-
* Deserializes JSON to in-memory cache. JSON should be in MSAL cache schema format
|
|
59
|
-
* @param cache - blob formatted cache
|
|
60
|
-
*/
|
|
61
|
-
deserialize(cache) {
|
|
62
|
-
this.logger.trace("Deserializing JSON to in-memory cache");
|
|
63
|
-
this.cacheSnapshot = cache;
|
|
64
|
-
if (
|
|
65
|
-
this.logger.trace("Reading cache snapshot from disk");
|
|
66
|
-
const deserializedCache = Deserializer.Deserializer.deserializeAllCache(this.overlayDefaults(JSON.parse(this.cacheSnapshot)));
|
|
67
|
-
this.storage.setInMemoryCache(deserializedCache);
|
|
68
|
-
}
|
|
69
|
-
else {
|
|
70
|
-
this.logger.trace("No cache snapshot to deserialize");
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
/**
|
|
74
|
-
* Fetches the cache key-value map
|
|
75
|
-
*/
|
|
76
|
-
getKVStore() {
|
|
77
|
-
return this.storage.getCache();
|
|
78
|
-
}
|
|
79
|
-
/**
|
|
80
|
-
* API that retrieves all accounts currently in cache to the user
|
|
81
|
-
*/
|
|
82
|
-
async getAllAccounts() {
|
|
83
|
-
this.logger.trace("getAllAccounts called");
|
|
84
|
-
let cacheContext;
|
|
85
|
-
try {
|
|
86
|
-
if (this.persistence) {
|
|
87
|
-
cacheContext = new msalCommon.TokenCacheContext(this, false);
|
|
88
|
-
await this.persistence.beforeCacheAccess(cacheContext);
|
|
89
|
-
}
|
|
90
|
-
return this.storage.getAllAccounts();
|
|
91
|
-
}
|
|
92
|
-
finally {
|
|
93
|
-
if (this.persistence && cacheContext) {
|
|
94
|
-
await this.persistence.afterCacheAccess(cacheContext);
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
/**
|
|
99
|
-
* Returns the signed in account matching homeAccountId.
|
|
100
|
-
* (the account object is created at the time of successful login)
|
|
101
|
-
* or null when no matching account is found
|
|
102
|
-
* @param homeAccountId - unique identifier for an account (uid.utid)
|
|
103
|
-
*/
|
|
104
|
-
async getAccountByHomeId(homeAccountId) {
|
|
105
|
-
const allAccounts = await this.getAllAccounts();
|
|
106
|
-
if (
|
|
107
|
-
allAccounts
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
*
|
|
117
|
-
*
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
:
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
...defaultSerializedCache.
|
|
257
|
-
...passedInCache.
|
|
258
|
-
},
|
|
259
|
-
|
|
260
|
-
...defaultSerializedCache.
|
|
261
|
-
...passedInCache.
|
|
262
|
-
},
|
|
263
|
-
|
|
264
|
-
...defaultSerializedCache.
|
|
265
|
-
...passedInCache.
|
|
266
|
-
},
|
|
267
|
-
|
|
268
|
-
...defaultSerializedCache.
|
|
269
|
-
...passedInCache.
|
|
270
|
-
},
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
...passedInCache.AppMetadata,
|
|
274
|
-
},
|
|
275
|
-
};
|
|
276
|
-
}
|
|
9
|
+
/*
|
|
10
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
11
|
+
* Licensed under the MIT License.
|
|
12
|
+
*/
|
|
13
|
+
const defaultSerializedCache = {
|
|
14
|
+
Account: {},
|
|
15
|
+
IdToken: {},
|
|
16
|
+
AccessToken: {},
|
|
17
|
+
RefreshToken: {},
|
|
18
|
+
AppMetadata: {},
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* In-memory token cache manager
|
|
22
|
+
* @public
|
|
23
|
+
*/
|
|
24
|
+
class TokenCache {
|
|
25
|
+
constructor(storage, logger, cachePlugin) {
|
|
26
|
+
this.cacheHasChanged = false;
|
|
27
|
+
this.storage = storage;
|
|
28
|
+
this.storage.registerChangeEmitter(this.handleChangeEvent.bind(this));
|
|
29
|
+
if (cachePlugin) {
|
|
30
|
+
this.persistence = cachePlugin;
|
|
31
|
+
}
|
|
32
|
+
this.logger = logger;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Set to true if cache state has changed since last time serialize or writeToPersistence was called
|
|
36
|
+
*/
|
|
37
|
+
hasChanged() {
|
|
38
|
+
return this.cacheHasChanged;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Serializes in memory cache to JSON
|
|
42
|
+
*/
|
|
43
|
+
serialize() {
|
|
44
|
+
this.logger.trace("Serializing in-memory cache");
|
|
45
|
+
let finalState = Serializer.Serializer.serializeAllCache(this.storage.getInMemoryCache());
|
|
46
|
+
// if cacheSnapshot not null or empty, merge
|
|
47
|
+
if (this.cacheSnapshot) {
|
|
48
|
+
this.logger.trace("Reading cache snapshot from disk");
|
|
49
|
+
finalState = this.mergeState(JSON.parse(this.cacheSnapshot), finalState);
|
|
50
|
+
}
|
|
51
|
+
else {
|
|
52
|
+
this.logger.trace("No cache snapshot to merge");
|
|
53
|
+
}
|
|
54
|
+
this.cacheHasChanged = false;
|
|
55
|
+
return JSON.stringify(finalState);
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Deserializes JSON to in-memory cache. JSON should be in MSAL cache schema format
|
|
59
|
+
* @param cache - blob formatted cache
|
|
60
|
+
*/
|
|
61
|
+
deserialize(cache) {
|
|
62
|
+
this.logger.trace("Deserializing JSON to in-memory cache");
|
|
63
|
+
this.cacheSnapshot = cache;
|
|
64
|
+
if (this.cacheSnapshot) {
|
|
65
|
+
this.logger.trace("Reading cache snapshot from disk");
|
|
66
|
+
const deserializedCache = Deserializer.Deserializer.deserializeAllCache(this.overlayDefaults(JSON.parse(this.cacheSnapshot)));
|
|
67
|
+
this.storage.setInMemoryCache(deserializedCache);
|
|
68
|
+
}
|
|
69
|
+
else {
|
|
70
|
+
this.logger.trace("No cache snapshot to deserialize");
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* Fetches the cache key-value map
|
|
75
|
+
*/
|
|
76
|
+
getKVStore() {
|
|
77
|
+
return this.storage.getCache();
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* API that retrieves all accounts currently in cache to the user
|
|
81
|
+
*/
|
|
82
|
+
async getAllAccounts() {
|
|
83
|
+
this.logger.trace("getAllAccounts called");
|
|
84
|
+
let cacheContext;
|
|
85
|
+
try {
|
|
86
|
+
if (this.persistence) {
|
|
87
|
+
cacheContext = new msalCommon.TokenCacheContext(this, false);
|
|
88
|
+
await this.persistence.beforeCacheAccess(cacheContext);
|
|
89
|
+
}
|
|
90
|
+
return this.storage.getAllAccounts();
|
|
91
|
+
}
|
|
92
|
+
finally {
|
|
93
|
+
if (this.persistence && cacheContext) {
|
|
94
|
+
await this.persistence.afterCacheAccess(cacheContext);
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* Returns the signed in account matching homeAccountId.
|
|
100
|
+
* (the account object is created at the time of successful login)
|
|
101
|
+
* or null when no matching account is found
|
|
102
|
+
* @param homeAccountId - unique identifier for an account (uid.utid)
|
|
103
|
+
*/
|
|
104
|
+
async getAccountByHomeId(homeAccountId) {
|
|
105
|
+
const allAccounts = await this.getAllAccounts();
|
|
106
|
+
if (homeAccountId && allAccounts && allAccounts.length) {
|
|
107
|
+
return (allAccounts.filter((accountObj) => accountObj.homeAccountId === homeAccountId)[0] || null);
|
|
108
|
+
}
|
|
109
|
+
else {
|
|
110
|
+
return null;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* Returns the signed in account matching localAccountId.
|
|
115
|
+
* (the account object is created at the time of successful login)
|
|
116
|
+
* or null when no matching account is found
|
|
117
|
+
* @param localAccountId - unique identifier of an account (sub/obj when homeAccountId cannot be populated)
|
|
118
|
+
*/
|
|
119
|
+
async getAccountByLocalId(localAccountId) {
|
|
120
|
+
const allAccounts = await this.getAllAccounts();
|
|
121
|
+
if (localAccountId && allAccounts && allAccounts.length) {
|
|
122
|
+
return (allAccounts.filter((accountObj) => accountObj.localAccountId === localAccountId)[0] || null);
|
|
123
|
+
}
|
|
124
|
+
else {
|
|
125
|
+
return null;
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
/**
|
|
129
|
+
* API to remove a specific account and the relevant data from cache
|
|
130
|
+
* @param account - AccountInfo passed by the user
|
|
131
|
+
*/
|
|
132
|
+
async removeAccount(account) {
|
|
133
|
+
this.logger.trace("removeAccount called");
|
|
134
|
+
let cacheContext;
|
|
135
|
+
try {
|
|
136
|
+
if (this.persistence) {
|
|
137
|
+
cacheContext = new msalCommon.TokenCacheContext(this, true);
|
|
138
|
+
await this.persistence.beforeCacheAccess(cacheContext);
|
|
139
|
+
}
|
|
140
|
+
await this.storage.removeAccount(msalCommon.AccountEntity.generateAccountCacheKey(account));
|
|
141
|
+
}
|
|
142
|
+
finally {
|
|
143
|
+
if (this.persistence && cacheContext) {
|
|
144
|
+
await this.persistence.afterCacheAccess(cacheContext);
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
/**
|
|
149
|
+
* Called when the cache has changed state.
|
|
150
|
+
*/
|
|
151
|
+
handleChangeEvent() {
|
|
152
|
+
this.cacheHasChanged = true;
|
|
153
|
+
}
|
|
154
|
+
/**
|
|
155
|
+
* Merge in memory cache with the cache snapshot.
|
|
156
|
+
* @param oldState - cache before changes
|
|
157
|
+
* @param currentState - current cache state in the library
|
|
158
|
+
*/
|
|
159
|
+
mergeState(oldState, currentState) {
|
|
160
|
+
this.logger.trace("Merging in-memory cache with cache snapshot");
|
|
161
|
+
const stateAfterRemoval = this.mergeRemovals(oldState, currentState);
|
|
162
|
+
return this.mergeUpdates(stateAfterRemoval, currentState);
|
|
163
|
+
}
|
|
164
|
+
/**
|
|
165
|
+
* Deep update of oldState based on newState values
|
|
166
|
+
* @param oldState - cache before changes
|
|
167
|
+
* @param newState - updated cache
|
|
168
|
+
*/
|
|
169
|
+
mergeUpdates(oldState, newState) {
|
|
170
|
+
Object.keys(newState).forEach((newKey) => {
|
|
171
|
+
const newValue = newState[newKey];
|
|
172
|
+
// if oldState does not contain value but newValue does, add it
|
|
173
|
+
if (!oldState.hasOwnProperty(newKey)) {
|
|
174
|
+
if (newValue !== null) {
|
|
175
|
+
oldState[newKey] = newValue;
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
else {
|
|
179
|
+
// both oldState and newState contain the key, do deep update
|
|
180
|
+
const newValueNotNull = newValue !== null;
|
|
181
|
+
const newValueIsObject = typeof newValue === "object";
|
|
182
|
+
const newValueIsNotArray = !Array.isArray(newValue);
|
|
183
|
+
const oldStateNotUndefinedOrNull = typeof oldState[newKey] !== "undefined" &&
|
|
184
|
+
oldState[newKey] !== null;
|
|
185
|
+
if (newValueNotNull &&
|
|
186
|
+
newValueIsObject &&
|
|
187
|
+
newValueIsNotArray &&
|
|
188
|
+
oldStateNotUndefinedOrNull) {
|
|
189
|
+
this.mergeUpdates(oldState[newKey], newValue);
|
|
190
|
+
}
|
|
191
|
+
else {
|
|
192
|
+
oldState[newKey] = newValue;
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
});
|
|
196
|
+
return oldState;
|
|
197
|
+
}
|
|
198
|
+
/**
|
|
199
|
+
* Removes entities in oldState that the were removed from newState. If there are any unknown values in root of
|
|
200
|
+
* oldState that are not recognized, they are left untouched.
|
|
201
|
+
* @param oldState - cache before changes
|
|
202
|
+
* @param newState - updated cache
|
|
203
|
+
*/
|
|
204
|
+
mergeRemovals(oldState, newState) {
|
|
205
|
+
this.logger.trace("Remove updated entries in cache");
|
|
206
|
+
const accounts = oldState.Account
|
|
207
|
+
? this.mergeRemovalsDict(oldState.Account, newState.Account)
|
|
208
|
+
: oldState.Account;
|
|
209
|
+
const accessTokens = oldState.AccessToken
|
|
210
|
+
? this.mergeRemovalsDict(oldState.AccessToken, newState.AccessToken)
|
|
211
|
+
: oldState.AccessToken;
|
|
212
|
+
const refreshTokens = oldState.RefreshToken
|
|
213
|
+
? this.mergeRemovalsDict(oldState.RefreshToken, newState.RefreshToken)
|
|
214
|
+
: oldState.RefreshToken;
|
|
215
|
+
const idTokens = oldState.IdToken
|
|
216
|
+
? this.mergeRemovalsDict(oldState.IdToken, newState.IdToken)
|
|
217
|
+
: oldState.IdToken;
|
|
218
|
+
const appMetadata = oldState.AppMetadata
|
|
219
|
+
? this.mergeRemovalsDict(oldState.AppMetadata, newState.AppMetadata)
|
|
220
|
+
: oldState.AppMetadata;
|
|
221
|
+
return {
|
|
222
|
+
...oldState,
|
|
223
|
+
Account: accounts,
|
|
224
|
+
AccessToken: accessTokens,
|
|
225
|
+
RefreshToken: refreshTokens,
|
|
226
|
+
IdToken: idTokens,
|
|
227
|
+
AppMetadata: appMetadata,
|
|
228
|
+
};
|
|
229
|
+
}
|
|
230
|
+
/**
|
|
231
|
+
* Helper to merge new cache with the old one
|
|
232
|
+
* @param oldState - cache before changes
|
|
233
|
+
* @param newState - updated cache
|
|
234
|
+
*/
|
|
235
|
+
mergeRemovalsDict(oldState, newState) {
|
|
236
|
+
const finalState = { ...oldState };
|
|
237
|
+
Object.keys(oldState).forEach((oldKey) => {
|
|
238
|
+
if (!newState || !newState.hasOwnProperty(oldKey)) {
|
|
239
|
+
delete finalState[oldKey];
|
|
240
|
+
}
|
|
241
|
+
});
|
|
242
|
+
return finalState;
|
|
243
|
+
}
|
|
244
|
+
/**
|
|
245
|
+
* Helper to overlay as a part of cache merge
|
|
246
|
+
* @param passedInCache - cache read from the blob
|
|
247
|
+
*/
|
|
248
|
+
overlayDefaults(passedInCache) {
|
|
249
|
+
this.logger.trace("Overlaying input cache with the default cache");
|
|
250
|
+
return {
|
|
251
|
+
Account: {
|
|
252
|
+
...defaultSerializedCache.Account,
|
|
253
|
+
...passedInCache.Account,
|
|
254
|
+
},
|
|
255
|
+
IdToken: {
|
|
256
|
+
...defaultSerializedCache.IdToken,
|
|
257
|
+
...passedInCache.IdToken,
|
|
258
|
+
},
|
|
259
|
+
AccessToken: {
|
|
260
|
+
...defaultSerializedCache.AccessToken,
|
|
261
|
+
...passedInCache.AccessToken,
|
|
262
|
+
},
|
|
263
|
+
RefreshToken: {
|
|
264
|
+
...defaultSerializedCache.RefreshToken,
|
|
265
|
+
...passedInCache.RefreshToken,
|
|
266
|
+
},
|
|
267
|
+
AppMetadata: {
|
|
268
|
+
...defaultSerializedCache.AppMetadata,
|
|
269
|
+
...passedInCache.AppMetadata,
|
|
270
|
+
},
|
|
271
|
+
};
|
|
272
|
+
}
|
|
277
273
|
}
|
|
278
274
|
|
|
279
275
|
exports.TokenCache = TokenCache;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TokenCache.cjs","sources":["../../src/cache/TokenCache.ts"],"sourcesContent":[null],"names":[
|
|
1
|
+
{"version":3,"file":"TokenCache.cjs","sources":["../../src/cache/TokenCache.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;AAKA;AACA;AAQA;AAYA;AAaG,MAAA,sBAAA,GAAA;AACH,IAAA,OAAA,EAAA,EAAA;IACI,OAAO;IACP;IACA;AACA,IAAA,WAAQ,EAAA,EAAA;;;AAiBR;;AAEG;AACH,MAAA,UAAqB,CAAA;AAIrB,IAAA,WAAA,CAAA,OAAA,EAAA,MAAA,EAAA,WAAA,EAAA;;AAEG,QAAA,IAAA,CAAA,OAAA,GAAA,OAAA,CAAA;AACH,QAAA,IAAA,CAAS,OAAU,CAAA,qBAAA,CAAA,IAAA,CAAA,iBAAA,CAAA,IAAA,CAAA,IAAA,CAAA,CAAA,CAAA;AAqBnB,QAAA,IAAA,WAAA,EAAA;;;AAGG,QAAA,IAAA,CAAA,MAAA,GAAA,MAAA,CAAA;AACH,KAAA;AAeA;;AAEG;AACH,I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