@azure/msal-node 2.1.0 → 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.
Files changed (134) hide show
  1. package/dist/cache/ITokenCache.d.ts +15 -15
  2. package/dist/cache/NodeStorage.cjs +401 -401
  3. package/dist/cache/NodeStorage.d.ts +182 -182
  4. package/dist/cache/NodeStorage.mjs +401 -401
  5. package/dist/cache/TokenCache.cjs +265 -265
  6. package/dist/cache/TokenCache.d.ts +90 -90
  7. package/dist/cache/TokenCache.mjs +265 -265
  8. package/dist/cache/distributed/DistributedCachePlugin.cjs +26 -26
  9. package/dist/cache/distributed/DistributedCachePlugin.d.ts +10 -10
  10. package/dist/cache/distributed/DistributedCachePlugin.mjs +26 -26
  11. package/dist/cache/distributed/ICacheClient.d.ts +17 -17
  12. package/dist/cache/distributed/IPartitionManager.d.ts +28 -28
  13. package/dist/cache/serializer/Deserializer.cjs +173 -173
  14. package/dist/cache/serializer/Deserializer.d.ts +42 -42
  15. package/dist/cache/serializer/Deserializer.mjs +173 -173
  16. package/dist/cache/serializer/Serializer.cjs +134 -134
  17. package/dist/cache/serializer/Serializer.d.ts +39 -39
  18. package/dist/cache/serializer/Serializer.mjs +134 -134
  19. package/dist/cache/serializer/SerializerTypes.d.ts +101 -101
  20. package/dist/client/ClientApplication.cjs +333 -333
  21. package/dist/client/ClientApplication.cjs.map +1 -1
  22. package/dist/client/ClientApplication.d.ts +142 -142
  23. package/dist/client/ClientApplication.d.ts.map +1 -1
  24. package/dist/client/ClientApplication.mjs +334 -334
  25. package/dist/client/ClientApplication.mjs.map +1 -1
  26. package/dist/client/ClientAssertion.cjs +116 -116
  27. package/dist/client/ClientAssertion.cjs.map +1 -1
  28. package/dist/client/ClientAssertion.d.ts +46 -46
  29. package/dist/client/ClientAssertion.d.ts.map +1 -1
  30. package/dist/client/ClientAssertion.mjs +117 -117
  31. package/dist/client/ClientAssertion.mjs.map +1 -1
  32. package/dist/client/ClientCredentialClient.cjs +189 -190
  33. package/dist/client/ClientCredentialClient.cjs.map +1 -1
  34. package/dist/client/ClientCredentialClient.d.ts +33 -34
  35. package/dist/client/ClientCredentialClient.d.ts.map +1 -1
  36. package/dist/client/ClientCredentialClient.mjs +190 -191
  37. package/dist/client/ClientCredentialClient.mjs.map +1 -1
  38. package/dist/client/ConfidentialClientApplication.cjs +163 -163
  39. package/dist/client/ConfidentialClientApplication.cjs.map +1 -1
  40. package/dist/client/ConfidentialClientApplication.d.ts +58 -58
  41. package/dist/client/ConfidentialClientApplication.d.ts.map +1 -1
  42. package/dist/client/ConfidentialClientApplication.mjs +164 -164
  43. package/dist/client/ConfidentialClientApplication.mjs.map +1 -1
  44. package/dist/client/DeviceCodeClient.cjs +207 -207
  45. package/dist/client/DeviceCodeClient.cjs.map +1 -1
  46. package/dist/client/DeviceCodeClient.d.ts +53 -53
  47. package/dist/client/DeviceCodeClient.d.ts.map +1 -1
  48. package/dist/client/DeviceCodeClient.mjs +208 -208
  49. package/dist/client/DeviceCodeClient.mjs.map +1 -1
  50. package/dist/client/IConfidentialClientApplication.d.ts +39 -39
  51. package/dist/client/IPublicClientApplication.d.ts +42 -42
  52. package/dist/client/OnBehalfOfClient.cjs +202 -202
  53. package/dist/client/OnBehalfOfClient.cjs.map +1 -1
  54. package/dist/client/OnBehalfOfClient.d.ts +47 -47
  55. package/dist/client/OnBehalfOfClient.d.ts.map +1 -1
  56. package/dist/client/OnBehalfOfClient.mjs +203 -203
  57. package/dist/client/OnBehalfOfClient.mjs.map +1 -1
  58. package/dist/client/PublicClientApplication.cjs +229 -182
  59. package/dist/client/PublicClientApplication.cjs.map +1 -1
  60. package/dist/client/PublicClientApplication.d.ts +71 -65
  61. package/dist/client/PublicClientApplication.d.ts.map +1 -1
  62. package/dist/client/PublicClientApplication.mjs +231 -184
  63. package/dist/client/PublicClientApplication.mjs.map +1 -1
  64. package/dist/client/UsernamePasswordClient.cjs +95 -95
  65. package/dist/client/UsernamePasswordClient.d.ts +25 -25
  66. package/dist/client/UsernamePasswordClient.mjs +95 -95
  67. package/dist/config/Configuration.cjs +72 -72
  68. package/dist/config/Configuration.d.ts +107 -107
  69. package/dist/config/Configuration.mjs +72 -72
  70. package/dist/crypto/CryptoProvider.cjs +75 -75
  71. package/dist/crypto/CryptoProvider.d.ts +52 -52
  72. package/dist/crypto/CryptoProvider.mjs +75 -75
  73. package/dist/crypto/GuidGenerator.cjs +22 -22
  74. package/dist/crypto/GuidGenerator.d.ts +14 -14
  75. package/dist/crypto/GuidGenerator.mjs +22 -22
  76. package/dist/crypto/HashUtils.cjs +13 -13
  77. package/dist/crypto/HashUtils.d.ts +8 -8
  78. package/dist/crypto/HashUtils.mjs +13 -13
  79. package/dist/crypto/PkceGenerator.cjs +49 -49
  80. package/dist/crypto/PkceGenerator.d.ts +22 -22
  81. package/dist/crypto/PkceGenerator.mjs +49 -49
  82. package/dist/error/NodeAuthError.cjs +85 -85
  83. package/dist/error/NodeAuthError.d.ts +65 -65
  84. package/dist/error/NodeAuthError.mjs +85 -85
  85. package/dist/index.cjs +17 -1
  86. package/dist/index.cjs.map +1 -1
  87. package/dist/index.d.ts +42 -42
  88. package/dist/index.d.ts.map +1 -1
  89. package/dist/index.mjs +2 -2
  90. package/dist/internals.cjs +8 -8
  91. package/dist/internals.d.ts +6 -6
  92. package/dist/internals.mjs +8 -8
  93. package/dist/network/HttpClient.cjs +276 -276
  94. package/dist/network/HttpClient.d.ts +25 -25
  95. package/dist/network/HttpClient.mjs +276 -276
  96. package/dist/network/ILoopbackClient.d.ts +10 -10
  97. package/dist/network/LoopbackClient.cjs +75 -84
  98. package/dist/network/LoopbackClient.cjs.map +1 -1
  99. package/dist/network/LoopbackClient.d.ts +21 -21
  100. package/dist/network/LoopbackClient.d.ts.map +1 -1
  101. package/dist/network/LoopbackClient.mjs +76 -85
  102. package/dist/network/LoopbackClient.mjs.map +1 -1
  103. package/dist/packageMetadata.cjs +3 -3
  104. package/dist/packageMetadata.d.ts +2 -2
  105. package/dist/packageMetadata.mjs +3 -3
  106. package/dist/request/AuthorizationCodeRequest.d.ts +21 -21
  107. package/dist/request/AuthorizationUrlRequest.d.ts +33 -33
  108. package/dist/request/ClientCredentialRequest.d.ts +14 -14
  109. package/dist/request/DeviceCodeRequest.d.ts +15 -15
  110. package/dist/request/InteractiveRequest.d.ts +22 -22
  111. package/dist/request/OnBehalfOfRequest.d.ts +14 -14
  112. package/dist/request/RefreshTokenRequest.d.ts +17 -17
  113. package/dist/request/SignOutRequest.d.ts +5 -5
  114. package/dist/request/SilentFlowRequest.d.ts +16 -16
  115. package/dist/request/UsernamePasswordRequest.d.ts +19 -19
  116. package/dist/utils/Constants.cjs +80 -80
  117. package/dist/utils/Constants.d.ts +86 -86
  118. package/dist/utils/Constants.mjs +80 -80
  119. package/dist/utils/EncodingUtils.cjs +44 -44
  120. package/dist/utils/EncodingUtils.d.ts +26 -26
  121. package/dist/utils/EncodingUtils.mjs +44 -44
  122. package/dist/utils/NetworkUtils.cjs +38 -38
  123. package/dist/utils/NetworkUtils.d.ts +5 -5
  124. package/dist/utils/NetworkUtils.mjs +38 -38
  125. package/package.json +2 -2
  126. package/src/client/ClientApplication.ts +3 -2
  127. package/src/client/ClientAssertion.ts +7 -2
  128. package/src/client/ClientCredentialClient.ts +32 -34
  129. package/src/client/ConfidentialClientApplication.ts +11 -4
  130. package/src/client/DeviceCodeClient.ts +16 -7
  131. package/src/client/OnBehalfOfClient.ts +11 -4
  132. package/src/client/PublicClientApplication.ts +69 -13
  133. package/src/index.ts +4 -0
  134. package/src/network/LoopbackClient.ts +17 -33
@@ -1,40 +1,40 @@
1
- import { AccountCache, IdTokenCache, AccessTokenCache, RefreshTokenCache, AppMetadataCache } from "@azure/msal-common";
2
- import { InMemoryCache, JsonCache, SerializedAccountEntity, SerializedIdTokenEntity, SerializedAccessTokenEntity, SerializedRefreshTokenEntity, SerializedAppMetadataEntity } from "./SerializerTypes.js";
3
- export declare class Serializer {
4
- /**
5
- * serialize the JSON blob
6
- * @param data
7
- */
8
- static serializeJSONBlob(data: JsonCache): string;
9
- /**
10
- * Serialize Accounts
11
- * @param accCache
12
- */
13
- static serializeAccounts(accCache: AccountCache): Record<string, SerializedAccountEntity>;
14
- /**
15
- * Serialize IdTokens
16
- * @param idTCache
17
- */
18
- static serializeIdTokens(idTCache: IdTokenCache): Record<string, SerializedIdTokenEntity>;
19
- /**
20
- * Serializes AccessTokens
21
- * @param atCache
22
- */
23
- static serializeAccessTokens(atCache: AccessTokenCache): Record<string, SerializedAccessTokenEntity>;
24
- /**
25
- * Serialize refreshTokens
26
- * @param rtCache
27
- */
28
- static serializeRefreshTokens(rtCache: RefreshTokenCache): Record<string, SerializedRefreshTokenEntity>;
29
- /**
30
- * Serialize amdtCache
31
- * @param amdtCache
32
- */
33
- static serializeAppMetadata(amdtCache: AppMetadataCache): Record<string, SerializedAppMetadataEntity>;
34
- /**
35
- * Serialize the cache
36
- * @param jsonContent
37
- */
38
- static serializeAllCache(inMemCache: InMemoryCache): JsonCache;
39
- }
1
+ import { AccountCache, IdTokenCache, AccessTokenCache, RefreshTokenCache, AppMetadataCache } from "@azure/msal-common";
2
+ import { InMemoryCache, JsonCache, SerializedAccountEntity, SerializedIdTokenEntity, SerializedAccessTokenEntity, SerializedRefreshTokenEntity, SerializedAppMetadataEntity } from "./SerializerTypes.js";
3
+ export declare class Serializer {
4
+ /**
5
+ * serialize the JSON blob
6
+ * @param data
7
+ */
8
+ static serializeJSONBlob(data: JsonCache): string;
9
+ /**
10
+ * Serialize Accounts
11
+ * @param accCache
12
+ */
13
+ static serializeAccounts(accCache: AccountCache): Record<string, SerializedAccountEntity>;
14
+ /**
15
+ * Serialize IdTokens
16
+ * @param idTCache
17
+ */
18
+ static serializeIdTokens(idTCache: IdTokenCache): Record<string, SerializedIdTokenEntity>;
19
+ /**
20
+ * Serializes AccessTokens
21
+ * @param atCache
22
+ */
23
+ static serializeAccessTokens(atCache: AccessTokenCache): Record<string, SerializedAccessTokenEntity>;
24
+ /**
25
+ * Serialize refreshTokens
26
+ * @param rtCache
27
+ */
28
+ static serializeRefreshTokens(rtCache: RefreshTokenCache): Record<string, SerializedRefreshTokenEntity>;
29
+ /**
30
+ * Serialize amdtCache
31
+ * @param amdtCache
32
+ */
33
+ static serializeAppMetadata(amdtCache: AppMetadataCache): Record<string, SerializedAppMetadataEntity>;
34
+ /**
35
+ * Serialize the cache
36
+ * @param jsonContent
37
+ */
38
+ static serializeAllCache(inMemCache: InMemoryCache): JsonCache;
39
+ }
40
40
  //# sourceMappingURL=Serializer.d.ts.map
@@ -1,138 +1,138 @@
1
- /*! @azure/msal-node v2.1.0 2023-09-05 */
1
+ /*! @azure/msal-node v2.2.0-alpha.0 2023-09-20 */
2
2
  'use strict';
3
- /*
4
- * Copyright (c) Microsoft Corporation. All rights reserved.
5
- * Licensed under the MIT License.
6
- */
7
- class Serializer {
8
- /**
9
- * serialize the JSON blob
10
- * @param data
11
- */
12
- static serializeJSONBlob(data) {
13
- return JSON.stringify(data);
14
- }
15
- /**
16
- * Serialize Accounts
17
- * @param accCache
18
- */
19
- static serializeAccounts(accCache) {
20
- const accounts = {};
21
- Object.keys(accCache).map(function (key) {
22
- const accountEntity = accCache[key];
23
- accounts[key] = {
24
- home_account_id: accountEntity.homeAccountId,
25
- environment: accountEntity.environment,
26
- realm: accountEntity.realm,
27
- local_account_id: accountEntity.localAccountId,
28
- username: accountEntity.username,
29
- authority_type: accountEntity.authorityType,
30
- name: accountEntity.name,
31
- client_info: accountEntity.clientInfo,
32
- last_modification_time: accountEntity.lastModificationTime,
33
- last_modification_app: accountEntity.lastModificationApp,
34
- };
35
- });
36
- return accounts;
37
- }
38
- /**
39
- * Serialize IdTokens
40
- * @param idTCache
41
- */
42
- static serializeIdTokens(idTCache) {
43
- const idTokens = {};
44
- Object.keys(idTCache).map(function (key) {
45
- const idTEntity = idTCache[key];
46
- idTokens[key] = {
47
- home_account_id: idTEntity.homeAccountId,
48
- environment: idTEntity.environment,
49
- credential_type: idTEntity.credentialType,
50
- client_id: idTEntity.clientId,
51
- secret: idTEntity.secret,
52
- realm: idTEntity.realm,
53
- };
54
- });
55
- return idTokens;
56
- }
57
- /**
58
- * Serializes AccessTokens
59
- * @param atCache
60
- */
61
- static serializeAccessTokens(atCache) {
62
- const accessTokens = {};
63
- Object.keys(atCache).map(function (key) {
64
- const atEntity = atCache[key];
65
- accessTokens[key] = {
66
- home_account_id: atEntity.homeAccountId,
67
- environment: atEntity.environment,
68
- credential_type: atEntity.credentialType,
69
- client_id: atEntity.clientId,
70
- secret: atEntity.secret,
71
- realm: atEntity.realm,
72
- target: atEntity.target,
73
- cached_at: atEntity.cachedAt,
74
- expires_on: atEntity.expiresOn,
75
- extended_expires_on: atEntity.extendedExpiresOn,
76
- refresh_on: atEntity.refreshOn,
77
- key_id: atEntity.keyId,
78
- token_type: atEntity.tokenType,
79
- requestedClaims: atEntity.requestedClaims,
80
- requestedClaimsHash: atEntity.requestedClaimsHash,
81
- userAssertionHash: atEntity.userAssertionHash,
82
- };
83
- });
84
- return accessTokens;
85
- }
86
- /**
87
- * Serialize refreshTokens
88
- * @param rtCache
89
- */
90
- static serializeRefreshTokens(rtCache) {
91
- const refreshTokens = {};
92
- Object.keys(rtCache).map(function (key) {
93
- const rtEntity = rtCache[key];
94
- refreshTokens[key] = {
95
- home_account_id: rtEntity.homeAccountId,
96
- environment: rtEntity.environment,
97
- credential_type: rtEntity.credentialType,
98
- client_id: rtEntity.clientId,
99
- secret: rtEntity.secret,
100
- family_id: rtEntity.familyId,
101
- target: rtEntity.target,
102
- realm: rtEntity.realm,
103
- };
104
- });
105
- return refreshTokens;
106
- }
107
- /**
108
- * Serialize amdtCache
109
- * @param amdtCache
110
- */
111
- static serializeAppMetadata(amdtCache) {
112
- const appMetadata = {};
113
- Object.keys(amdtCache).map(function (key) {
114
- const amdtEntity = amdtCache[key];
115
- appMetadata[key] = {
116
- client_id: amdtEntity.clientId,
117
- environment: amdtEntity.environment,
118
- family_id: amdtEntity.familyId,
119
- };
120
- });
121
- return appMetadata;
122
- }
123
- /**
124
- * Serialize the cache
125
- * @param jsonContent
126
- */
127
- static serializeAllCache(inMemCache) {
128
- return {
129
- Account: this.serializeAccounts(inMemCache.accounts),
130
- IdToken: this.serializeIdTokens(inMemCache.idTokens),
131
- AccessToken: this.serializeAccessTokens(inMemCache.accessTokens),
132
- RefreshToken: this.serializeRefreshTokens(inMemCache.refreshTokens),
133
- AppMetadata: this.serializeAppMetadata(inMemCache.appMetadata),
134
- };
135
- }
3
+ /*
4
+ * Copyright (c) Microsoft Corporation. All rights reserved.
5
+ * Licensed under the MIT License.
6
+ */
7
+ class Serializer {
8
+ /**
9
+ * serialize the JSON blob
10
+ * @param data
11
+ */
12
+ static serializeJSONBlob(data) {
13
+ return JSON.stringify(data);
14
+ }
15
+ /**
16
+ * Serialize Accounts
17
+ * @param accCache
18
+ */
19
+ static serializeAccounts(accCache) {
20
+ const accounts = {};
21
+ Object.keys(accCache).map(function (key) {
22
+ const accountEntity = accCache[key];
23
+ accounts[key] = {
24
+ home_account_id: accountEntity.homeAccountId,
25
+ environment: accountEntity.environment,
26
+ realm: accountEntity.realm,
27
+ local_account_id: accountEntity.localAccountId,
28
+ username: accountEntity.username,
29
+ authority_type: accountEntity.authorityType,
30
+ name: accountEntity.name,
31
+ client_info: accountEntity.clientInfo,
32
+ last_modification_time: accountEntity.lastModificationTime,
33
+ last_modification_app: accountEntity.lastModificationApp,
34
+ };
35
+ });
36
+ return accounts;
37
+ }
38
+ /**
39
+ * Serialize IdTokens
40
+ * @param idTCache
41
+ */
42
+ static serializeIdTokens(idTCache) {
43
+ const idTokens = {};
44
+ Object.keys(idTCache).map(function (key) {
45
+ const idTEntity = idTCache[key];
46
+ idTokens[key] = {
47
+ home_account_id: idTEntity.homeAccountId,
48
+ environment: idTEntity.environment,
49
+ credential_type: idTEntity.credentialType,
50
+ client_id: idTEntity.clientId,
51
+ secret: idTEntity.secret,
52
+ realm: idTEntity.realm,
53
+ };
54
+ });
55
+ return idTokens;
56
+ }
57
+ /**
58
+ * Serializes AccessTokens
59
+ * @param atCache
60
+ */
61
+ static serializeAccessTokens(atCache) {
62
+ const accessTokens = {};
63
+ Object.keys(atCache).map(function (key) {
64
+ const atEntity = atCache[key];
65
+ accessTokens[key] = {
66
+ home_account_id: atEntity.homeAccountId,
67
+ environment: atEntity.environment,
68
+ credential_type: atEntity.credentialType,
69
+ client_id: atEntity.clientId,
70
+ secret: atEntity.secret,
71
+ realm: atEntity.realm,
72
+ target: atEntity.target,
73
+ cached_at: atEntity.cachedAt,
74
+ expires_on: atEntity.expiresOn,
75
+ extended_expires_on: atEntity.extendedExpiresOn,
76
+ refresh_on: atEntity.refreshOn,
77
+ key_id: atEntity.keyId,
78
+ token_type: atEntity.tokenType,
79
+ requestedClaims: atEntity.requestedClaims,
80
+ requestedClaimsHash: atEntity.requestedClaimsHash,
81
+ userAssertionHash: atEntity.userAssertionHash,
82
+ };
83
+ });
84
+ return accessTokens;
85
+ }
86
+ /**
87
+ * Serialize refreshTokens
88
+ * @param rtCache
89
+ */
90
+ static serializeRefreshTokens(rtCache) {
91
+ const refreshTokens = {};
92
+ Object.keys(rtCache).map(function (key) {
93
+ const rtEntity = rtCache[key];
94
+ refreshTokens[key] = {
95
+ home_account_id: rtEntity.homeAccountId,
96
+ environment: rtEntity.environment,
97
+ credential_type: rtEntity.credentialType,
98
+ client_id: rtEntity.clientId,
99
+ secret: rtEntity.secret,
100
+ family_id: rtEntity.familyId,
101
+ target: rtEntity.target,
102
+ realm: rtEntity.realm,
103
+ };
104
+ });
105
+ return refreshTokens;
106
+ }
107
+ /**
108
+ * Serialize amdtCache
109
+ * @param amdtCache
110
+ */
111
+ static serializeAppMetadata(amdtCache) {
112
+ const appMetadata = {};
113
+ Object.keys(amdtCache).map(function (key) {
114
+ const amdtEntity = amdtCache[key];
115
+ appMetadata[key] = {
116
+ client_id: amdtEntity.clientId,
117
+ environment: amdtEntity.environment,
118
+ family_id: amdtEntity.familyId,
119
+ };
120
+ });
121
+ return appMetadata;
122
+ }
123
+ /**
124
+ * Serialize the cache
125
+ * @param jsonContent
126
+ */
127
+ static serializeAllCache(inMemCache) {
128
+ return {
129
+ Account: this.serializeAccounts(inMemCache.accounts),
130
+ IdToken: this.serializeIdTokens(inMemCache.idTokens),
131
+ AccessToken: this.serializeAccessTokens(inMemCache.accessTokens),
132
+ RefreshToken: this.serializeRefreshTokens(inMemCache.refreshTokens),
133
+ AppMetadata: this.serializeAppMetadata(inMemCache.appMetadata),
134
+ };
135
+ }
136
136
  }
137
137
 
138
138
  export { Serializer };
@@ -1,102 +1,102 @@
1
- import { AccountCache, IdTokenCache, AccessTokenCache, RefreshTokenCache, AppMetadataCache, ValidCacheType } from "@azure/msal-common";
2
- /**
3
- * Key value store for in-memory cache
4
- * @public
5
- */
6
- export type CacheKVStore = Record<string, ValidCacheType>;
7
- /**
8
- * Cache format read from the cache blob provided to the configuration during app instantiation
9
- * @public
10
- */
11
- export type JsonCache = {
12
- Account: Record<string, SerializedAccountEntity>;
13
- IdToken: Record<string, SerializedIdTokenEntity>;
14
- AccessToken: Record<string, SerializedAccessTokenEntity>;
15
- RefreshToken: Record<string, SerializedRefreshTokenEntity>;
16
- AppMetadata: Record<string, SerializedAppMetadataEntity>;
17
- };
18
- /**
19
- * Intermittent type to handle in-memory data objects with defined types
20
- * @public
21
- */
22
- export type InMemoryCache = {
23
- accounts: AccountCache;
24
- idTokens: IdTokenCache;
25
- accessTokens: AccessTokenCache;
26
- refreshTokens: RefreshTokenCache;
27
- appMetadata: AppMetadataCache;
28
- };
29
- /**
30
- * Account type
31
- * @public
32
- */
33
- export type SerializedAccountEntity = {
34
- home_account_id: string;
35
- environment: string;
36
- realm: string;
37
- local_account_id: string;
38
- username: string;
39
- authority_type: string;
40
- name?: string;
41
- client_info?: string;
42
- last_modification_time?: string;
43
- last_modification_app?: string;
44
- };
45
- /**
46
- * Idtoken credential type
47
- * @public
48
- */
49
- export type SerializedIdTokenEntity = {
50
- home_account_id: string;
51
- environment: string;
52
- credential_type: string;
53
- client_id: string;
54
- secret: string;
55
- realm: string;
56
- };
57
- /**
58
- * Access token credential type
59
- * @public
60
- */
61
- export type SerializedAccessTokenEntity = {
62
- home_account_id: string;
63
- environment: string;
64
- credential_type: string;
65
- client_id: string;
66
- secret: string;
67
- realm: string;
68
- target: string;
69
- cached_at: string;
70
- expires_on: string;
71
- extended_expires_on?: string;
72
- refresh_on?: string;
73
- key_id?: string;
74
- token_type?: string;
75
- requestedClaims?: string;
76
- requestedClaimsHash?: string;
77
- userAssertionHash?: string;
78
- };
79
- /**
80
- * Refresh token credential type
81
- * @public
82
- */
83
- export type SerializedRefreshTokenEntity = {
84
- home_account_id: string;
85
- environment: string;
86
- credential_type: string;
87
- client_id: string;
88
- secret: string;
89
- family_id?: string;
90
- target?: string;
91
- realm?: string;
92
- };
93
- /**
94
- * AppMetadata type
95
- * @public
96
- */
97
- export type SerializedAppMetadataEntity = {
98
- client_id: string;
99
- environment: string;
100
- family_id?: string;
101
- };
1
+ import { AccountCache, IdTokenCache, AccessTokenCache, RefreshTokenCache, AppMetadataCache, ValidCacheType } from "@azure/msal-common";
2
+ /**
3
+ * Key value store for in-memory cache
4
+ * @public
5
+ */
6
+ export type CacheKVStore = Record<string, ValidCacheType>;
7
+ /**
8
+ * Cache format read from the cache blob provided to the configuration during app instantiation
9
+ * @public
10
+ */
11
+ export type JsonCache = {
12
+ Account: Record<string, SerializedAccountEntity>;
13
+ IdToken: Record<string, SerializedIdTokenEntity>;
14
+ AccessToken: Record<string, SerializedAccessTokenEntity>;
15
+ RefreshToken: Record<string, SerializedRefreshTokenEntity>;
16
+ AppMetadata: Record<string, SerializedAppMetadataEntity>;
17
+ };
18
+ /**
19
+ * Intermittent type to handle in-memory data objects with defined types
20
+ * @public
21
+ */
22
+ export type InMemoryCache = {
23
+ accounts: AccountCache;
24
+ idTokens: IdTokenCache;
25
+ accessTokens: AccessTokenCache;
26
+ refreshTokens: RefreshTokenCache;
27
+ appMetadata: AppMetadataCache;
28
+ };
29
+ /**
30
+ * Account type
31
+ * @public
32
+ */
33
+ export type SerializedAccountEntity = {
34
+ home_account_id: string;
35
+ environment: string;
36
+ realm: string;
37
+ local_account_id: string;
38
+ username: string;
39
+ authority_type: string;
40
+ name?: string;
41
+ client_info?: string;
42
+ last_modification_time?: string;
43
+ last_modification_app?: string;
44
+ };
45
+ /**
46
+ * Idtoken credential type
47
+ * @public
48
+ */
49
+ export type SerializedIdTokenEntity = {
50
+ home_account_id: string;
51
+ environment: string;
52
+ credential_type: string;
53
+ client_id: string;
54
+ secret: string;
55
+ realm: string;
56
+ };
57
+ /**
58
+ * Access token credential type
59
+ * @public
60
+ */
61
+ export type SerializedAccessTokenEntity = {
62
+ home_account_id: string;
63
+ environment: string;
64
+ credential_type: string;
65
+ client_id: string;
66
+ secret: string;
67
+ realm: string;
68
+ target: string;
69
+ cached_at: string;
70
+ expires_on: string;
71
+ extended_expires_on?: string;
72
+ refresh_on?: string;
73
+ key_id?: string;
74
+ token_type?: string;
75
+ requestedClaims?: string;
76
+ requestedClaimsHash?: string;
77
+ userAssertionHash?: string;
78
+ };
79
+ /**
80
+ * Refresh token credential type
81
+ * @public
82
+ */
83
+ export type SerializedRefreshTokenEntity = {
84
+ home_account_id: string;
85
+ environment: string;
86
+ credential_type: string;
87
+ client_id: string;
88
+ secret: string;
89
+ family_id?: string;
90
+ target?: string;
91
+ realm?: string;
92
+ };
93
+ /**
94
+ * AppMetadata type
95
+ * @public
96
+ */
97
+ export type SerializedAppMetadataEntity = {
98
+ client_id: string;
99
+ environment: string;
100
+ family_id?: string;
101
+ };
102
102
  //# sourceMappingURL=SerializerTypes.d.ts.map