@azure/msal-common 14.13.1 → 14.14.1
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/dist/account/AccountInfo.d.ts +66 -66
- package/dist/account/AccountInfo.mjs +77 -77
- package/dist/account/AuthToken.d.ts +17 -17
- package/dist/account/AuthToken.mjs +58 -58
- package/dist/account/CcsCredential.d.ts +9 -9
- package/dist/account/CcsCredential.mjs +8 -8
- package/dist/account/ClientCredentials.d.ts +19 -19
- package/dist/account/ClientInfo.d.ts +18 -18
- package/dist/account/ClientInfo.mjs +37 -37
- package/dist/account/TokenClaims.d.ts +83 -83
- package/dist/account/TokenClaims.mjs +20 -20
- package/dist/authority/Authority.d.ts +254 -254
- package/dist/authority/Authority.mjs +836 -836
- package/dist/authority/AuthorityFactory.d.ts +18 -18
- package/dist/authority/AuthorityFactory.mjs +28 -28
- package/dist/authority/AuthorityMetadata.d.ts +43 -43
- package/dist/authority/AuthorityMetadata.mjs +137 -137
- package/dist/authority/AuthorityOptions.d.ts +27 -27
- package/dist/authority/AuthorityOptions.mjs +18 -18
- package/dist/authority/AuthorityType.d.ts +10 -10
- package/dist/authority/AuthorityType.mjs +13 -13
- package/dist/authority/AzureRegion.d.ts +1 -1
- package/dist/authority/AzureRegionConfiguration.d.ts +5 -5
- package/dist/authority/CloudDiscoveryMetadata.d.ts +5 -5
- package/dist/authority/CloudInstanceDiscoveryErrorResponse.d.ts +13 -13
- package/dist/authority/CloudInstanceDiscoveryErrorResponse.mjs +8 -8
- package/dist/authority/CloudInstanceDiscoveryResponse.d.ts +9 -9
- package/dist/authority/CloudInstanceDiscoveryResponse.mjs +8 -8
- package/dist/authority/ImdsOptions.d.ts +5 -5
- package/dist/authority/OIDCOptions.d.ts +8 -8
- package/dist/authority/OpenIdConfigResponse.d.ts +11 -11
- package/dist/authority/OpenIdConfigResponse.mjs +10 -10
- package/dist/authority/ProtocolMode.d.ts +8 -8
- package/dist/authority/ProtocolMode.mjs +11 -11
- package/dist/authority/RegionDiscovery.d.ts +32 -32
- package/dist/authority/RegionDiscovery.mjs +106 -106
- package/dist/authority/RegionDiscoveryMetadata.d.ts +6 -6
- package/dist/broker/nativeBroker/INativeBrokerPlugin.d.ts +15 -15
- package/dist/cache/CacheManager.d.ts +497 -497
- package/dist/cache/CacheManager.mjs +1249 -1249
- package/dist/cache/entities/AccessTokenEntity.d.ts +25 -25
- package/dist/cache/entities/AccountEntity.d.ts +106 -106
- package/dist/cache/entities/AccountEntity.mjs +240 -240
- package/dist/cache/entities/AppMetadataEntity.d.ts +11 -11
- package/dist/cache/entities/AuthorityMetadataEntity.d.ts +15 -15
- package/dist/cache/entities/CacheRecord.d.ts +13 -13
- package/dist/cache/entities/CredentialEntity.d.ts +30 -30
- package/dist/cache/entities/IdTokenEntity.d.ts +8 -8
- package/dist/cache/entities/RefreshTokenEntity.d.ts +7 -7
- package/dist/cache/entities/ServerTelemetryEntity.d.ts +6 -5
- package/dist/cache/entities/ServerTelemetryEntity.d.ts.map +1 -1
- package/dist/cache/entities/ThrottlingEntity.d.ts +7 -7
- package/dist/cache/interface/ICacheManager.d.ts +166 -166
- package/dist/cache/interface/ICachePlugin.d.ts +5 -5
- package/dist/cache/interface/ISerializableTokenCache.d.ts +4 -4
- package/dist/cache/persistence/TokenCacheContext.d.ts +23 -23
- package/dist/cache/persistence/TokenCacheContext.mjs +25 -25
- package/dist/cache/utils/CacheHelpers.d.ts +94 -94
- package/dist/cache/utils/CacheHelpers.mjs +324 -324
- package/dist/cache/utils/CacheTypes.d.ts +69 -69
- package/dist/client/AuthorizationCodeClient.d.ts +74 -74
- package/dist/client/AuthorizationCodeClient.mjs +420 -420
- package/dist/client/BaseClient.d.ts +51 -51
- package/dist/client/BaseClient.mjs +100 -100
- package/dist/client/RefreshTokenClient.d.ts +35 -35
- package/dist/client/RefreshTokenClient.mjs +211 -211
- package/dist/client/SilentFlowClient.d.ts +27 -27
- package/dist/client/SilentFlowClient.mjs +133 -133
- package/dist/config/AppTokenProvider.d.ts +38 -38
- package/dist/config/ClientConfiguration.d.ts +150 -150
- package/dist/config/ClientConfiguration.mjs +95 -95
- package/dist/constants/AADServerParamKeys.d.ts +53 -52
- package/dist/constants/AADServerParamKeys.d.ts.map +1 -1
- package/dist/constants/AADServerParamKeys.mjs +59 -58
- package/dist/constants/AADServerParamKeys.mjs.map +1 -1
- package/dist/crypto/ICrypto.d.ts +68 -68
- package/dist/crypto/ICrypto.mjs +36 -36
- package/dist/crypto/IGuidGenerator.d.ts +4 -4
- package/dist/crypto/JoseHeader.d.ts +22 -22
- package/dist/crypto/JoseHeader.mjs +37 -37
- package/dist/crypto/PopTokenGenerator.d.ts +59 -59
- package/dist/crypto/PopTokenGenerator.mjs +81 -81
- package/dist/crypto/SignedHttpRequest.d.ts +15 -15
- package/dist/error/AuthError.d.ts +44 -44
- package/dist/error/AuthError.mjs +46 -46
- package/dist/error/AuthErrorCodes.d.ts +5 -5
- package/dist/error/AuthErrorCodes.mjs +9 -9
- package/dist/error/CacheError.d.ts +20 -20
- package/dist/error/CacheError.mjs +24 -24
- package/dist/error/CacheErrorCodes.d.ts +2 -2
- package/dist/error/CacheErrorCodes.mjs +6 -6
- package/dist/error/ClientAuthError.d.ts +237 -237
- package/dist/error/ClientAuthError.mjs +249 -249
- package/dist/error/ClientAuthErrorCodes.d.ts +44 -44
- package/dist/error/ClientAuthErrorCodes.mjs +48 -48
- package/dist/error/ClientConfigurationError.d.ts +128 -128
- package/dist/error/ClientConfigurationError.mjs +135 -135
- package/dist/error/ClientConfigurationErrorCodes.d.ts +22 -22
- package/dist/error/ClientConfigurationErrorCodes.mjs +26 -26
- package/dist/error/InteractionRequiredAuthError.d.ts +65 -65
- package/dist/error/InteractionRequiredAuthError.mjs +85 -85
- package/dist/error/InteractionRequiredAuthErrorCodes.d.ts +7 -7
- package/dist/error/InteractionRequiredAuthErrorCodes.mjs +13 -13
- package/dist/error/JoseHeaderError.d.ts +15 -15
- package/dist/error/JoseHeaderError.mjs +22 -22
- package/dist/error/JoseHeaderErrorCodes.d.ts +2 -2
- package/dist/error/JoseHeaderErrorCodes.mjs +6 -6
- package/dist/error/ServerError.d.ts +15 -15
- package/dist/error/ServerError.mjs +16 -16
- package/dist/index.cjs +8664 -8599
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +107 -107
- package/dist/index.mjs +1 -1
- package/dist/logger/Logger.d.ts +95 -95
- package/dist/logger/Logger.mjs +188 -188
- package/dist/network/INetworkModule.d.ts +29 -29
- package/dist/network/INetworkModule.mjs +12 -12
- package/dist/network/NetworkManager.d.ts +33 -33
- package/dist/network/NetworkManager.mjs +34 -34
- package/dist/network/RequestThumbprint.d.ts +18 -18
- package/dist/network/ThrottlingUtils.d.ts +42 -42
- package/dist/network/ThrottlingUtils.mjs +95 -95
- package/dist/packageMetadata.d.ts +2 -2
- package/dist/packageMetadata.mjs +4 -4
- package/dist/request/AuthenticationHeaderParser.d.ts +19 -19
- package/dist/request/AuthenticationHeaderParser.mjs +55 -55
- package/dist/request/BaseAuthRequest.d.ts +47 -47
- package/dist/request/CommonAuthorizationCodeRequest.d.ts +27 -27
- package/dist/request/CommonAuthorizationUrlRequest.d.ts +50 -50
- package/dist/request/CommonClientCredentialRequest.d.ts +17 -17
- package/dist/request/CommonDeviceCodeRequest.d.ts +21 -21
- package/dist/request/CommonEndSessionRequest.d.ts +21 -21
- package/dist/request/CommonOnBehalfOfRequest.d.ts +13 -13
- package/dist/request/CommonRefreshTokenRequest.d.ts +22 -22
- package/dist/request/CommonSilentFlowRequest.d.ts +27 -27
- package/dist/request/CommonUsernamePasswordRequest.d.ts +17 -17
- package/dist/request/NativeRequest.d.ts +19 -19
- package/dist/request/NativeSignOutRequest.d.ts +5 -5
- package/dist/request/RequestParameterBuilder.d.ts +217 -217
- package/dist/request/RequestParameterBuilder.mjs +382 -382
- package/dist/request/RequestValidator.d.ts +27 -27
- package/dist/request/RequestValidator.mjs +64 -64
- package/dist/request/ScopeSet.d.ts +88 -88
- package/dist/request/ScopeSet.mjs +197 -197
- package/dist/request/StoreInCache.d.ts +8 -8
- package/dist/response/AuthenticationResult.d.ts +41 -41
- package/dist/response/AuthorizationCodePayload.d.ts +13 -13
- package/dist/response/DeviceCodeResponse.d.ts +25 -25
- package/dist/response/ExternalTokenResponse.d.ts +15 -15
- package/dist/response/IMDSBadResponse.d.ts +4 -4
- package/dist/response/ResponseHandler.d.ts +69 -69
- package/dist/response/ResponseHandler.mjs +374 -374
- package/dist/response/ServerAuthorizationCodeResponse.d.ts +26 -26
- package/dist/response/ServerAuthorizationTokenResponse.d.ts +47 -47
- package/dist/telemetry/performance/IPerformanceClient.d.ts +57 -57
- package/dist/telemetry/performance/IPerformanceMeasurement.d.ts +5 -5
- package/dist/telemetry/performance/PerformanceClient.d.ts +242 -242
- package/dist/telemetry/performance/PerformanceClient.mjs +587 -587
- package/dist/telemetry/performance/PerformanceEvent.d.ts +515 -505
- package/dist/telemetry/performance/PerformanceEvent.d.ts.map +1 -1
- package/dist/telemetry/performance/PerformanceEvent.mjs +484 -480
- package/dist/telemetry/performance/PerformanceEvent.mjs.map +1 -1
- package/dist/telemetry/performance/StubPerformanceClient.d.ts +24 -24
- package/dist/telemetry/performance/StubPerformanceClient.mjs +76 -76
- package/dist/telemetry/server/ServerTelemetryManager.d.ts +78 -66
- package/dist/telemetry/server/ServerTelemetryManager.d.ts.map +1 -1
- package/dist/telemetry/server/ServerTelemetryManager.mjs +260 -201
- package/dist/telemetry/server/ServerTelemetryManager.mjs.map +1 -1
- package/dist/telemetry/server/ServerTelemetryRequest.d.ts +8 -8
- package/dist/url/IUri.d.ts +12 -12
- package/dist/url/UrlString.d.ts +48 -48
- package/dist/url/UrlString.mjs +161 -161
- package/dist/utils/ClientAssertionUtils.d.ts +2 -2
- package/dist/utils/ClientAssertionUtils.mjs +16 -16
- package/dist/utils/Constants.d.ts +309 -309
- package/dist/utils/Constants.mjs +322 -322
- package/dist/utils/FunctionWrappers.d.ts +27 -27
- package/dist/utils/FunctionWrappers.mjs +94 -94
- package/dist/utils/MsalTypes.d.ts +6 -6
- package/dist/utils/ProtocolUtils.d.ts +42 -42
- package/dist/utils/ProtocolUtils.mjs +69 -69
- package/dist/utils/StringUtils.d.ts +40 -40
- package/dist/utils/StringUtils.mjs +95 -95
- package/dist/utils/TimeUtils.d.ts +25 -25
- package/dist/utils/TimeUtils.mjs +43 -43
- package/dist/utils/UrlUtils.d.ts +10 -10
- package/dist/utils/UrlUtils.mjs +44 -44
- package/package.json +1 -1
- package/src/cache/entities/ServerTelemetryEntity.ts +1 -0
- package/src/constants/AADServerParamKeys.ts +1 -0
- package/src/packageMetadata.ts +1 -1
- package/src/telemetry/performance/PerformanceEvent.ts +12 -0
- package/src/telemetry/server/ServerTelemetryManager.ts +95 -1
|
@@ -1,484 +1,488 @@
|
|
|
1
|
-
/*! @azure/msal-common v14.
|
|
1
|
+
/*! @azure/msal-common v14.14.1 2024-08-13 */
|
|
2
2
|
'use strict';
|
|
3
|
-
/*
|
|
4
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
5
|
-
* Licensed under the MIT License.
|
|
6
|
-
*/
|
|
7
|
-
/**
|
|
8
|
-
* Enumeration of operations that are instrumented by have their performance measured by the PerformanceClient.
|
|
9
|
-
*
|
|
10
|
-
* @export
|
|
11
|
-
* @enum {number}
|
|
12
|
-
*/
|
|
13
|
-
const PerformanceEvents = {
|
|
14
|
-
/**
|
|
15
|
-
* acquireTokenByCode API (msal-browser and msal-node).
|
|
16
|
-
* Used to acquire tokens by trading an authorization code against the token endpoint.
|
|
17
|
-
*/
|
|
18
|
-
AcquireTokenByCode: "acquireTokenByCode",
|
|
19
|
-
/**
|
|
20
|
-
* acquireTokenByRefreshToken API (msal-browser and msal-node).
|
|
21
|
-
* Used to renew an access token using a refresh token against the token endpoint.
|
|
22
|
-
*/
|
|
23
|
-
AcquireTokenByRefreshToken: "acquireTokenByRefreshToken",
|
|
24
|
-
/**
|
|
25
|
-
* acquireTokenSilent API (msal-browser and msal-node).
|
|
26
|
-
* Used to silently acquire a new access token (from the cache or the network).
|
|
27
|
-
*/
|
|
28
|
-
AcquireTokenSilent: "acquireTokenSilent",
|
|
29
|
-
/**
|
|
30
|
-
* acquireTokenSilentAsync (msal-browser).
|
|
31
|
-
* Internal API for acquireTokenSilent.
|
|
32
|
-
*/
|
|
33
|
-
AcquireTokenSilentAsync: "acquireTokenSilentAsync",
|
|
34
|
-
/**
|
|
35
|
-
* acquireTokenPopup (msal-browser).
|
|
36
|
-
* Used to acquire a new access token interactively through pop ups
|
|
37
|
-
*/
|
|
38
|
-
AcquireTokenPopup: "acquireTokenPopup",
|
|
39
|
-
/**
|
|
40
|
-
* acquireTokenPreRedirect (msal-browser).
|
|
41
|
-
* First part of the redirect flow.
|
|
42
|
-
* Used to acquire a new access token interactively through redirects.
|
|
43
|
-
*/
|
|
44
|
-
AcquireTokenPreRedirect: "acquireTokenPreRedirect",
|
|
45
|
-
/**
|
|
46
|
-
* acquireTokenRedirect (msal-browser).
|
|
47
|
-
* Second part of the redirect flow.
|
|
48
|
-
* Used to acquire a new access token interactively through redirects.
|
|
49
|
-
*/
|
|
50
|
-
AcquireTokenRedirect: "acquireTokenRedirect",
|
|
51
|
-
/**
|
|
52
|
-
* getPublicKeyThumbprint API in CryptoOpts class (msal-browser).
|
|
53
|
-
* Used to generate a public/private keypair and generate a public key thumbprint for pop requests.
|
|
54
|
-
*/
|
|
55
|
-
CryptoOptsGetPublicKeyThumbprint: "cryptoOptsGetPublicKeyThumbprint",
|
|
56
|
-
/**
|
|
57
|
-
* signJwt API in CryptoOpts class (msal-browser).
|
|
58
|
-
* Used to signed a pop token.
|
|
59
|
-
*/
|
|
60
|
-
CryptoOptsSignJwt: "cryptoOptsSignJwt",
|
|
61
|
-
/**
|
|
62
|
-
* acquireToken API in the SilentCacheClient class (msal-browser).
|
|
63
|
-
* Used to read access tokens from the cache.
|
|
64
|
-
*/
|
|
65
|
-
SilentCacheClientAcquireToken: "silentCacheClientAcquireToken",
|
|
66
|
-
/**
|
|
67
|
-
* acquireToken API in the SilentIframeClient class (msal-browser).
|
|
68
|
-
* Used to acquire a new set of tokens from the authorize endpoint in a hidden iframe.
|
|
69
|
-
*/
|
|
70
|
-
SilentIframeClientAcquireToken: "silentIframeClientAcquireToken",
|
|
71
|
-
AwaitConcurrentIframe: "awaitConcurrentIframe",
|
|
72
|
-
/**
|
|
73
|
-
* acquireToken API in SilentRereshClient (msal-browser).
|
|
74
|
-
* Used to acquire a new set of tokens from the token endpoint using a refresh token.
|
|
75
|
-
*/
|
|
76
|
-
SilentRefreshClientAcquireToken: "silentRefreshClientAcquireToken",
|
|
77
|
-
/**
|
|
78
|
-
* ssoSilent API (msal-browser).
|
|
79
|
-
* Used to silently acquire an authorization code and set of tokens using a hidden iframe.
|
|
80
|
-
*/
|
|
81
|
-
SsoSilent: "ssoSilent",
|
|
82
|
-
/**
|
|
83
|
-
* getDiscoveredAuthority API in StandardInteractionClient class (msal-browser).
|
|
84
|
-
* Used to load authority metadata for a request.
|
|
85
|
-
*/
|
|
86
|
-
StandardInteractionClientGetDiscoveredAuthority: "standardInteractionClientGetDiscoveredAuthority",
|
|
87
|
-
/**
|
|
88
|
-
* acquireToken APIs in msal-browser.
|
|
89
|
-
* Used to make an /authorize endpoint call with native brokering enabled.
|
|
90
|
-
*/
|
|
91
|
-
FetchAccountIdWithNativeBroker: "fetchAccountIdWithNativeBroker",
|
|
92
|
-
/**
|
|
93
|
-
* acquireToken API in NativeInteractionClient class (msal-browser).
|
|
94
|
-
* Used to acquire a token from Native component when native brokering is enabled.
|
|
95
|
-
*/
|
|
96
|
-
NativeInteractionClientAcquireToken: "nativeInteractionClientAcquireToken",
|
|
97
|
-
/**
|
|
98
|
-
* Time spent creating default headers for requests to token endpoint
|
|
99
|
-
*/
|
|
100
|
-
BaseClientCreateTokenRequestHeaders: "baseClientCreateTokenRequestHeaders",
|
|
101
|
-
/**
|
|
102
|
-
* Time spent sending/waiting for the response of a request to the token endpoint
|
|
103
|
-
*/
|
|
104
|
-
RefreshTokenClientExecutePostToTokenEndpoint: "refreshTokenClientExecutePostToTokenEndpoint",
|
|
105
|
-
AuthorizationCodeClientExecutePostToTokenEndpoint: "authorizationCodeClientExecutePostToTokenEndpoint",
|
|
106
|
-
/**
|
|
107
|
-
* Used to measure the time taken for completing embedded-broker handshake (PW-Broker).
|
|
108
|
-
*/
|
|
109
|
-
BrokerHandhshake: "brokerHandshake",
|
|
110
|
-
/**
|
|
111
|
-
* acquireTokenByRefreshToken API in BrokerClientApplication (PW-Broker) .
|
|
112
|
-
*/
|
|
113
|
-
AcquireTokenByRefreshTokenInBroker: "acquireTokenByRefreshTokenInBroker",
|
|
114
|
-
/**
|
|
115
|
-
* Time taken for token acquisition by broker
|
|
116
|
-
*/
|
|
117
|
-
AcquireTokenByBroker: "acquireTokenByBroker",
|
|
118
|
-
/**
|
|
119
|
-
* Time spent on the network for refresh token acquisition
|
|
120
|
-
*/
|
|
121
|
-
RefreshTokenClientExecuteTokenRequest: "refreshTokenClientExecuteTokenRequest",
|
|
122
|
-
/**
|
|
123
|
-
* Time taken for acquiring refresh token , records RT size
|
|
124
|
-
*/
|
|
125
|
-
RefreshTokenClientAcquireToken: "refreshTokenClientAcquireToken",
|
|
126
|
-
/**
|
|
127
|
-
* Time taken for acquiring cached refresh token
|
|
128
|
-
*/
|
|
129
|
-
RefreshTokenClientAcquireTokenWithCachedRefreshToken: "refreshTokenClientAcquireTokenWithCachedRefreshToken",
|
|
130
|
-
/**
|
|
131
|
-
* acquireTokenByRefreshToken API in RefreshTokenClient (msal-common).
|
|
132
|
-
*/
|
|
133
|
-
RefreshTokenClientAcquireTokenByRefreshToken: "refreshTokenClientAcquireTokenByRefreshToken",
|
|
134
|
-
/**
|
|
135
|
-
* Helper function to create token request body in RefreshTokenClient (msal-common).
|
|
136
|
-
*/
|
|
137
|
-
RefreshTokenClientCreateTokenRequestBody: "refreshTokenClientCreateTokenRequestBody",
|
|
138
|
-
/**
|
|
139
|
-
* acquireTokenFromCache (msal-browser).
|
|
140
|
-
* Internal API for acquiring token from cache
|
|
141
|
-
*/
|
|
142
|
-
AcquireTokenFromCache: "acquireTokenFromCache",
|
|
143
|
-
SilentFlowClientAcquireCachedToken: "silentFlowClientAcquireCachedToken",
|
|
144
|
-
SilentFlowClientGenerateResultFromCacheRecord: "silentFlowClientGenerateResultFromCacheRecord",
|
|
145
|
-
/**
|
|
146
|
-
* acquireTokenBySilentIframe (msal-browser).
|
|
147
|
-
* Internal API for acquiring token by silent Iframe
|
|
148
|
-
*/
|
|
149
|
-
AcquireTokenBySilentIframe: "acquireTokenBySilentIframe",
|
|
150
|
-
/**
|
|
151
|
-
* Internal API for initializing base request in BaseInteractionClient (msal-browser)
|
|
152
|
-
*/
|
|
153
|
-
InitializeBaseRequest: "initializeBaseRequest",
|
|
154
|
-
/**
|
|
155
|
-
* Internal API for initializing silent request in SilentCacheClient (msal-browser)
|
|
156
|
-
*/
|
|
157
|
-
InitializeSilentRequest: "initializeSilentRequest",
|
|
158
|
-
InitializeClientApplication: "initializeClientApplication",
|
|
159
|
-
/**
|
|
160
|
-
* Helper function in
|
|
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
|
-
[PerformanceEvents.
|
|
251
|
-
[PerformanceEvents.
|
|
252
|
-
[
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
],
|
|
256
|
-
[
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
[PerformanceEvents.
|
|
261
|
-
[
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
],
|
|
265
|
-
[
|
|
266
|
-
PerformanceEvents.
|
|
267
|
-
"
|
|
268
|
-
],
|
|
269
|
-
[
|
|
270
|
-
PerformanceEvents.
|
|
271
|
-
"
|
|
272
|
-
],
|
|
273
|
-
[
|
|
274
|
-
PerformanceEvents.
|
|
275
|
-
"
|
|
276
|
-
],
|
|
277
|
-
[
|
|
278
|
-
PerformanceEvents.
|
|
279
|
-
"
|
|
280
|
-
],
|
|
281
|
-
[
|
|
282
|
-
PerformanceEvents.
|
|
283
|
-
"
|
|
284
|
-
],
|
|
285
|
-
[
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
],
|
|
290
|
-
[
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
],
|
|
295
|
-
[
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
],
|
|
300
|
-
[
|
|
301
|
-
PerformanceEvents.
|
|
302
|
-
"
|
|
303
|
-
],
|
|
304
|
-
[
|
|
305
|
-
PerformanceEvents.
|
|
306
|
-
"
|
|
307
|
-
],
|
|
308
|
-
[
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
],
|
|
313
|
-
[
|
|
314
|
-
PerformanceEvents.
|
|
315
|
-
"
|
|
316
|
-
],
|
|
317
|
-
[
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
],
|
|
324
|
-
[
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
],
|
|
329
|
-
[
|
|
330
|
-
PerformanceEvents.
|
|
331
|
-
"
|
|
332
|
-
],
|
|
333
|
-
[
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
],
|
|
339
|
-
[
|
|
340
|
-
PerformanceEvents.
|
|
341
|
-
"
|
|
342
|
-
],
|
|
343
|
-
[
|
|
344
|
-
PerformanceEvents.
|
|
345
|
-
"
|
|
346
|
-
],
|
|
347
|
-
[
|
|
348
|
-
PerformanceEvents.
|
|
349
|
-
"
|
|
350
|
-
],
|
|
351
|
-
[
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
],
|
|
356
|
-
[
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
[
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
],
|
|
364
|
-
[
|
|
365
|
-
PerformanceEvents.
|
|
366
|
-
"
|
|
367
|
-
],
|
|
368
|
-
[
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
[
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
],
|
|
376
|
-
[
|
|
377
|
-
PerformanceEvents.
|
|
378
|
-
"
|
|
379
|
-
],
|
|
380
|
-
[
|
|
381
|
-
PerformanceEvents.
|
|
382
|
-
"
|
|
383
|
-
],
|
|
384
|
-
[
|
|
385
|
-
PerformanceEvents.
|
|
386
|
-
"
|
|
387
|
-
],
|
|
388
|
-
[
|
|
389
|
-
PerformanceEvents.
|
|
390
|
-
"
|
|
391
|
-
],
|
|
392
|
-
[
|
|
393
|
-
PerformanceEvents.
|
|
394
|
-
"
|
|
395
|
-
],
|
|
396
|
-
[
|
|
397
|
-
PerformanceEvents.
|
|
398
|
-
"
|
|
399
|
-
],
|
|
400
|
-
[
|
|
401
|
-
PerformanceEvents.
|
|
402
|
-
"
|
|
403
|
-
],
|
|
404
|
-
[
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
],
|
|
409
|
-
[
|
|
410
|
-
PerformanceEvents.
|
|
411
|
-
"
|
|
412
|
-
],
|
|
413
|
-
[
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
],
|
|
418
|
-
[
|
|
419
|
-
PerformanceEvents.
|
|
420
|
-
"
|
|
421
|
-
],
|
|
422
|
-
[
|
|
423
|
-
PerformanceEvents.
|
|
424
|
-
"
|
|
425
|
-
],
|
|
426
|
-
[
|
|
427
|
-
PerformanceEvents.
|
|
428
|
-
"
|
|
429
|
-
],
|
|
430
|
-
[
|
|
431
|
-
PerformanceEvents.
|
|
432
|
-
"
|
|
433
|
-
],
|
|
434
|
-
[
|
|
435
|
-
PerformanceEvents.
|
|
436
|
-
"
|
|
437
|
-
],
|
|
438
|
-
[
|
|
439
|
-
PerformanceEvents.
|
|
440
|
-
"
|
|
441
|
-
],
|
|
442
|
-
[
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
],
|
|
448
|
-
[
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
],
|
|
455
|
-
[
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
"
|
|
475
|
-
"
|
|
476
|
-
"
|
|
477
|
-
"
|
|
478
|
-
"
|
|
479
|
-
"
|
|
480
|
-
"
|
|
481
|
-
"
|
|
3
|
+
/*
|
|
4
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
5
|
+
* Licensed under the MIT License.
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* Enumeration of operations that are instrumented by have their performance measured by the PerformanceClient.
|
|
9
|
+
*
|
|
10
|
+
* @export
|
|
11
|
+
* @enum {number}
|
|
12
|
+
*/
|
|
13
|
+
const PerformanceEvents = {
|
|
14
|
+
/**
|
|
15
|
+
* acquireTokenByCode API (msal-browser and msal-node).
|
|
16
|
+
* Used to acquire tokens by trading an authorization code against the token endpoint.
|
|
17
|
+
*/
|
|
18
|
+
AcquireTokenByCode: "acquireTokenByCode",
|
|
19
|
+
/**
|
|
20
|
+
* acquireTokenByRefreshToken API (msal-browser and msal-node).
|
|
21
|
+
* Used to renew an access token using a refresh token against the token endpoint.
|
|
22
|
+
*/
|
|
23
|
+
AcquireTokenByRefreshToken: "acquireTokenByRefreshToken",
|
|
24
|
+
/**
|
|
25
|
+
* acquireTokenSilent API (msal-browser and msal-node).
|
|
26
|
+
* Used to silently acquire a new access token (from the cache or the network).
|
|
27
|
+
*/
|
|
28
|
+
AcquireTokenSilent: "acquireTokenSilent",
|
|
29
|
+
/**
|
|
30
|
+
* acquireTokenSilentAsync (msal-browser).
|
|
31
|
+
* Internal API for acquireTokenSilent.
|
|
32
|
+
*/
|
|
33
|
+
AcquireTokenSilentAsync: "acquireTokenSilentAsync",
|
|
34
|
+
/**
|
|
35
|
+
* acquireTokenPopup (msal-browser).
|
|
36
|
+
* Used to acquire a new access token interactively through pop ups
|
|
37
|
+
*/
|
|
38
|
+
AcquireTokenPopup: "acquireTokenPopup",
|
|
39
|
+
/**
|
|
40
|
+
* acquireTokenPreRedirect (msal-browser).
|
|
41
|
+
* First part of the redirect flow.
|
|
42
|
+
* Used to acquire a new access token interactively through redirects.
|
|
43
|
+
*/
|
|
44
|
+
AcquireTokenPreRedirect: "acquireTokenPreRedirect",
|
|
45
|
+
/**
|
|
46
|
+
* acquireTokenRedirect (msal-browser).
|
|
47
|
+
* Second part of the redirect flow.
|
|
48
|
+
* Used to acquire a new access token interactively through redirects.
|
|
49
|
+
*/
|
|
50
|
+
AcquireTokenRedirect: "acquireTokenRedirect",
|
|
51
|
+
/**
|
|
52
|
+
* getPublicKeyThumbprint API in CryptoOpts class (msal-browser).
|
|
53
|
+
* Used to generate a public/private keypair and generate a public key thumbprint for pop requests.
|
|
54
|
+
*/
|
|
55
|
+
CryptoOptsGetPublicKeyThumbprint: "cryptoOptsGetPublicKeyThumbprint",
|
|
56
|
+
/**
|
|
57
|
+
* signJwt API in CryptoOpts class (msal-browser).
|
|
58
|
+
* Used to signed a pop token.
|
|
59
|
+
*/
|
|
60
|
+
CryptoOptsSignJwt: "cryptoOptsSignJwt",
|
|
61
|
+
/**
|
|
62
|
+
* acquireToken API in the SilentCacheClient class (msal-browser).
|
|
63
|
+
* Used to read access tokens from the cache.
|
|
64
|
+
*/
|
|
65
|
+
SilentCacheClientAcquireToken: "silentCacheClientAcquireToken",
|
|
66
|
+
/**
|
|
67
|
+
* acquireToken API in the SilentIframeClient class (msal-browser).
|
|
68
|
+
* Used to acquire a new set of tokens from the authorize endpoint in a hidden iframe.
|
|
69
|
+
*/
|
|
70
|
+
SilentIframeClientAcquireToken: "silentIframeClientAcquireToken",
|
|
71
|
+
AwaitConcurrentIframe: "awaitConcurrentIframe",
|
|
72
|
+
/**
|
|
73
|
+
* acquireToken API in SilentRereshClient (msal-browser).
|
|
74
|
+
* Used to acquire a new set of tokens from the token endpoint using a refresh token.
|
|
75
|
+
*/
|
|
76
|
+
SilentRefreshClientAcquireToken: "silentRefreshClientAcquireToken",
|
|
77
|
+
/**
|
|
78
|
+
* ssoSilent API (msal-browser).
|
|
79
|
+
* Used to silently acquire an authorization code and set of tokens using a hidden iframe.
|
|
80
|
+
*/
|
|
81
|
+
SsoSilent: "ssoSilent",
|
|
82
|
+
/**
|
|
83
|
+
* getDiscoveredAuthority API in StandardInteractionClient class (msal-browser).
|
|
84
|
+
* Used to load authority metadata for a request.
|
|
85
|
+
*/
|
|
86
|
+
StandardInteractionClientGetDiscoveredAuthority: "standardInteractionClientGetDiscoveredAuthority",
|
|
87
|
+
/**
|
|
88
|
+
* acquireToken APIs in msal-browser.
|
|
89
|
+
* Used to make an /authorize endpoint call with native brokering enabled.
|
|
90
|
+
*/
|
|
91
|
+
FetchAccountIdWithNativeBroker: "fetchAccountIdWithNativeBroker",
|
|
92
|
+
/**
|
|
93
|
+
* acquireToken API in NativeInteractionClient class (msal-browser).
|
|
94
|
+
* Used to acquire a token from Native component when native brokering is enabled.
|
|
95
|
+
*/
|
|
96
|
+
NativeInteractionClientAcquireToken: "nativeInteractionClientAcquireToken",
|
|
97
|
+
/**
|
|
98
|
+
* Time spent creating default headers for requests to token endpoint
|
|
99
|
+
*/
|
|
100
|
+
BaseClientCreateTokenRequestHeaders: "baseClientCreateTokenRequestHeaders",
|
|
101
|
+
/**
|
|
102
|
+
* Time spent sending/waiting for the response of a request to the token endpoint
|
|
103
|
+
*/
|
|
104
|
+
RefreshTokenClientExecutePostToTokenEndpoint: "refreshTokenClientExecutePostToTokenEndpoint",
|
|
105
|
+
AuthorizationCodeClientExecutePostToTokenEndpoint: "authorizationCodeClientExecutePostToTokenEndpoint",
|
|
106
|
+
/**
|
|
107
|
+
* Used to measure the time taken for completing embedded-broker handshake (PW-Broker).
|
|
108
|
+
*/
|
|
109
|
+
BrokerHandhshake: "brokerHandshake",
|
|
110
|
+
/**
|
|
111
|
+
* acquireTokenByRefreshToken API in BrokerClientApplication (PW-Broker) .
|
|
112
|
+
*/
|
|
113
|
+
AcquireTokenByRefreshTokenInBroker: "acquireTokenByRefreshTokenInBroker",
|
|
114
|
+
/**
|
|
115
|
+
* Time taken for token acquisition by broker
|
|
116
|
+
*/
|
|
117
|
+
AcquireTokenByBroker: "acquireTokenByBroker",
|
|
118
|
+
/**
|
|
119
|
+
* Time spent on the network for refresh token acquisition
|
|
120
|
+
*/
|
|
121
|
+
RefreshTokenClientExecuteTokenRequest: "refreshTokenClientExecuteTokenRequest",
|
|
122
|
+
/**
|
|
123
|
+
* Time taken for acquiring refresh token , records RT size
|
|
124
|
+
*/
|
|
125
|
+
RefreshTokenClientAcquireToken: "refreshTokenClientAcquireToken",
|
|
126
|
+
/**
|
|
127
|
+
* Time taken for acquiring cached refresh token
|
|
128
|
+
*/
|
|
129
|
+
RefreshTokenClientAcquireTokenWithCachedRefreshToken: "refreshTokenClientAcquireTokenWithCachedRefreshToken",
|
|
130
|
+
/**
|
|
131
|
+
* acquireTokenByRefreshToken API in RefreshTokenClient (msal-common).
|
|
132
|
+
*/
|
|
133
|
+
RefreshTokenClientAcquireTokenByRefreshToken: "refreshTokenClientAcquireTokenByRefreshToken",
|
|
134
|
+
/**
|
|
135
|
+
* Helper function to create token request body in RefreshTokenClient (msal-common).
|
|
136
|
+
*/
|
|
137
|
+
RefreshTokenClientCreateTokenRequestBody: "refreshTokenClientCreateTokenRequestBody",
|
|
138
|
+
/**
|
|
139
|
+
* acquireTokenFromCache (msal-browser).
|
|
140
|
+
* Internal API for acquiring token from cache
|
|
141
|
+
*/
|
|
142
|
+
AcquireTokenFromCache: "acquireTokenFromCache",
|
|
143
|
+
SilentFlowClientAcquireCachedToken: "silentFlowClientAcquireCachedToken",
|
|
144
|
+
SilentFlowClientGenerateResultFromCacheRecord: "silentFlowClientGenerateResultFromCacheRecord",
|
|
145
|
+
/**
|
|
146
|
+
* acquireTokenBySilentIframe (msal-browser).
|
|
147
|
+
* Internal API for acquiring token by silent Iframe
|
|
148
|
+
*/
|
|
149
|
+
AcquireTokenBySilentIframe: "acquireTokenBySilentIframe",
|
|
150
|
+
/**
|
|
151
|
+
* Internal API for initializing base request in BaseInteractionClient (msal-browser)
|
|
152
|
+
*/
|
|
153
|
+
InitializeBaseRequest: "initializeBaseRequest",
|
|
154
|
+
/**
|
|
155
|
+
* Internal API for initializing silent request in SilentCacheClient (msal-browser)
|
|
156
|
+
*/
|
|
157
|
+
InitializeSilentRequest: "initializeSilentRequest",
|
|
158
|
+
InitializeClientApplication: "initializeClientApplication",
|
|
159
|
+
/**
|
|
160
|
+
* Helper function in PopupClient class (msal-browser).
|
|
161
|
+
*/
|
|
162
|
+
PopupClientTokenHelper: "popupClientTokenHelper",
|
|
163
|
+
/**
|
|
164
|
+
* Helper function in SilentIframeClient class (msal-browser).
|
|
165
|
+
*/
|
|
166
|
+
SilentIframeClientTokenHelper: "silentIframeClientTokenHelper",
|
|
167
|
+
/**
|
|
168
|
+
* SilentHandler
|
|
169
|
+
*/
|
|
170
|
+
SilentHandlerInitiateAuthRequest: "silentHandlerInitiateAuthRequest",
|
|
171
|
+
SilentHandlerMonitorIframeForHash: "silentHandlerMonitorIframeForHash",
|
|
172
|
+
SilentHandlerLoadFrame: "silentHandlerLoadFrame",
|
|
173
|
+
SilentHandlerLoadFrameSync: "silentHandlerLoadFrameSync",
|
|
174
|
+
/**
|
|
175
|
+
* Helper functions in StandardInteractionClient class (msal-browser)
|
|
176
|
+
*/
|
|
177
|
+
StandardInteractionClientCreateAuthCodeClient: "standardInteractionClientCreateAuthCodeClient",
|
|
178
|
+
StandardInteractionClientGetClientConfiguration: "standardInteractionClientGetClientConfiguration",
|
|
179
|
+
StandardInteractionClientInitializeAuthorizationRequest: "standardInteractionClientInitializeAuthorizationRequest",
|
|
180
|
+
StandardInteractionClientInitializeAuthorizationCodeRequest: "standardInteractionClientInitializeAuthorizationCodeRequest",
|
|
181
|
+
/**
|
|
182
|
+
* getAuthCodeUrl API (msal-browser and msal-node).
|
|
183
|
+
*/
|
|
184
|
+
GetAuthCodeUrl: "getAuthCodeUrl",
|
|
185
|
+
/**
|
|
186
|
+
* Functions from InteractionHandler (msal-browser)
|
|
187
|
+
*/
|
|
188
|
+
HandleCodeResponseFromServer: "handleCodeResponseFromServer",
|
|
189
|
+
HandleCodeResponse: "handleCodeResponse",
|
|
190
|
+
UpdateTokenEndpointAuthority: "updateTokenEndpointAuthority",
|
|
191
|
+
/**
|
|
192
|
+
* APIs in Authorization Code Client (msal-common)
|
|
193
|
+
*/
|
|
194
|
+
AuthClientAcquireToken: "authClientAcquireToken",
|
|
195
|
+
AuthClientExecuteTokenRequest: "authClientExecuteTokenRequest",
|
|
196
|
+
AuthClientCreateTokenRequestBody: "authClientCreateTokenRequestBody",
|
|
197
|
+
AuthClientCreateQueryString: "authClientCreateQueryString",
|
|
198
|
+
/**
|
|
199
|
+
* Generate functions in PopTokenGenerator (msal-common)
|
|
200
|
+
*/
|
|
201
|
+
PopTokenGenerateCnf: "popTokenGenerateCnf",
|
|
202
|
+
PopTokenGenerateKid: "popTokenGenerateKid",
|
|
203
|
+
/**
|
|
204
|
+
* handleServerTokenResponse API in ResponseHandler (msal-common)
|
|
205
|
+
*/
|
|
206
|
+
HandleServerTokenResponse: "handleServerTokenResponse",
|
|
207
|
+
DeserializeResponse: "deserializeResponse",
|
|
208
|
+
/**
|
|
209
|
+
* Authority functions
|
|
210
|
+
*/
|
|
211
|
+
AuthorityFactoryCreateDiscoveredInstance: "authorityFactoryCreateDiscoveredInstance",
|
|
212
|
+
AuthorityResolveEndpointsAsync: "authorityResolveEndpointsAsync",
|
|
213
|
+
AuthorityResolveEndpointsFromLocalSources: "authorityResolveEndpointsFromLocalSources",
|
|
214
|
+
AuthorityGetCloudDiscoveryMetadataFromNetwork: "authorityGetCloudDiscoveryMetadataFromNetwork",
|
|
215
|
+
AuthorityUpdateCloudDiscoveryMetadata: "authorityUpdateCloudDiscoveryMetadata",
|
|
216
|
+
AuthorityGetEndpointMetadataFromNetwork: "authorityGetEndpointMetadataFromNetwork",
|
|
217
|
+
AuthorityUpdateEndpointMetadata: "authorityUpdateEndpointMetadata",
|
|
218
|
+
AuthorityUpdateMetadataWithRegionalInformation: "authorityUpdateMetadataWithRegionalInformation",
|
|
219
|
+
/**
|
|
220
|
+
* Region Discovery functions
|
|
221
|
+
*/
|
|
222
|
+
RegionDiscoveryDetectRegion: "regionDiscoveryDetectRegion",
|
|
223
|
+
RegionDiscoveryGetRegionFromIMDS: "regionDiscoveryGetRegionFromIMDS",
|
|
224
|
+
RegionDiscoveryGetCurrentVersion: "regionDiscoveryGetCurrentVersion",
|
|
225
|
+
AcquireTokenByCodeAsync: "acquireTokenByCodeAsync",
|
|
226
|
+
GetEndpointMetadataFromNetwork: "getEndpointMetadataFromNetwork",
|
|
227
|
+
GetCloudDiscoveryMetadataFromNetworkMeasurement: "getCloudDiscoveryMetadataFromNetworkMeasurement",
|
|
228
|
+
HandleRedirectPromiseMeasurement: "handleRedirectPromise",
|
|
229
|
+
HandleNativeRedirectPromiseMeasurement: "handleNativeRedirectPromise",
|
|
230
|
+
UpdateCloudDiscoveryMetadataMeasurement: "updateCloudDiscoveryMetadataMeasurement",
|
|
231
|
+
UsernamePasswordClientAcquireToken: "usernamePasswordClientAcquireToken",
|
|
232
|
+
NativeMessageHandlerHandshake: "nativeMessageHandlerHandshake",
|
|
233
|
+
NativeGenerateAuthResult: "nativeGenerateAuthResult",
|
|
234
|
+
RemoveHiddenIframe: "removeHiddenIframe",
|
|
235
|
+
/**
|
|
236
|
+
* Cache operations
|
|
237
|
+
*/
|
|
238
|
+
ClearTokensAndKeysWithClaims: "clearTokensAndKeysWithClaims",
|
|
239
|
+
CacheManagerGetRefreshToken: "cacheManagerGetRefreshToken",
|
|
240
|
+
/**
|
|
241
|
+
* Crypto Operations
|
|
242
|
+
*/
|
|
243
|
+
GeneratePkceCodes: "generatePkceCodes",
|
|
244
|
+
GenerateCodeVerifier: "generateCodeVerifier",
|
|
245
|
+
GenerateCodeChallengeFromVerifier: "generateCodeChallengeFromVerifier",
|
|
246
|
+
Sha256Digest: "sha256Digest",
|
|
247
|
+
GetRandomValues: "getRandomValues",
|
|
248
|
+
};
|
|
249
|
+
const PerformanceEventAbbreviations = new Map([
|
|
250
|
+
[PerformanceEvents.AcquireTokenByCode, "ATByCode"],
|
|
251
|
+
[PerformanceEvents.AcquireTokenByRefreshToken, "ATByRT"],
|
|
252
|
+
[PerformanceEvents.AcquireTokenSilent, "ATS"],
|
|
253
|
+
[PerformanceEvents.AcquireTokenSilentAsync, "ATSAsync"],
|
|
254
|
+
[PerformanceEvents.AcquireTokenPopup, "ATPopup"],
|
|
255
|
+
[PerformanceEvents.AcquireTokenRedirect, "ATRedirect"],
|
|
256
|
+
[
|
|
257
|
+
PerformanceEvents.CryptoOptsGetPublicKeyThumbprint,
|
|
258
|
+
"CryptoGetPKThumb",
|
|
259
|
+
],
|
|
260
|
+
[PerformanceEvents.CryptoOptsSignJwt, "CryptoSignJwt"],
|
|
261
|
+
[PerformanceEvents.SilentCacheClientAcquireToken, "SltCacheClientAT"],
|
|
262
|
+
[PerformanceEvents.SilentIframeClientAcquireToken, "SltIframeClientAT"],
|
|
263
|
+
[PerformanceEvents.SilentRefreshClientAcquireToken, "SltRClientAT"],
|
|
264
|
+
[PerformanceEvents.SsoSilent, "SsoSlt"],
|
|
265
|
+
[
|
|
266
|
+
PerformanceEvents.StandardInteractionClientGetDiscoveredAuthority,
|
|
267
|
+
"StdIntClientGetDiscAuth",
|
|
268
|
+
],
|
|
269
|
+
[
|
|
270
|
+
PerformanceEvents.FetchAccountIdWithNativeBroker,
|
|
271
|
+
"FetchAccIdWithNtvBroker",
|
|
272
|
+
],
|
|
273
|
+
[
|
|
274
|
+
PerformanceEvents.NativeInteractionClientAcquireToken,
|
|
275
|
+
"NtvIntClientAT",
|
|
276
|
+
],
|
|
277
|
+
[
|
|
278
|
+
PerformanceEvents.BaseClientCreateTokenRequestHeaders,
|
|
279
|
+
"BaseClientCreateTReqHead",
|
|
280
|
+
],
|
|
281
|
+
[
|
|
282
|
+
PerformanceEvents.RefreshTokenClientExecutePostToTokenEndpoint,
|
|
283
|
+
"RTClientExecPost",
|
|
284
|
+
],
|
|
285
|
+
[
|
|
286
|
+
PerformanceEvents.AuthorizationCodeClientExecutePostToTokenEndpoint,
|
|
287
|
+
"AuthCodeClientExecPost",
|
|
288
|
+
],
|
|
289
|
+
[PerformanceEvents.BrokerHandhshake, "BrokerHandshake"],
|
|
290
|
+
[
|
|
291
|
+
PerformanceEvents.AcquireTokenByRefreshTokenInBroker,
|
|
292
|
+
"ATByRTInBroker",
|
|
293
|
+
],
|
|
294
|
+
[PerformanceEvents.AcquireTokenByBroker, "ATByBroker"],
|
|
295
|
+
[
|
|
296
|
+
PerformanceEvents.RefreshTokenClientExecuteTokenRequest,
|
|
297
|
+
"RTClientExecTReq",
|
|
298
|
+
],
|
|
299
|
+
[PerformanceEvents.RefreshTokenClientAcquireToken, "RTClientAT"],
|
|
300
|
+
[
|
|
301
|
+
PerformanceEvents.RefreshTokenClientAcquireTokenWithCachedRefreshToken,
|
|
302
|
+
"RTClientATWithCachedRT",
|
|
303
|
+
],
|
|
304
|
+
[
|
|
305
|
+
PerformanceEvents.RefreshTokenClientAcquireTokenByRefreshToken,
|
|
306
|
+
"RTClientATByRT",
|
|
307
|
+
],
|
|
308
|
+
[
|
|
309
|
+
PerformanceEvents.RefreshTokenClientCreateTokenRequestBody,
|
|
310
|
+
"RTClientCreateTReqBody",
|
|
311
|
+
],
|
|
312
|
+
[PerformanceEvents.AcquireTokenFromCache, "ATFromCache"],
|
|
313
|
+
[
|
|
314
|
+
PerformanceEvents.SilentFlowClientAcquireCachedToken,
|
|
315
|
+
"SltFlowClientATCached",
|
|
316
|
+
],
|
|
317
|
+
[
|
|
318
|
+
PerformanceEvents.SilentFlowClientGenerateResultFromCacheRecord,
|
|
319
|
+
"SltFlowClientGenResFromCache",
|
|
320
|
+
],
|
|
321
|
+
[PerformanceEvents.AcquireTokenBySilentIframe, "ATBySltIframe"],
|
|
322
|
+
[PerformanceEvents.InitializeBaseRequest, "InitBaseReq"],
|
|
323
|
+
[PerformanceEvents.InitializeSilentRequest, "InitSltReq"],
|
|
324
|
+
[
|
|
325
|
+
PerformanceEvents.InitializeClientApplication,
|
|
326
|
+
"InitClientApplication",
|
|
327
|
+
],
|
|
328
|
+
[PerformanceEvents.SilentIframeClientTokenHelper, "SIClientTHelper"],
|
|
329
|
+
[
|
|
330
|
+
PerformanceEvents.SilentHandlerInitiateAuthRequest,
|
|
331
|
+
"SHandlerInitAuthReq",
|
|
332
|
+
],
|
|
333
|
+
[
|
|
334
|
+
PerformanceEvents.SilentHandlerMonitorIframeForHash,
|
|
335
|
+
"SltHandlerMonitorIframeForHash",
|
|
336
|
+
],
|
|
337
|
+
[PerformanceEvents.SilentHandlerLoadFrame, "SHandlerLoadFrame"],
|
|
338
|
+
[PerformanceEvents.SilentHandlerLoadFrameSync, "SHandlerLoadFrameSync"],
|
|
339
|
+
[
|
|
340
|
+
PerformanceEvents.StandardInteractionClientCreateAuthCodeClient,
|
|
341
|
+
"StdIntClientCreateAuthCodeClient",
|
|
342
|
+
],
|
|
343
|
+
[
|
|
344
|
+
PerformanceEvents.StandardInteractionClientGetClientConfiguration,
|
|
345
|
+
"StdIntClientGetClientConf",
|
|
346
|
+
],
|
|
347
|
+
[
|
|
348
|
+
PerformanceEvents.StandardInteractionClientInitializeAuthorizationRequest,
|
|
349
|
+
"StdIntClientInitAuthReq",
|
|
350
|
+
],
|
|
351
|
+
[
|
|
352
|
+
PerformanceEvents.StandardInteractionClientInitializeAuthorizationCodeRequest,
|
|
353
|
+
"StdIntClientInitAuthCodeReq",
|
|
354
|
+
],
|
|
355
|
+
[PerformanceEvents.GetAuthCodeUrl, "GetAuthCodeUrl"],
|
|
356
|
+
[
|
|
357
|
+
PerformanceEvents.HandleCodeResponseFromServer,
|
|
358
|
+
"HandleCodeResFromServer",
|
|
359
|
+
],
|
|
360
|
+
[PerformanceEvents.HandleCodeResponse, "HandleCodeResp"],
|
|
361
|
+
[PerformanceEvents.UpdateTokenEndpointAuthority, "UpdTEndpointAuth"],
|
|
362
|
+
[PerformanceEvents.AuthClientAcquireToken, "AuthClientAT"],
|
|
363
|
+
[PerformanceEvents.AuthClientExecuteTokenRequest, "AuthClientExecTReq"],
|
|
364
|
+
[
|
|
365
|
+
PerformanceEvents.AuthClientCreateTokenRequestBody,
|
|
366
|
+
"AuthClientCreateTReqBody",
|
|
367
|
+
],
|
|
368
|
+
[
|
|
369
|
+
PerformanceEvents.AuthClientCreateQueryString,
|
|
370
|
+
"AuthClientCreateQueryStr",
|
|
371
|
+
],
|
|
372
|
+
[PerformanceEvents.PopTokenGenerateCnf, "PopTGenCnf"],
|
|
373
|
+
[PerformanceEvents.PopTokenGenerateKid, "PopTGenKid"],
|
|
374
|
+
[PerformanceEvents.HandleServerTokenResponse, "HandleServerTRes"],
|
|
375
|
+
[PerformanceEvents.DeserializeResponse, "DeserializeRes"],
|
|
376
|
+
[
|
|
377
|
+
PerformanceEvents.AuthorityFactoryCreateDiscoveredInstance,
|
|
378
|
+
"AuthFactCreateDiscInst",
|
|
379
|
+
],
|
|
380
|
+
[
|
|
381
|
+
PerformanceEvents.AuthorityResolveEndpointsAsync,
|
|
382
|
+
"AuthResolveEndpointsAsync",
|
|
383
|
+
],
|
|
384
|
+
[
|
|
385
|
+
PerformanceEvents.AuthorityResolveEndpointsFromLocalSources,
|
|
386
|
+
"AuthResolveEndpointsFromLocal",
|
|
387
|
+
],
|
|
388
|
+
[
|
|
389
|
+
PerformanceEvents.AuthorityGetCloudDiscoveryMetadataFromNetwork,
|
|
390
|
+
"AuthGetCDMetaFromNet",
|
|
391
|
+
],
|
|
392
|
+
[
|
|
393
|
+
PerformanceEvents.AuthorityUpdateCloudDiscoveryMetadata,
|
|
394
|
+
"AuthUpdCDMeta",
|
|
395
|
+
],
|
|
396
|
+
[
|
|
397
|
+
PerformanceEvents.AuthorityGetEndpointMetadataFromNetwork,
|
|
398
|
+
"AuthUpdCDMetaFromNet",
|
|
399
|
+
],
|
|
400
|
+
[
|
|
401
|
+
PerformanceEvents.AuthorityUpdateEndpointMetadata,
|
|
402
|
+
"AuthUpdEndpointMeta",
|
|
403
|
+
],
|
|
404
|
+
[
|
|
405
|
+
PerformanceEvents.AuthorityUpdateMetadataWithRegionalInformation,
|
|
406
|
+
"AuthUpdMetaWithRegInfo",
|
|
407
|
+
],
|
|
408
|
+
[PerformanceEvents.RegionDiscoveryDetectRegion, "RegDiscDetectReg"],
|
|
409
|
+
[
|
|
410
|
+
PerformanceEvents.RegionDiscoveryGetRegionFromIMDS,
|
|
411
|
+
"RegDiscGetRegFromIMDS",
|
|
412
|
+
],
|
|
413
|
+
[
|
|
414
|
+
PerformanceEvents.RegionDiscoveryGetCurrentVersion,
|
|
415
|
+
"RegDiscGetCurrentVer",
|
|
416
|
+
],
|
|
417
|
+
[PerformanceEvents.AcquireTokenByCodeAsync, "ATByCodeAsync"],
|
|
418
|
+
[
|
|
419
|
+
PerformanceEvents.GetEndpointMetadataFromNetwork,
|
|
420
|
+
"GetEndpointMetaFromNet",
|
|
421
|
+
],
|
|
422
|
+
[
|
|
423
|
+
PerformanceEvents.GetCloudDiscoveryMetadataFromNetworkMeasurement,
|
|
424
|
+
"GetCDMetaFromNet",
|
|
425
|
+
],
|
|
426
|
+
[
|
|
427
|
+
PerformanceEvents.HandleRedirectPromiseMeasurement,
|
|
428
|
+
"HandleRedirectPromise",
|
|
429
|
+
],
|
|
430
|
+
[
|
|
431
|
+
PerformanceEvents.HandleNativeRedirectPromiseMeasurement,
|
|
432
|
+
"HandleNtvRedirectPromise",
|
|
433
|
+
],
|
|
434
|
+
[
|
|
435
|
+
PerformanceEvents.UpdateCloudDiscoveryMetadataMeasurement,
|
|
436
|
+
"UpdateCDMeta",
|
|
437
|
+
],
|
|
438
|
+
[
|
|
439
|
+
PerformanceEvents.UsernamePasswordClientAcquireToken,
|
|
440
|
+
"UserPassClientAT",
|
|
441
|
+
],
|
|
442
|
+
[
|
|
443
|
+
PerformanceEvents.NativeMessageHandlerHandshake,
|
|
444
|
+
"NtvMsgHandlerHandshake",
|
|
445
|
+
],
|
|
446
|
+
[PerformanceEvents.NativeGenerateAuthResult, "NtvGenAuthRes"],
|
|
447
|
+
[PerformanceEvents.RemoveHiddenIframe, "RemoveHiddenIframe"],
|
|
448
|
+
[
|
|
449
|
+
PerformanceEvents.ClearTokensAndKeysWithClaims,
|
|
450
|
+
"ClearTAndKeysWithClaims",
|
|
451
|
+
],
|
|
452
|
+
[PerformanceEvents.CacheManagerGetRefreshToken, "CacheManagerGetRT"],
|
|
453
|
+
[PerformanceEvents.GeneratePkceCodes, "GenPkceCodes"],
|
|
454
|
+
[PerformanceEvents.GenerateCodeVerifier, "GenCodeVerifier"],
|
|
455
|
+
[
|
|
456
|
+
PerformanceEvents.GenerateCodeChallengeFromVerifier,
|
|
457
|
+
"GenCodeChallengeFromVerifier",
|
|
458
|
+
],
|
|
459
|
+
[PerformanceEvents.Sha256Digest, "Sha256Digest"],
|
|
460
|
+
[PerformanceEvents.GetRandomValues, "GetRandomValues"],
|
|
461
|
+
]);
|
|
462
|
+
/**
|
|
463
|
+
* State of the performance event.
|
|
464
|
+
*
|
|
465
|
+
* @export
|
|
466
|
+
* @enum {number}
|
|
467
|
+
*/
|
|
468
|
+
const PerformanceEventStatus = {
|
|
469
|
+
NotStarted: 0,
|
|
470
|
+
InProgress: 1,
|
|
471
|
+
Completed: 2,
|
|
472
|
+
};
|
|
473
|
+
const IntFields = new Set([
|
|
474
|
+
"accessTokenSize",
|
|
475
|
+
"durationMs",
|
|
476
|
+
"idTokenSize",
|
|
477
|
+
"matsSilentStatus",
|
|
478
|
+
"matsHttpStatus",
|
|
479
|
+
"refreshTokenSize",
|
|
480
|
+
"queuedTimeMs",
|
|
481
|
+
"startTimeMs",
|
|
482
|
+
"status",
|
|
483
|
+
"multiMatchedAT",
|
|
484
|
+
"multiMatchedID",
|
|
485
|
+
"multiMatchedRT",
|
|
482
486
|
]);
|
|
483
487
|
|
|
484
488
|
export { IntFields, PerformanceEventAbbreviations, PerformanceEventStatus, PerformanceEvents };
|