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