@azure/msal-common 15.12.0 → 16.0.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/dist/account/AccountInfo.d.ts +0 -1
- package/dist/account/AccountInfo.d.ts.map +1 -1
- package/dist/account/AccountInfo.mjs +1 -1
- package/dist/account/AccountInfo.mjs.map +1 -1
- package/dist/account/AuthToken.mjs +1 -1
- package/dist/account/AuthToken.mjs.map +1 -1
- package/dist/account/CcsCredential.mjs +1 -1
- package/dist/account/CcsCredential.mjs.map +1 -1
- package/dist/account/ClientInfo.d.ts.map +1 -1
- package/dist/account/ClientInfo.mjs +4 -6
- package/dist/account/ClientInfo.mjs.map +1 -1
- package/dist/account/TokenClaims.mjs +1 -1
- package/dist/account/TokenClaims.mjs.map +1 -1
- package/dist/authority/Authority.d.ts +2 -2
- package/dist/authority/Authority.d.ts.map +1 -1
- package/dist/authority/Authority.mjs +89 -105
- package/dist/authority/Authority.mjs.map +1 -1
- package/dist/authority/AuthorityFactory.d.ts +6 -2
- package/dist/authority/AuthorityFactory.d.ts.map +1 -1
- package/dist/authority/AuthorityFactory.mjs +8 -5
- package/dist/authority/AuthorityFactory.mjs.map +1 -1
- package/dist/authority/AuthorityMetadata.d.ts +2 -2
- package/dist/authority/AuthorityMetadata.d.ts.map +1 -1
- package/dist/authority/AuthorityMetadata.mjs +8 -8
- package/dist/authority/AuthorityMetadata.mjs.map +1 -1
- package/dist/authority/AuthorityOptions.d.ts +0 -1
- package/dist/authority/AuthorityOptions.d.ts.map +1 -1
- package/dist/authority/AuthorityOptions.mjs +1 -1
- package/dist/authority/AuthorityOptions.mjs.map +1 -1
- package/dist/authority/AuthorityType.mjs +1 -1
- package/dist/authority/AuthorityType.mjs.map +1 -1
- package/dist/authority/CloudInstanceDiscoveryErrorResponse.mjs +1 -1
- package/dist/authority/CloudInstanceDiscoveryResponse.mjs +1 -1
- package/dist/authority/OIDCOptions.d.ts +2 -2
- package/dist/authority/OIDCOptions.d.ts.map +1 -1
- package/dist/authority/OpenIdConfigResponse.mjs +1 -1
- package/dist/authority/ProtocolMode.mjs +1 -1
- package/dist/authority/ProtocolMode.mjs.map +1 -1
- package/dist/authority/RegionDiscovery.d.ts +3 -3
- package/dist/authority/RegionDiscovery.d.ts.map +1 -1
- package/dist/authority/RegionDiscovery.mjs +14 -15
- package/dist/authority/RegionDiscovery.mjs.map +1 -1
- package/dist/cache/CacheManager.d.ts +25 -17
- package/dist/cache/CacheManager.d.ts.map +1 -1
- package/dist/cache/CacheManager.mjs +69 -80
- package/dist/cache/CacheManager.mjs.map +1 -1
- package/dist/cache/entities/AccessTokenEntity.d.ts +0 -4
- package/dist/cache/entities/AccessTokenEntity.d.ts.map +1 -1
- package/dist/cache/entities/AccountEntity.d.ts +4 -56
- package/dist/cache/entities/AccountEntity.d.ts.map +1 -1
- package/dist/cache/entities/CredentialEntity.d.ts +0 -2
- package/dist/cache/entities/CredentialEntity.d.ts.map +1 -1
- package/dist/cache/interface/ICacheManager.d.ts +41 -12
- package/dist/cache/interface/ICacheManager.d.ts.map +1 -1
- package/dist/cache/persistence/TokenCacheContext.mjs +1 -1
- package/dist/cache/persistence/TokenCacheContext.mjs.map +1 -1
- package/dist/cache/utils/AccountEntityUtils.d.ts +60 -0
- package/dist/cache/utils/AccountEntityUtils.d.ts.map +1 -0
- package/dist/cache/utils/AccountEntityUtils.mjs +212 -0
- package/dist/cache/utils/AccountEntityUtils.mjs.map +1 -0
- package/dist/cache/utils/CacheHelpers.d.ts +2 -2
- package/dist/cache/utils/CacheHelpers.d.ts.map +1 -1
- package/dist/cache/utils/CacheHelpers.mjs +10 -13
- package/dist/cache/utils/CacheHelpers.mjs.map +1 -1
- package/dist/cache/utils/CacheTypes.d.ts +0 -1
- package/dist/cache/utils/CacheTypes.d.ts.map +1 -1
- package/dist/client/AuthorizationCodeClient.d.ts +1 -1
- package/dist/client/AuthorizationCodeClient.d.ts.map +1 -1
- package/dist/client/AuthorizationCodeClient.mjs +16 -20
- package/dist/client/AuthorizationCodeClient.mjs.map +1 -1
- package/dist/client/BaseClient.d.ts +3 -3
- package/dist/client/BaseClient.d.ts.map +1 -1
- package/dist/client/BaseClient.mjs +7 -12
- package/dist/client/BaseClient.mjs.map +1 -1
- package/dist/client/RefreshTokenClient.d.ts +1 -1
- package/dist/client/RefreshTokenClient.d.ts.map +1 -1
- package/dist/client/RefreshTokenClient.mjs +22 -27
- package/dist/client/RefreshTokenClient.mjs.map +1 -1
- package/dist/client/SilentFlowClient.d.ts +1 -1
- package/dist/client/SilentFlowClient.d.ts.map +1 -1
- package/dist/client/SilentFlowClient.mjs +8 -12
- package/dist/client/SilentFlowClient.mjs.map +1 -1
- package/dist/config/ClientConfiguration.d.ts +2 -22
- package/dist/config/ClientConfiguration.d.ts.map +1 -1
- package/dist/config/ClientConfiguration.mjs +9 -15
- package/dist/config/ClientConfiguration.mjs.map +1 -1
- package/dist/constants/AADServerParamKeys.mjs +1 -1
- package/dist/crypto/ICrypto.d.ts +5 -3
- package/dist/crypto/ICrypto.d.ts.map +1 -1
- package/dist/crypto/ICrypto.mjs +1 -1
- package/dist/crypto/ICrypto.mjs.map +1 -1
- package/dist/crypto/JoseHeader.mjs +1 -1
- package/dist/crypto/JoseHeader.mjs.map +1 -1
- package/dist/crypto/PopTokenGenerator.d.ts +2 -2
- package/dist/crypto/PopTokenGenerator.d.ts.map +1 -1
- package/dist/crypto/PopTokenGenerator.mjs +3 -5
- package/dist/crypto/PopTokenGenerator.mjs.map +1 -1
- package/dist/error/AuthError.d.ts +1 -18
- package/dist/error/AuthError.d.ts.map +1 -1
- package/dist/error/AuthError.mjs +12 -34
- package/dist/error/AuthError.mjs.map +1 -1
- package/dist/error/AuthErrorCodes.mjs +1 -1
- package/dist/error/CacheError.d.ts +1 -6
- package/dist/error/CacheError.d.ts.map +1 -1
- package/dist/error/CacheError.mjs +6 -13
- package/dist/error/CacheError.mjs.map +1 -1
- package/dist/error/CacheErrorCodes.mjs +1 -1
- package/dist/error/ClientAuthError.d.ts +0 -224
- package/dist/error/ClientAuthError.d.ts.map +1 -1
- package/dist/error/ClientAuthError.mjs +3 -235
- package/dist/error/ClientAuthError.mjs.map +1 -1
- package/dist/error/ClientAuthErrorCodes.d.ts +0 -8
- package/dist/error/ClientAuthErrorCodes.d.ts.map +1 -1
- package/dist/error/ClientAuthErrorCodes.mjs +2 -10
- package/dist/error/ClientAuthErrorCodes.mjs.map +1 -1
- package/dist/error/ClientConfigurationError.d.ts +0 -123
- package/dist/error/ClientConfigurationError.d.ts.map +1 -1
- package/dist/error/ClientConfigurationError.mjs +3 -129
- package/dist/error/ClientConfigurationError.mjs.map +1 -1
- package/dist/error/ClientConfigurationErrorCodes.d.ts +0 -2
- package/dist/error/ClientConfigurationErrorCodes.d.ts.map +1 -1
- package/dist/error/ClientConfigurationErrorCodes.mjs +3 -5
- package/dist/error/ClientConfigurationErrorCodes.mjs.map +1 -1
- package/dist/error/InteractionRequiredAuthError.d.ts +1 -19
- package/dist/error/InteractionRequiredAuthError.d.ts.map +1 -1
- package/dist/error/InteractionRequiredAuthError.mjs +10 -35
- package/dist/error/InteractionRequiredAuthError.mjs.map +1 -1
- package/dist/error/InteractionRequiredAuthErrorCodes.mjs +1 -1
- package/dist/error/JoseHeaderError.d.ts +0 -4
- package/dist/error/JoseHeaderError.d.ts.map +1 -1
- package/dist/error/JoseHeaderError.mjs +3 -8
- package/dist/error/JoseHeaderError.mjs.map +1 -1
- package/dist/error/JoseHeaderErrorCodes.mjs +1 -1
- package/dist/error/NetworkError.mjs +1 -1
- package/dist/error/NetworkError.mjs.map +1 -1
- package/dist/error/ServerError.mjs +1 -1
- package/dist/error/ServerError.mjs.map +1 -1
- package/dist/exports-browser-only.d.ts +4 -3
- package/dist/exports-browser-only.d.ts.map +1 -1
- package/dist/exports-common.d.ts +8 -6
- package/dist/exports-common.d.ts.map +1 -1
- package/dist/exports-node-only.d.ts +1 -4
- package/dist/exports-node-only.d.ts.map +1 -1
- package/dist/index-browser.mjs +12 -8
- package/dist/index-browser.mjs.map +1 -1
- package/dist/index-node.mjs +10 -7
- package/dist/index-node.mjs.map +1 -1
- package/dist/index.mjs +12 -8
- package/dist/index.mjs.map +1 -1
- package/dist/logger/Logger.d.ts +12 -13
- package/dist/logger/Logger.d.ts.map +1 -1
- package/dist/logger/Logger.mjs +16 -21
- package/dist/logger/Logger.mjs.map +1 -1
- package/dist/network/INetworkModule.mjs +1 -1
- package/dist/network/INetworkModule.mjs.map +1 -1
- package/dist/network/RequestThumbprint.mjs +1 -1
- package/dist/network/ThrottlingUtils.d.ts.map +1 -1
- package/dist/network/ThrottlingUtils.mjs +6 -7
- package/dist/network/ThrottlingUtils.mjs.map +1 -1
- package/dist/packageMetadata.d.ts +1 -1
- package/dist/packageMetadata.d.ts.map +1 -1
- package/dist/packageMetadata.mjs +2 -2
- package/dist/protocol/Authorize.d.ts +1 -2
- package/dist/protocol/Authorize.d.ts.map +1 -1
- package/dist/protocol/Authorize.mjs +14 -14
- package/dist/protocol/Authorize.mjs.map +1 -1
- package/dist/request/AuthenticationHeaderParser.d.ts.map +1 -1
- package/dist/request/AuthenticationHeaderParser.mjs +3 -3
- package/dist/request/AuthenticationHeaderParser.mjs.map +1 -1
- package/dist/request/BaseAuthRequest.d.ts +1 -7
- package/dist/request/BaseAuthRequest.d.ts.map +1 -1
- package/dist/request/RequestParameterBuilder.d.ts +3 -9
- package/dist/request/RequestParameterBuilder.d.ts.map +1 -1
- package/dist/request/RequestParameterBuilder.mjs +7 -20
- package/dist/request/RequestParameterBuilder.mjs.map +1 -1
- package/dist/request/ScopeSet.mjs +5 -5
- package/dist/request/ScopeSet.mjs.map +1 -1
- package/dist/response/AuthenticationResult.d.ts +1 -1
- package/dist/response/AuthenticationResult.d.ts.map +1 -1
- package/dist/response/ResponseHandler.d.ts +6 -5
- package/dist/response/ResponseHandler.d.ts.map +1 -1
- package/dist/response/ResponseHandler.mjs +39 -41
- package/dist/response/ResponseHandler.mjs.map +1 -1
- package/dist/telemetry/performance/IPerformanceClient.d.ts +0 -29
- package/dist/telemetry/performance/IPerformanceClient.d.ts.map +1 -1
- package/dist/telemetry/performance/PerformanceClient.d.ts +5 -81
- package/dist/telemetry/performance/PerformanceClient.d.ts.map +1 -1
- package/dist/telemetry/performance/PerformanceClient.mjs +24 -166
- package/dist/telemetry/performance/PerformanceClient.mjs.map +1 -1
- package/dist/telemetry/performance/PerformanceEvent.d.ts +0 -280
- package/dist/telemetry/performance/PerformanceEvent.d.ts.map +1 -1
- package/dist/telemetry/performance/PerformanceEvent.mjs +2 -483
- package/dist/telemetry/performance/PerformanceEvent.mjs.map +1 -1
- package/dist/telemetry/performance/PerformanceEvents.d.ts +65 -0
- package/dist/telemetry/performance/PerformanceEvents.d.ts.map +1 -0
- package/dist/telemetry/performance/PerformanceEvents.mjs +73 -0
- package/dist/telemetry/performance/PerformanceEvents.mjs.map +1 -0
- package/dist/telemetry/performance/StubPerformanceClient.d.ts +0 -4
- package/dist/telemetry/performance/StubPerformanceClient.d.ts.map +1 -1
- package/dist/telemetry/performance/StubPerformanceClient.mjs +2 -26
- package/dist/telemetry/performance/StubPerformanceClient.mjs.map +1 -1
- package/dist/telemetry/server/ServerTelemetryManager.d.ts +2 -2
- package/dist/telemetry/server/ServerTelemetryManager.d.ts.map +1 -1
- package/dist/telemetry/server/ServerTelemetryManager.mjs +28 -30
- package/dist/telemetry/server/ServerTelemetryManager.mjs.map +1 -1
- package/dist/url/UrlString.d.ts +0 -5
- package/dist/url/UrlString.d.ts.map +1 -1
- package/dist/url/UrlString.mjs +5 -13
- package/dist/url/UrlString.mjs.map +1 -1
- package/dist/utils/ClientAssertionUtils.mjs +1 -1
- package/dist/utils/ClientAssertionUtils.mjs.map +1 -1
- package/dist/utils/Constants.d.ts +81 -117
- package/dist/utils/Constants.d.ts.map +1 -1
- package/dist/utils/Constants.mjs +100 -131
- package/dist/utils/Constants.mjs.map +1 -1
- package/dist/utils/FunctionWrappers.d.ts +2 -2
- package/dist/utils/FunctionWrappers.d.ts.map +1 -1
- package/dist/utils/FunctionWrappers.mjs +19 -20
- package/dist/utils/FunctionWrappers.mjs.map +1 -1
- package/dist/utils/ProtocolUtils.mjs +7 -7
- package/dist/utils/ProtocolUtils.mjs.map +1 -1
- package/dist/utils/StringUtils.mjs +1 -1
- package/dist/utils/StringUtils.mjs.map +1 -1
- package/dist/utils/TimeUtils.mjs +1 -1
- package/dist/utils/TimeUtils.mjs.map +1 -1
- package/dist/utils/UrlUtils.d.ts +1 -2
- package/dist/utils/UrlUtils.d.ts.map +1 -1
- package/dist/utils/UrlUtils.mjs +3 -10
- package/dist/utils/UrlUtils.mjs.map +1 -1
- package/lib/index-browser.cjs +26 -201
- package/lib/index-browser.cjs.map +1 -1
- package/lib/{index-node-C8h2xZEM.js → index-node-FrCFfFuh.js} +1606 -2487
- package/lib/index-node-FrCFfFuh.js.map +1 -0
- package/lib/index-node.cjs +4 -33
- package/lib/index-node.cjs.map +1 -1
- package/lib/index.cjs +3 -33
- package/lib/index.cjs.map +1 -1
- package/lib/types/account/AccountInfo.d.ts +0 -1
- package/lib/types/account/AccountInfo.d.ts.map +1 -1
- package/lib/types/account/ClientInfo.d.ts.map +1 -1
- package/lib/types/authority/Authority.d.ts +2 -2
- package/lib/types/authority/Authority.d.ts.map +1 -1
- package/lib/types/authority/AuthorityFactory.d.ts +6 -2
- package/lib/types/authority/AuthorityFactory.d.ts.map +1 -1
- package/lib/types/authority/AuthorityMetadata.d.ts +2 -2
- package/lib/types/authority/AuthorityMetadata.d.ts.map +1 -1
- package/lib/types/authority/AuthorityOptions.d.ts +0 -1
- package/lib/types/authority/AuthorityOptions.d.ts.map +1 -1
- package/lib/types/authority/OIDCOptions.d.ts +2 -2
- package/lib/types/authority/OIDCOptions.d.ts.map +1 -1
- package/lib/types/authority/RegionDiscovery.d.ts +3 -3
- package/lib/types/authority/RegionDiscovery.d.ts.map +1 -1
- package/lib/types/cache/CacheManager.d.ts +25 -17
- package/lib/types/cache/CacheManager.d.ts.map +1 -1
- package/lib/types/cache/entities/AccessTokenEntity.d.ts +0 -4
- package/lib/types/cache/entities/AccessTokenEntity.d.ts.map +1 -1
- package/lib/types/cache/entities/AccountEntity.d.ts +4 -56
- package/lib/types/cache/entities/AccountEntity.d.ts.map +1 -1
- package/lib/types/cache/entities/CredentialEntity.d.ts +0 -2
- package/lib/types/cache/entities/CredentialEntity.d.ts.map +1 -1
- package/lib/types/cache/interface/ICacheManager.d.ts +41 -12
- package/lib/types/cache/interface/ICacheManager.d.ts.map +1 -1
- package/lib/types/cache/utils/AccountEntityUtils.d.ts +60 -0
- package/lib/types/cache/utils/AccountEntityUtils.d.ts.map +1 -0
- package/lib/types/cache/utils/CacheHelpers.d.ts +2 -2
- package/lib/types/cache/utils/CacheHelpers.d.ts.map +1 -1
- package/lib/types/cache/utils/CacheTypes.d.ts +0 -1
- package/lib/types/cache/utils/CacheTypes.d.ts.map +1 -1
- package/lib/types/client/AuthorizationCodeClient.d.ts +1 -1
- package/lib/types/client/AuthorizationCodeClient.d.ts.map +1 -1
- package/lib/types/client/BaseClient.d.ts +3 -3
- package/lib/types/client/BaseClient.d.ts.map +1 -1
- package/lib/types/client/RefreshTokenClient.d.ts +1 -1
- package/lib/types/client/RefreshTokenClient.d.ts.map +1 -1
- package/lib/types/client/SilentFlowClient.d.ts +1 -1
- package/lib/types/client/SilentFlowClient.d.ts.map +1 -1
- package/lib/types/config/ClientConfiguration.d.ts +2 -22
- package/lib/types/config/ClientConfiguration.d.ts.map +1 -1
- package/lib/types/crypto/ICrypto.d.ts +5 -3
- package/lib/types/crypto/ICrypto.d.ts.map +1 -1
- package/lib/types/crypto/PopTokenGenerator.d.ts +2 -2
- package/lib/types/crypto/PopTokenGenerator.d.ts.map +1 -1
- package/lib/types/error/AuthError.d.ts +1 -18
- package/lib/types/error/AuthError.d.ts.map +1 -1
- package/lib/types/error/CacheError.d.ts +1 -6
- package/lib/types/error/CacheError.d.ts.map +1 -1
- package/lib/types/error/ClientAuthError.d.ts +0 -224
- package/lib/types/error/ClientAuthError.d.ts.map +1 -1
- package/lib/types/error/ClientAuthErrorCodes.d.ts +0 -8
- package/lib/types/error/ClientAuthErrorCodes.d.ts.map +1 -1
- package/lib/types/error/ClientConfigurationError.d.ts +0 -123
- package/lib/types/error/ClientConfigurationError.d.ts.map +1 -1
- package/lib/types/error/ClientConfigurationErrorCodes.d.ts +0 -2
- package/lib/types/error/ClientConfigurationErrorCodes.d.ts.map +1 -1
- package/lib/types/error/InteractionRequiredAuthError.d.ts +1 -19
- package/lib/types/error/InteractionRequiredAuthError.d.ts.map +1 -1
- package/lib/types/error/JoseHeaderError.d.ts +0 -4
- package/lib/types/error/JoseHeaderError.d.ts.map +1 -1
- package/lib/types/exports-browser-only.d.ts +4 -3
- package/lib/types/exports-browser-only.d.ts.map +1 -1
- package/lib/types/exports-common.d.ts +8 -6
- package/lib/types/exports-common.d.ts.map +1 -1
- package/lib/types/exports-node-only.d.ts +1 -4
- package/lib/types/exports-node-only.d.ts.map +1 -1
- package/lib/types/logger/Logger.d.ts +12 -13
- package/lib/types/logger/Logger.d.ts.map +1 -1
- package/lib/types/network/ThrottlingUtils.d.ts.map +1 -1
- package/lib/types/packageMetadata.d.ts +1 -1
- package/lib/types/packageMetadata.d.ts.map +1 -1
- package/lib/types/protocol/Authorize.d.ts +1 -2
- package/lib/types/protocol/Authorize.d.ts.map +1 -1
- package/lib/types/request/AuthenticationHeaderParser.d.ts.map +1 -1
- package/lib/types/request/BaseAuthRequest.d.ts +1 -7
- package/lib/types/request/BaseAuthRequest.d.ts.map +1 -1
- package/lib/types/request/RequestParameterBuilder.d.ts +3 -9
- package/lib/types/request/RequestParameterBuilder.d.ts.map +1 -1
- package/lib/types/response/AuthenticationResult.d.ts +1 -1
- package/lib/types/response/AuthenticationResult.d.ts.map +1 -1
- package/lib/types/response/ResponseHandler.d.ts +6 -5
- package/lib/types/response/ResponseHandler.d.ts.map +1 -1
- package/lib/types/telemetry/performance/IPerformanceClient.d.ts +0 -29
- package/lib/types/telemetry/performance/IPerformanceClient.d.ts.map +1 -1
- package/lib/types/telemetry/performance/PerformanceClient.d.ts +5 -81
- package/lib/types/telemetry/performance/PerformanceClient.d.ts.map +1 -1
- package/lib/types/telemetry/performance/PerformanceEvent.d.ts +0 -280
- package/lib/types/telemetry/performance/PerformanceEvent.d.ts.map +1 -1
- package/lib/types/telemetry/performance/PerformanceEvents.d.ts +65 -0
- package/lib/types/telemetry/performance/PerformanceEvents.d.ts.map +1 -0
- package/lib/types/telemetry/performance/StubPerformanceClient.d.ts +0 -4
- package/lib/types/telemetry/performance/StubPerformanceClient.d.ts.map +1 -1
- package/lib/types/telemetry/server/ServerTelemetryManager.d.ts +2 -2
- package/lib/types/telemetry/server/ServerTelemetryManager.d.ts.map +1 -1
- package/lib/types/url/UrlString.d.ts +0 -5
- package/lib/types/url/UrlString.d.ts.map +1 -1
- package/lib/types/utils/Constants.d.ts +81 -117
- package/lib/types/utils/Constants.d.ts.map +1 -1
- package/lib/types/utils/FunctionWrappers.d.ts +2 -2
- package/lib/types/utils/FunctionWrappers.d.ts.map +1 -1
- package/lib/types/utils/UrlUtils.d.ts +1 -2
- package/lib/types/utils/UrlUtils.d.ts.map +1 -1
- package/package.json +120 -122
- package/src/account/AccountInfo.ts +0 -1
- package/src/account/ClientInfo.ts +3 -6
- package/src/authority/Authority.ts +145 -146
- package/src/authority/AuthorityFactory.ts +7 -7
- package/src/authority/AuthorityMetadata.ts +21 -12
- package/src/authority/AuthorityOptions.ts +0 -1
- package/src/authority/OIDCOptions.ts +2 -2
- package/src/authority/RegionDiscovery.ts +20 -33
- package/src/cache/CacheManager.ts +176 -126
- package/src/cache/entities/AccessTokenEntity.ts +0 -4
- package/src/cache/entities/AccountEntity.ts +4 -285
- package/src/cache/entities/CredentialEntity.ts +0 -2
- package/src/cache/interface/ICacheManager.ts +61 -15
- package/src/cache/utils/AccountEntityUtils.ts +287 -0
- package/src/cache/utils/CacheHelpers.ts +23 -37
- package/src/cache/utils/CacheTypes.ts +0 -1
- package/src/client/AuthorizationCodeClient.ts +28 -49
- package/src/client/BaseClient.ts +8 -20
- package/src/client/RefreshTokenClient.ts +29 -61
- package/src/client/SilentFlowClient.ts +11 -20
- package/src/config/ClientConfiguration.ts +9 -37
- package/src/crypto/ICrypto.ts +5 -3
- package/src/crypto/PopTokenGenerator.ts +3 -13
- package/src/error/AuthError.ts +11 -30
- package/src/error/CacheError.ts +4 -15
- package/src/error/ClientAuthError.ts +1 -311
- package/src/error/ClientAuthErrorCodes.ts +0 -8
- package/src/error/ClientConfigurationError.ts +1 -194
- package/src/error/ClientConfigurationErrorCodes.ts +0 -3
- package/src/error/InteractionRequiredAuthError.ts +8 -48
- package/src/error/JoseHeaderError.ts +1 -8
- package/src/exports-browser-only.ts +2 -6
- package/src/exports-common.ts +4 -34
- package/src/exports-node-only.ts +1 -4
- package/src/logger/Logger.ts +26 -39
- package/src/network/ThrottlingUtils.ts +12 -15
- package/src/packageMetadata.ts +1 -1
- package/src/protocol/Authorize.ts +24 -20
- package/src/request/AuthenticationHeaderParser.ts +2 -4
- package/src/request/BaseAuthRequest.ts +1 -7
- package/src/request/RequestParameterBuilder.ts +30 -45
- package/src/request/ScopeSet.ts +4 -4
- package/src/response/AuthenticationResult.ts +1 -1
- package/src/response/ResponseHandler.ts +53 -58
- package/src/telemetry/performance/IPerformanceClient.ts +0 -40
- package/src/telemetry/performance/PerformanceClient.ts +29 -266
- package/src/telemetry/performance/PerformanceEvent.ts +0 -582
- package/src/telemetry/performance/PerformanceEvents.ts +97 -0
- package/src/telemetry/performance/StubPerformanceClient.ts +0 -16
- package/src/telemetry/server/ServerTelemetryManager.ts +33 -44
- package/src/url/UrlString.ts +3 -12
- package/src/utils/Constants.ts +103 -146
- package/src/utils/FunctionWrappers.ts +28 -29
- package/src/utils/ProtocolUtils.ts +6 -6
- package/src/utils/UrlUtils.ts +2 -15
- package/dist/cache/entities/AccountEntity.mjs +0 -226
- package/dist/cache/entities/AccountEntity.mjs.map +0 -1
- package/dist/request/CommonClientCredentialRequest.d.ts +0 -18
- package/dist/request/CommonClientCredentialRequest.d.ts.map +0 -1
- package/dist/request/CommonDeviceCodeRequest.d.ts +0 -22
- package/dist/request/CommonDeviceCodeRequest.d.ts.map +0 -1
- package/dist/request/CommonOnBehalfOfRequest.d.ts +0 -14
- package/dist/request/CommonOnBehalfOfRequest.d.ts.map +0 -1
- package/dist/request/CommonUsernamePasswordRequest.d.ts +0 -18
- package/dist/request/CommonUsernamePasswordRequest.d.ts.map +0 -1
- package/lib/index-node-C8h2xZEM.js.map +0 -1
- package/lib/types/request/CommonClientCredentialRequest.d.ts +0 -18
- package/lib/types/request/CommonClientCredentialRequest.d.ts.map +0 -1
- package/lib/types/request/CommonDeviceCodeRequest.d.ts +0 -22
- package/lib/types/request/CommonDeviceCodeRequest.d.ts.map +0 -1
- package/lib/types/request/CommonOnBehalfOfRequest.d.ts +0 -14
- package/lib/types/request/CommonOnBehalfOfRequest.d.ts.map +0 -1
- package/lib/types/request/CommonUsernamePasswordRequest.d.ts +0 -18
- package/lib/types/request/CommonUsernamePasswordRequest.d.ts.map +0 -1
- package/src/request/CommonClientCredentialRequest.ts +0 -23
- package/src/request/CommonDeviceCodeRequest.ts +0 -31
- package/src/request/CommonOnBehalfOfRequest.ts +0 -19
- package/src/request/CommonUsernamePasswordRequest.ts +0 -23
|
@@ -3,560 +3,6 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
/**
|
|
7
|
-
* Enumeration of operations that are instrumented by have their performance measured by the PerformanceClient.
|
|
8
|
-
*
|
|
9
|
-
* @export
|
|
10
|
-
* @enum {number}
|
|
11
|
-
*/
|
|
12
|
-
export const PerformanceEvents = {
|
|
13
|
-
/**
|
|
14
|
-
* acquireTokenByCode API (msal-browser and msal-node).
|
|
15
|
-
* Used to acquire tokens by trading an authorization code against the token endpoint.
|
|
16
|
-
*/
|
|
17
|
-
AcquireTokenByCode: "acquireTokenByCode",
|
|
18
|
-
|
|
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
|
-
/**
|
|
26
|
-
* acquireTokenSilent API (msal-browser and msal-node).
|
|
27
|
-
* Used to silently acquire a new access token (from the cache or the network).
|
|
28
|
-
*/
|
|
29
|
-
AcquireTokenSilent: "acquireTokenSilent",
|
|
30
|
-
|
|
31
|
-
/**
|
|
32
|
-
* acquireTokenSilentAsync (msal-browser).
|
|
33
|
-
* Internal API for acquireTokenSilent.
|
|
34
|
-
*/
|
|
35
|
-
AcquireTokenSilentAsync: "acquireTokenSilentAsync",
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
* acquireTokenPopup (msal-browser).
|
|
39
|
-
* Used to acquire a new access token interactively through pop ups
|
|
40
|
-
*/
|
|
41
|
-
AcquireTokenPopup: "acquireTokenPopup",
|
|
42
|
-
|
|
43
|
-
/**
|
|
44
|
-
* acquireTokenPreRedirect (msal-browser).
|
|
45
|
-
* First part of the redirect flow.
|
|
46
|
-
* Used to acquire a new access token interactively through redirects.
|
|
47
|
-
*/
|
|
48
|
-
AcquireTokenPreRedirect: "acquireTokenPreRedirect",
|
|
49
|
-
|
|
50
|
-
/**
|
|
51
|
-
* acquireTokenRedirect (msal-browser).
|
|
52
|
-
* Second part of the redirect flow.
|
|
53
|
-
* Used to acquire a new access token interactively through redirects.
|
|
54
|
-
*/
|
|
55
|
-
AcquireTokenRedirect: "acquireTokenRedirect",
|
|
56
|
-
|
|
57
|
-
/**
|
|
58
|
-
* getPublicKeyThumbprint API in CryptoOpts class (msal-browser).
|
|
59
|
-
* Used to generate a public/private keypair and generate a public key thumbprint for pop requests.
|
|
60
|
-
*/
|
|
61
|
-
CryptoOptsGetPublicKeyThumbprint: "cryptoOptsGetPublicKeyThumbprint",
|
|
62
|
-
|
|
63
|
-
/**
|
|
64
|
-
* signJwt API in CryptoOpts class (msal-browser).
|
|
65
|
-
* Used to signed a pop token.
|
|
66
|
-
*/
|
|
67
|
-
CryptoOptsSignJwt: "cryptoOptsSignJwt",
|
|
68
|
-
|
|
69
|
-
/**
|
|
70
|
-
* acquireToken API in the SilentCacheClient class (msal-browser).
|
|
71
|
-
* Used to read access tokens from the cache.
|
|
72
|
-
*/
|
|
73
|
-
SilentCacheClientAcquireToken: "silentCacheClientAcquireToken",
|
|
74
|
-
|
|
75
|
-
/**
|
|
76
|
-
* acquireToken API in the SilentIframeClient class (msal-browser).
|
|
77
|
-
* Used to acquire a new set of tokens from the authorize endpoint in a hidden iframe.
|
|
78
|
-
*/
|
|
79
|
-
SilentIframeClientAcquireToken: "silentIframeClientAcquireToken",
|
|
80
|
-
AwaitConcurrentIframe: "awaitConcurrentIframe", // Time spent waiting for a concurrent iframe to complete
|
|
81
|
-
|
|
82
|
-
/**
|
|
83
|
-
* acquireToken API in SilentRereshClient (msal-browser).
|
|
84
|
-
* Used to acquire a new set of tokens from the token endpoint using a refresh token.
|
|
85
|
-
*/
|
|
86
|
-
SilentRefreshClientAcquireToken: "silentRefreshClientAcquireToken",
|
|
87
|
-
|
|
88
|
-
/**
|
|
89
|
-
* ssoSilent API (msal-browser).
|
|
90
|
-
* Used to silently acquire an authorization code and set of tokens using a hidden iframe.
|
|
91
|
-
*/
|
|
92
|
-
SsoSilent: "ssoSilent",
|
|
93
|
-
|
|
94
|
-
/**
|
|
95
|
-
* getDiscoveredAuthority API in StandardInteractionClient class (msal-browser).
|
|
96
|
-
* Used to load authority metadata for a request.
|
|
97
|
-
*/
|
|
98
|
-
StandardInteractionClientGetDiscoveredAuthority:
|
|
99
|
-
"standardInteractionClientGetDiscoveredAuthority",
|
|
100
|
-
|
|
101
|
-
/**
|
|
102
|
-
* acquireToken APIs in msal-browser.
|
|
103
|
-
* Used to make an /authorize endpoint call with native brokering enabled.
|
|
104
|
-
*/
|
|
105
|
-
FetchAccountIdWithNativeBroker: "fetchAccountIdWithNativeBroker",
|
|
106
|
-
|
|
107
|
-
/**
|
|
108
|
-
* acquireToken API in NativeInteractionClient class (msal-browser).
|
|
109
|
-
* Used to acquire a token from Native component when native brokering is enabled.
|
|
110
|
-
*/
|
|
111
|
-
NativeInteractionClientAcquireToken: "nativeInteractionClientAcquireToken",
|
|
112
|
-
/**
|
|
113
|
-
* Time spent creating default headers for requests to token endpoint
|
|
114
|
-
*/
|
|
115
|
-
BaseClientCreateTokenRequestHeaders: "baseClientCreateTokenRequestHeaders",
|
|
116
|
-
/**
|
|
117
|
-
* Time spent sending/waiting for the response of a request to the token endpoint
|
|
118
|
-
*/
|
|
119
|
-
NetworkClientSendPostRequestAsync: "networkClientSendPostRequestAsync",
|
|
120
|
-
RefreshTokenClientExecutePostToTokenEndpoint:
|
|
121
|
-
"refreshTokenClientExecutePostToTokenEndpoint",
|
|
122
|
-
AuthorizationCodeClientExecutePostToTokenEndpoint:
|
|
123
|
-
"authorizationCodeClientExecutePostToTokenEndpoint",
|
|
124
|
-
/**
|
|
125
|
-
* Used to measure the time taken for completing embedded-broker handshake (PW-Broker).
|
|
126
|
-
*/
|
|
127
|
-
BrokerHandhshake: "brokerHandshake",
|
|
128
|
-
/**
|
|
129
|
-
* acquireTokenByRefreshToken API in BrokerClientApplication (PW-Broker) .
|
|
130
|
-
*/
|
|
131
|
-
AcquireTokenByRefreshTokenInBroker: "acquireTokenByRefreshTokenInBroker",
|
|
132
|
-
/**
|
|
133
|
-
* Time taken for token acquisition by broker
|
|
134
|
-
*/
|
|
135
|
-
AcquireTokenByBroker: "acquireTokenByBroker",
|
|
136
|
-
|
|
137
|
-
/**
|
|
138
|
-
* Time spent on the network for refresh token acquisition
|
|
139
|
-
*/
|
|
140
|
-
RefreshTokenClientExecuteTokenRequest:
|
|
141
|
-
"refreshTokenClientExecuteTokenRequest",
|
|
142
|
-
|
|
143
|
-
/**
|
|
144
|
-
* Time taken for acquiring refresh token , records RT size
|
|
145
|
-
*/
|
|
146
|
-
RefreshTokenClientAcquireToken: "refreshTokenClientAcquireToken",
|
|
147
|
-
|
|
148
|
-
/**
|
|
149
|
-
* Time taken for acquiring cached refresh token
|
|
150
|
-
*/
|
|
151
|
-
RefreshTokenClientAcquireTokenWithCachedRefreshToken:
|
|
152
|
-
"refreshTokenClientAcquireTokenWithCachedRefreshToken",
|
|
153
|
-
|
|
154
|
-
/**
|
|
155
|
-
* acquireTokenByRefreshToken API in RefreshTokenClient (msal-common).
|
|
156
|
-
*/
|
|
157
|
-
RefreshTokenClientAcquireTokenByRefreshToken:
|
|
158
|
-
"refreshTokenClientAcquireTokenByRefreshToken",
|
|
159
|
-
|
|
160
|
-
/**
|
|
161
|
-
* Helper function to create token request body in RefreshTokenClient (msal-common).
|
|
162
|
-
*/
|
|
163
|
-
RefreshTokenClientCreateTokenRequestBody:
|
|
164
|
-
"refreshTokenClientCreateTokenRequestBody",
|
|
165
|
-
|
|
166
|
-
/**
|
|
167
|
-
* acquireTokenFromCache (msal-browser).
|
|
168
|
-
* Internal API for acquiring token from cache
|
|
169
|
-
*/
|
|
170
|
-
AcquireTokenFromCache: "acquireTokenFromCache",
|
|
171
|
-
SilentFlowClientAcquireCachedToken: "silentFlowClientAcquireCachedToken",
|
|
172
|
-
SilentFlowClientGenerateResultFromCacheRecord:
|
|
173
|
-
"silentFlowClientGenerateResultFromCacheRecord",
|
|
174
|
-
|
|
175
|
-
/**
|
|
176
|
-
* acquireTokenBySilentIframe (msal-browser).
|
|
177
|
-
* Internal API for acquiring token by silent Iframe
|
|
178
|
-
*/
|
|
179
|
-
AcquireTokenBySilentIframe: "acquireTokenBySilentIframe",
|
|
180
|
-
|
|
181
|
-
/**
|
|
182
|
-
* Internal API for initializing base request in BaseInteractionClient (msal-browser)
|
|
183
|
-
*/
|
|
184
|
-
InitializeBaseRequest: "initializeBaseRequest",
|
|
185
|
-
|
|
186
|
-
/**
|
|
187
|
-
* Internal API for initializing silent request in SilentCacheClient (msal-browser)
|
|
188
|
-
*/
|
|
189
|
-
InitializeSilentRequest: "initializeSilentRequest",
|
|
190
|
-
|
|
191
|
-
InitializeClientApplication: "initializeClientApplication",
|
|
192
|
-
|
|
193
|
-
InitializeCache: "initializeCache",
|
|
194
|
-
|
|
195
|
-
/**
|
|
196
|
-
* Helper function in SilentIframeClient class (msal-browser).
|
|
197
|
-
*/
|
|
198
|
-
SilentIframeClientTokenHelper: "silentIframeClientTokenHelper",
|
|
199
|
-
|
|
200
|
-
/**
|
|
201
|
-
* SilentHandler
|
|
202
|
-
*/
|
|
203
|
-
SilentHandlerInitiateAuthRequest: "silentHandlerInitiateAuthRequest",
|
|
204
|
-
SilentHandlerMonitorIframeForHash: "silentHandlerMonitorIframeForHash",
|
|
205
|
-
SilentHandlerLoadFrame: "silentHandlerLoadFrame",
|
|
206
|
-
SilentHandlerLoadFrameSync: "silentHandlerLoadFrameSync",
|
|
207
|
-
|
|
208
|
-
/**
|
|
209
|
-
* Helper functions in StandardInteractionClient class (msal-browser)
|
|
210
|
-
*/
|
|
211
|
-
StandardInteractionClientCreateAuthCodeClient:
|
|
212
|
-
"standardInteractionClientCreateAuthCodeClient",
|
|
213
|
-
StandardInteractionClientGetClientConfiguration:
|
|
214
|
-
"standardInteractionClientGetClientConfiguration",
|
|
215
|
-
StandardInteractionClientInitializeAuthorizationRequest:
|
|
216
|
-
"standardInteractionClientInitializeAuthorizationRequest",
|
|
217
|
-
|
|
218
|
-
/**
|
|
219
|
-
* getAuthCodeUrl API (msal-browser and msal-node).
|
|
220
|
-
*/
|
|
221
|
-
GetAuthCodeUrl: "getAuthCodeUrl",
|
|
222
|
-
GetStandardParams: "getStandardParams",
|
|
223
|
-
|
|
224
|
-
/**
|
|
225
|
-
* Functions from InteractionHandler (msal-browser)
|
|
226
|
-
*/
|
|
227
|
-
HandleCodeResponseFromServer: "handleCodeResponseFromServer",
|
|
228
|
-
HandleCodeResponse: "handleCodeResponse",
|
|
229
|
-
HandleResponseEar: "handleResponseEar",
|
|
230
|
-
HandleResponsePlatformBroker: "handleResponsePlatformBroker",
|
|
231
|
-
HandleResponseCode: "handleResponseCode",
|
|
232
|
-
UpdateTokenEndpointAuthority: "updateTokenEndpointAuthority",
|
|
233
|
-
|
|
234
|
-
/**
|
|
235
|
-
* APIs in Authorization Code Client (msal-common)
|
|
236
|
-
*/
|
|
237
|
-
AuthClientAcquireToken: "authClientAcquireToken",
|
|
238
|
-
AuthClientExecuteTokenRequest: "authClientExecuteTokenRequest",
|
|
239
|
-
AuthClientCreateTokenRequestBody: "authClientCreateTokenRequestBody",
|
|
240
|
-
|
|
241
|
-
/**
|
|
242
|
-
* Generate functions in PopTokenGenerator (msal-common)
|
|
243
|
-
*/
|
|
244
|
-
PopTokenGenerateCnf: "popTokenGenerateCnf",
|
|
245
|
-
PopTokenGenerateKid: "popTokenGenerateKid",
|
|
246
|
-
|
|
247
|
-
/**
|
|
248
|
-
* handleServerTokenResponse API in ResponseHandler (msal-common)
|
|
249
|
-
*/
|
|
250
|
-
HandleServerTokenResponse: "handleServerTokenResponse",
|
|
251
|
-
DeserializeResponse: "deserializeResponse",
|
|
252
|
-
|
|
253
|
-
/**
|
|
254
|
-
* Authority functions
|
|
255
|
-
*/
|
|
256
|
-
AuthorityFactoryCreateDiscoveredInstance:
|
|
257
|
-
"authorityFactoryCreateDiscoveredInstance",
|
|
258
|
-
AuthorityResolveEndpointsAsync: "authorityResolveEndpointsAsync",
|
|
259
|
-
AuthorityResolveEndpointsFromLocalSources:
|
|
260
|
-
"authorityResolveEndpointsFromLocalSources",
|
|
261
|
-
AuthorityGetCloudDiscoveryMetadataFromNetwork:
|
|
262
|
-
"authorityGetCloudDiscoveryMetadataFromNetwork",
|
|
263
|
-
AuthorityUpdateCloudDiscoveryMetadata:
|
|
264
|
-
"authorityUpdateCloudDiscoveryMetadata",
|
|
265
|
-
AuthorityGetEndpointMetadataFromNetwork:
|
|
266
|
-
"authorityGetEndpointMetadataFromNetwork",
|
|
267
|
-
AuthorityUpdateEndpointMetadata: "authorityUpdateEndpointMetadata",
|
|
268
|
-
AuthorityUpdateMetadataWithRegionalInformation:
|
|
269
|
-
"authorityUpdateMetadataWithRegionalInformation",
|
|
270
|
-
|
|
271
|
-
/**
|
|
272
|
-
* Region Discovery functions
|
|
273
|
-
*/
|
|
274
|
-
RegionDiscoveryDetectRegion: "regionDiscoveryDetectRegion",
|
|
275
|
-
RegionDiscoveryGetRegionFromIMDS: "regionDiscoveryGetRegionFromIMDS",
|
|
276
|
-
RegionDiscoveryGetCurrentVersion: "regionDiscoveryGetCurrentVersion",
|
|
277
|
-
|
|
278
|
-
AcquireTokenByCodeAsync: "acquireTokenByCodeAsync",
|
|
279
|
-
|
|
280
|
-
GetEndpointMetadataFromNetwork: "getEndpointMetadataFromNetwork",
|
|
281
|
-
GetCloudDiscoveryMetadataFromNetworkMeasurement:
|
|
282
|
-
"getCloudDiscoveryMetadataFromNetworkMeasurement",
|
|
283
|
-
|
|
284
|
-
HandleRedirectPromiseMeasurement: "handleRedirectPromise",
|
|
285
|
-
HandleNativeRedirectPromiseMeasurement: "handleNativeRedirectPromise",
|
|
286
|
-
|
|
287
|
-
UpdateCloudDiscoveryMetadataMeasurement:
|
|
288
|
-
"updateCloudDiscoveryMetadataMeasurement",
|
|
289
|
-
|
|
290
|
-
UsernamePasswordClientAcquireToken: "usernamePasswordClientAcquireToken",
|
|
291
|
-
|
|
292
|
-
NativeMessageHandlerHandshake: "nativeMessageHandlerHandshake",
|
|
293
|
-
|
|
294
|
-
NativeGenerateAuthResult: "nativeGenerateAuthResult",
|
|
295
|
-
|
|
296
|
-
RemoveHiddenIframe: "removeHiddenIframe",
|
|
297
|
-
|
|
298
|
-
/**
|
|
299
|
-
* Cache operations
|
|
300
|
-
*/
|
|
301
|
-
ClearTokensAndKeysWithClaims: "clearTokensAndKeysWithClaims",
|
|
302
|
-
CacheManagerGetRefreshToken: "cacheManagerGetRefreshToken",
|
|
303
|
-
ImportExistingCache: "importExistingCache",
|
|
304
|
-
SetUserData: "setUserData",
|
|
305
|
-
LocalStorageUpdated: "localStorageUpdated",
|
|
306
|
-
|
|
307
|
-
/**
|
|
308
|
-
* Crypto Operations
|
|
309
|
-
*/
|
|
310
|
-
GeneratePkceCodes: "generatePkceCodes",
|
|
311
|
-
GenerateCodeVerifier: "generateCodeVerifier",
|
|
312
|
-
GenerateCodeChallengeFromVerifier: "generateCodeChallengeFromVerifier",
|
|
313
|
-
Sha256Digest: "sha256Digest",
|
|
314
|
-
GetRandomValues: "getRandomValues",
|
|
315
|
-
GenerateHKDF: "generateHKDF",
|
|
316
|
-
GenerateBaseKey: "generateBaseKey",
|
|
317
|
-
Base64Decode: "base64Decode",
|
|
318
|
-
UrlEncodeArr: "urlEncodeArr",
|
|
319
|
-
Encrypt: "encrypt",
|
|
320
|
-
Decrypt: "decrypt",
|
|
321
|
-
GenerateEarKey: "generateEarKey",
|
|
322
|
-
DecryptEarResponse: "decryptEarResponse",
|
|
323
|
-
} as const;
|
|
324
|
-
export type PerformanceEvents =
|
|
325
|
-
(typeof PerformanceEvents)[keyof typeof PerformanceEvents];
|
|
326
|
-
|
|
327
|
-
export const PerformanceEventAbbreviations: ReadonlyMap<string, string> =
|
|
328
|
-
new Map([
|
|
329
|
-
[PerformanceEvents.AcquireTokenByCode, "ATByCode"],
|
|
330
|
-
[PerformanceEvents.AcquireTokenByRefreshToken, "ATByRT"],
|
|
331
|
-
[PerformanceEvents.AcquireTokenSilent, "ATS"],
|
|
332
|
-
[PerformanceEvents.AcquireTokenSilentAsync, "ATSAsync"],
|
|
333
|
-
[PerformanceEvents.AcquireTokenPopup, "ATPopup"],
|
|
334
|
-
[PerformanceEvents.AcquireTokenRedirect, "ATRedirect"],
|
|
335
|
-
[
|
|
336
|
-
PerformanceEvents.CryptoOptsGetPublicKeyThumbprint,
|
|
337
|
-
"CryptoGetPKThumb",
|
|
338
|
-
],
|
|
339
|
-
[PerformanceEvents.CryptoOptsSignJwt, "CryptoSignJwt"],
|
|
340
|
-
[PerformanceEvents.SilentCacheClientAcquireToken, "SltCacheClientAT"],
|
|
341
|
-
[PerformanceEvents.SilentIframeClientAcquireToken, "SltIframeClientAT"],
|
|
342
|
-
[PerformanceEvents.SilentRefreshClientAcquireToken, "SltRClientAT"],
|
|
343
|
-
[PerformanceEvents.SsoSilent, "SsoSlt"],
|
|
344
|
-
[
|
|
345
|
-
PerformanceEvents.StandardInteractionClientGetDiscoveredAuthority,
|
|
346
|
-
"StdIntClientGetDiscAuth",
|
|
347
|
-
],
|
|
348
|
-
[
|
|
349
|
-
PerformanceEvents.FetchAccountIdWithNativeBroker,
|
|
350
|
-
"FetchAccIdWithNtvBroker",
|
|
351
|
-
],
|
|
352
|
-
[
|
|
353
|
-
PerformanceEvents.NativeInteractionClientAcquireToken,
|
|
354
|
-
"NtvIntClientAT",
|
|
355
|
-
],
|
|
356
|
-
[
|
|
357
|
-
PerformanceEvents.BaseClientCreateTokenRequestHeaders,
|
|
358
|
-
"BaseClientCreateTReqHead",
|
|
359
|
-
],
|
|
360
|
-
[
|
|
361
|
-
PerformanceEvents.NetworkClientSendPostRequestAsync,
|
|
362
|
-
"NetClientSendPost",
|
|
363
|
-
],
|
|
364
|
-
[
|
|
365
|
-
PerformanceEvents.RefreshTokenClientExecutePostToTokenEndpoint,
|
|
366
|
-
"RTClientExecPost",
|
|
367
|
-
],
|
|
368
|
-
[
|
|
369
|
-
PerformanceEvents.AuthorizationCodeClientExecutePostToTokenEndpoint,
|
|
370
|
-
"AuthCodeClientExecPost",
|
|
371
|
-
],
|
|
372
|
-
[PerformanceEvents.BrokerHandhshake, "BrokerHandshake"],
|
|
373
|
-
[
|
|
374
|
-
PerformanceEvents.AcquireTokenByRefreshTokenInBroker,
|
|
375
|
-
"ATByRTInBroker",
|
|
376
|
-
],
|
|
377
|
-
[PerformanceEvents.AcquireTokenByBroker, "ATByBroker"],
|
|
378
|
-
[
|
|
379
|
-
PerformanceEvents.RefreshTokenClientExecuteTokenRequest,
|
|
380
|
-
"RTClientExecTReq",
|
|
381
|
-
],
|
|
382
|
-
[PerformanceEvents.RefreshTokenClientAcquireToken, "RTClientAT"],
|
|
383
|
-
[
|
|
384
|
-
PerformanceEvents.RefreshTokenClientAcquireTokenWithCachedRefreshToken,
|
|
385
|
-
"RTClientATWithCachedRT",
|
|
386
|
-
],
|
|
387
|
-
[
|
|
388
|
-
PerformanceEvents.RefreshTokenClientAcquireTokenByRefreshToken,
|
|
389
|
-
"RTClientATByRT",
|
|
390
|
-
],
|
|
391
|
-
[
|
|
392
|
-
PerformanceEvents.RefreshTokenClientCreateTokenRequestBody,
|
|
393
|
-
"RTClientCreateTReqBody",
|
|
394
|
-
],
|
|
395
|
-
[PerformanceEvents.AcquireTokenFromCache, "ATFromCache"],
|
|
396
|
-
[
|
|
397
|
-
PerformanceEvents.SilentFlowClientAcquireCachedToken,
|
|
398
|
-
"SltFlowClientATCached",
|
|
399
|
-
],
|
|
400
|
-
[
|
|
401
|
-
PerformanceEvents.SilentFlowClientGenerateResultFromCacheRecord,
|
|
402
|
-
"SltFlowClientGenResFromCache",
|
|
403
|
-
],
|
|
404
|
-
[PerformanceEvents.AcquireTokenBySilentIframe, "ATBySltIframe"],
|
|
405
|
-
[PerformanceEvents.InitializeBaseRequest, "InitBaseReq"],
|
|
406
|
-
[PerformanceEvents.InitializeSilentRequest, "InitSltReq"],
|
|
407
|
-
[
|
|
408
|
-
PerformanceEvents.InitializeClientApplication,
|
|
409
|
-
"InitClientApplication",
|
|
410
|
-
],
|
|
411
|
-
[PerformanceEvents.InitializeCache, "InitCache"],
|
|
412
|
-
[PerformanceEvents.ImportExistingCache, "importCache"],
|
|
413
|
-
[PerformanceEvents.SetUserData, "setUserData"],
|
|
414
|
-
[PerformanceEvents.LocalStorageUpdated, "localStorageUpdated"],
|
|
415
|
-
[PerformanceEvents.SilentIframeClientTokenHelper, "SIClientTHelper"],
|
|
416
|
-
[
|
|
417
|
-
PerformanceEvents.SilentHandlerInitiateAuthRequest,
|
|
418
|
-
"SHandlerInitAuthReq",
|
|
419
|
-
],
|
|
420
|
-
[
|
|
421
|
-
PerformanceEvents.SilentHandlerMonitorIframeForHash,
|
|
422
|
-
"SltHandlerMonitorIframeForHash",
|
|
423
|
-
],
|
|
424
|
-
[PerformanceEvents.SilentHandlerLoadFrame, "SHandlerLoadFrame"],
|
|
425
|
-
[PerformanceEvents.SilentHandlerLoadFrameSync, "SHandlerLoadFrameSync"],
|
|
426
|
-
|
|
427
|
-
[
|
|
428
|
-
PerformanceEvents.StandardInteractionClientCreateAuthCodeClient,
|
|
429
|
-
"StdIntClientCreateAuthCodeClient",
|
|
430
|
-
],
|
|
431
|
-
[
|
|
432
|
-
PerformanceEvents.StandardInteractionClientGetClientConfiguration,
|
|
433
|
-
"StdIntClientGetClientConf",
|
|
434
|
-
],
|
|
435
|
-
[
|
|
436
|
-
PerformanceEvents.StandardInteractionClientInitializeAuthorizationRequest,
|
|
437
|
-
"StdIntClientInitAuthReq",
|
|
438
|
-
],
|
|
439
|
-
|
|
440
|
-
[PerformanceEvents.GetAuthCodeUrl, "GetAuthCodeUrl"],
|
|
441
|
-
|
|
442
|
-
[
|
|
443
|
-
PerformanceEvents.HandleCodeResponseFromServer,
|
|
444
|
-
"HandleCodeResFromServer",
|
|
445
|
-
],
|
|
446
|
-
[PerformanceEvents.HandleCodeResponse, "HandleCodeResp"],
|
|
447
|
-
[PerformanceEvents.HandleResponseEar, "HandleRespEar"],
|
|
448
|
-
[PerformanceEvents.HandleResponseCode, "HandleRespCode"],
|
|
449
|
-
[
|
|
450
|
-
PerformanceEvents.HandleResponsePlatformBroker,
|
|
451
|
-
"HandleRespPlatBroker",
|
|
452
|
-
],
|
|
453
|
-
[PerformanceEvents.UpdateTokenEndpointAuthority, "UpdTEndpointAuth"],
|
|
454
|
-
|
|
455
|
-
[PerformanceEvents.AuthClientAcquireToken, "AuthClientAT"],
|
|
456
|
-
[PerformanceEvents.AuthClientExecuteTokenRequest, "AuthClientExecTReq"],
|
|
457
|
-
[
|
|
458
|
-
PerformanceEvents.AuthClientCreateTokenRequestBody,
|
|
459
|
-
"AuthClientCreateTReqBody",
|
|
460
|
-
],
|
|
461
|
-
[PerformanceEvents.PopTokenGenerateCnf, "PopTGenCnf"],
|
|
462
|
-
[PerformanceEvents.PopTokenGenerateKid, "PopTGenKid"],
|
|
463
|
-
[PerformanceEvents.HandleServerTokenResponse, "HandleServerTRes"],
|
|
464
|
-
[PerformanceEvents.DeserializeResponse, "DeserializeRes"],
|
|
465
|
-
[
|
|
466
|
-
PerformanceEvents.AuthorityFactoryCreateDiscoveredInstance,
|
|
467
|
-
"AuthFactCreateDiscInst",
|
|
468
|
-
],
|
|
469
|
-
[
|
|
470
|
-
PerformanceEvents.AuthorityResolveEndpointsAsync,
|
|
471
|
-
"AuthResolveEndpointsAsync",
|
|
472
|
-
],
|
|
473
|
-
[
|
|
474
|
-
PerformanceEvents.AuthorityResolveEndpointsFromLocalSources,
|
|
475
|
-
"AuthResolveEndpointsFromLocal",
|
|
476
|
-
],
|
|
477
|
-
[
|
|
478
|
-
PerformanceEvents.AuthorityGetCloudDiscoveryMetadataFromNetwork,
|
|
479
|
-
"AuthGetCDMetaFromNet",
|
|
480
|
-
],
|
|
481
|
-
[
|
|
482
|
-
PerformanceEvents.AuthorityUpdateCloudDiscoveryMetadata,
|
|
483
|
-
"AuthUpdCDMeta",
|
|
484
|
-
],
|
|
485
|
-
[
|
|
486
|
-
PerformanceEvents.AuthorityGetEndpointMetadataFromNetwork,
|
|
487
|
-
"AuthUpdCDMetaFromNet",
|
|
488
|
-
],
|
|
489
|
-
[
|
|
490
|
-
PerformanceEvents.AuthorityUpdateEndpointMetadata,
|
|
491
|
-
"AuthUpdEndpointMeta",
|
|
492
|
-
],
|
|
493
|
-
[
|
|
494
|
-
PerformanceEvents.AuthorityUpdateMetadataWithRegionalInformation,
|
|
495
|
-
"AuthUpdMetaWithRegInfo",
|
|
496
|
-
],
|
|
497
|
-
[PerformanceEvents.RegionDiscoveryDetectRegion, "RegDiscDetectReg"],
|
|
498
|
-
[
|
|
499
|
-
PerformanceEvents.RegionDiscoveryGetRegionFromIMDS,
|
|
500
|
-
"RegDiscGetRegFromIMDS",
|
|
501
|
-
],
|
|
502
|
-
[
|
|
503
|
-
PerformanceEvents.RegionDiscoveryGetCurrentVersion,
|
|
504
|
-
"RegDiscGetCurrentVer",
|
|
505
|
-
],
|
|
506
|
-
[PerformanceEvents.AcquireTokenByCodeAsync, "ATByCodeAsync"],
|
|
507
|
-
[
|
|
508
|
-
PerformanceEvents.GetEndpointMetadataFromNetwork,
|
|
509
|
-
"GetEndpointMetaFromNet",
|
|
510
|
-
],
|
|
511
|
-
[
|
|
512
|
-
PerformanceEvents.GetCloudDiscoveryMetadataFromNetworkMeasurement,
|
|
513
|
-
"GetCDMetaFromNet",
|
|
514
|
-
],
|
|
515
|
-
[
|
|
516
|
-
PerformanceEvents.HandleRedirectPromiseMeasurement,
|
|
517
|
-
"HandleRedirectPromise",
|
|
518
|
-
],
|
|
519
|
-
[
|
|
520
|
-
PerformanceEvents.HandleNativeRedirectPromiseMeasurement,
|
|
521
|
-
"HandleNtvRedirectPromise",
|
|
522
|
-
],
|
|
523
|
-
[
|
|
524
|
-
PerformanceEvents.UpdateCloudDiscoveryMetadataMeasurement,
|
|
525
|
-
"UpdateCDMeta",
|
|
526
|
-
],
|
|
527
|
-
[
|
|
528
|
-
PerformanceEvents.UsernamePasswordClientAcquireToken,
|
|
529
|
-
"UserPassClientAT",
|
|
530
|
-
],
|
|
531
|
-
[
|
|
532
|
-
PerformanceEvents.NativeMessageHandlerHandshake,
|
|
533
|
-
"NtvMsgHandlerHandshake",
|
|
534
|
-
],
|
|
535
|
-
[PerformanceEvents.NativeGenerateAuthResult, "NtvGenAuthRes"],
|
|
536
|
-
[PerformanceEvents.RemoveHiddenIframe, "RemoveHiddenIframe"],
|
|
537
|
-
[
|
|
538
|
-
PerformanceEvents.ClearTokensAndKeysWithClaims,
|
|
539
|
-
"ClearTAndKeysWithClaims",
|
|
540
|
-
],
|
|
541
|
-
[PerformanceEvents.CacheManagerGetRefreshToken, "CacheManagerGetRT"],
|
|
542
|
-
[PerformanceEvents.GeneratePkceCodes, "GenPkceCodes"],
|
|
543
|
-
[PerformanceEvents.GenerateCodeVerifier, "GenCodeVerifier"],
|
|
544
|
-
[
|
|
545
|
-
PerformanceEvents.GenerateCodeChallengeFromVerifier,
|
|
546
|
-
"GenCodeChallengeFromVerifier",
|
|
547
|
-
],
|
|
548
|
-
[PerformanceEvents.Sha256Digest, "Sha256Digest"],
|
|
549
|
-
[PerformanceEvents.GetRandomValues, "GetRandomValues"],
|
|
550
|
-
[PerformanceEvents.GenerateHKDF, "genHKDF"],
|
|
551
|
-
[PerformanceEvents.GenerateBaseKey, "genBaseKey"],
|
|
552
|
-
[PerformanceEvents.Base64Decode, "b64Decode"],
|
|
553
|
-
[PerformanceEvents.UrlEncodeArr, "urlEncArr"],
|
|
554
|
-
[PerformanceEvents.Encrypt, "encrypt"],
|
|
555
|
-
[PerformanceEvents.Decrypt, "decrypt"],
|
|
556
|
-
[PerformanceEvents.GenerateEarKey, "genEarKey"],
|
|
557
|
-
[PerformanceEvents.DecryptEarResponse, "decryptEarResp"],
|
|
558
|
-
]);
|
|
559
|
-
|
|
560
6
|
/**
|
|
561
7
|
* State of the performance event.
|
|
562
8
|
*
|
|
@@ -715,14 +161,6 @@ export type PerformanceEvent = {
|
|
|
715
161
|
*/
|
|
716
162
|
isNativeBroker?: boolean;
|
|
717
163
|
|
|
718
|
-
/**
|
|
719
|
-
* Platform-specific fields, when calling STS and/or broker for token requests
|
|
720
|
-
*/
|
|
721
|
-
isPlatformAuthorizeRequest?: boolean;
|
|
722
|
-
isPlatformBrokerRequest?: boolean;
|
|
723
|
-
brokerErrorName?: string;
|
|
724
|
-
brokerErrorCode?: string;
|
|
725
|
-
|
|
726
164
|
/**
|
|
727
165
|
* Request ID returned from the response
|
|
728
166
|
*
|
|
@@ -743,13 +181,6 @@ export type PerformanceEvent = {
|
|
|
743
181
|
*/
|
|
744
182
|
cacheOutcome?: number;
|
|
745
183
|
|
|
746
|
-
/**
|
|
747
|
-
* Amount of time spent in the JS queue in milliseconds.
|
|
748
|
-
*
|
|
749
|
-
* @type {?number}
|
|
750
|
-
*/
|
|
751
|
-
queuedTimeMs?: number;
|
|
752
|
-
|
|
753
184
|
/**
|
|
754
185
|
* Sub-measurements for internal use. To be deleted before flushing.
|
|
755
186
|
*/
|
|
@@ -762,18 +193,6 @@ export type PerformanceEvent = {
|
|
|
762
193
|
* CorrelationId of the in progress iframe request that was awaited
|
|
763
194
|
*/
|
|
764
195
|
awaitIframeCorrelationId?: string;
|
|
765
|
-
/**
|
|
766
|
-
* Amount of times queued in the JS event queue.
|
|
767
|
-
*
|
|
768
|
-
* @type {?number}
|
|
769
|
-
*/
|
|
770
|
-
queuedCount?: number;
|
|
771
|
-
/**
|
|
772
|
-
* Amount of manually completed queue events.
|
|
773
|
-
*
|
|
774
|
-
* @type {?number}
|
|
775
|
-
*/
|
|
776
|
-
queuedManuallyCompletedCount?: number;
|
|
777
196
|
|
|
778
197
|
/**
|
|
779
198
|
* Size of the id token
|
|
@@ -933,7 +352,6 @@ export const IntFields: ReadonlySet<string> = new Set([
|
|
|
933
352
|
"matsSilentStatus",
|
|
934
353
|
"matsHttpStatus",
|
|
935
354
|
"refreshTokenSize",
|
|
936
|
-
"queuedTimeMs",
|
|
937
355
|
"startTimeMs",
|
|
938
356
|
"status",
|
|
939
357
|
"multiMatchedAT",
|