@azure/msal-common 14.14.2 → 14.15.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/browser/README.md +1 -0
- package/browser/package.json +5 -0
- package/dist/account/AccountInfo.d.ts +1 -1
- package/dist/account/AccountInfo.d.ts.map +1 -1
- package/dist/account/AccountInfo.mjs +1 -1
- package/dist/account/AuthToken.d.ts +1 -1
- package/dist/account/AuthToken.d.ts.map +1 -1
- package/dist/account/AuthToken.mjs +1 -1
- package/dist/account/CcsCredential.mjs +1 -1
- package/dist/account/ClientInfo.mjs +1 -1
- package/dist/account/TokenClaims.mjs +1 -1
- package/dist/authority/Authority.d.ts +12 -12
- package/dist/authority/Authority.d.ts.map +1 -1
- package/dist/authority/Authority.mjs +1 -1
- package/dist/authority/AuthorityFactory.d.ts +6 -6
- package/dist/authority/AuthorityFactory.d.ts.map +1 -1
- package/dist/authority/AuthorityFactory.mjs +1 -1
- package/dist/authority/AuthorityMetadata.d.ts +6 -6
- package/dist/authority/AuthorityMetadata.d.ts.map +1 -1
- package/dist/authority/AuthorityMetadata.mjs +1 -1
- package/dist/authority/AuthorityOptions.d.ts +4 -4
- package/dist/authority/AuthorityOptions.d.ts.map +1 -1
- package/dist/authority/AuthorityOptions.mjs +1 -1
- package/dist/authority/AuthorityType.mjs +1 -1
- package/dist/authority/AzureRegionConfiguration.d.ts +1 -1
- package/dist/authority/AzureRegionConfiguration.d.ts.map +1 -1
- package/dist/authority/CloudInstanceDiscoveryErrorResponse.mjs +1 -1
- package/dist/authority/CloudInstanceDiscoveryResponse.d.ts +1 -1
- package/dist/authority/CloudInstanceDiscoveryResponse.d.ts.map +1 -1
- package/dist/authority/CloudInstanceDiscoveryResponse.mjs +1 -1
- package/dist/authority/OIDCOptions.d.ts +1 -1
- 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/RegionDiscovery.d.ts +5 -5
- package/dist/authority/RegionDiscovery.d.ts.map +1 -1
- package/dist/authority/RegionDiscovery.mjs +1 -1
- package/dist/authority/RegionDiscoveryMetadata.d.ts +1 -1
- package/dist/authority/RegionDiscoveryMetadata.d.ts.map +1 -1
- package/dist/broker/nativeBroker/INativeBrokerPlugin.d.ts +6 -6
- package/dist/broker/nativeBroker/INativeBrokerPlugin.d.ts.map +1 -1
- package/dist/cache/CacheManager.d.ts +18 -18
- package/dist/cache/CacheManager.d.ts.map +1 -1
- package/dist/cache/CacheManager.mjs +1 -1
- package/dist/cache/entities/AccessTokenEntity.d.ts +2 -2
- package/dist/cache/entities/AccessTokenEntity.d.ts.map +1 -1
- package/dist/cache/entities/AccountEntity.d.ts +6 -6
- package/dist/cache/entities/AccountEntity.d.ts.map +1 -1
- package/dist/cache/entities/AccountEntity.mjs +1 -1
- package/dist/cache/entities/CacheRecord.d.ts +5 -5
- package/dist/cache/entities/CacheRecord.d.ts.map +1 -1
- package/dist/cache/entities/CredentialEntity.d.ts +1 -1
- package/dist/cache/entities/CredentialEntity.d.ts.map +1 -1
- package/dist/cache/entities/IdTokenEntity.d.ts +1 -1
- package/dist/cache/entities/IdTokenEntity.d.ts.map +1 -1
- package/dist/cache/entities/RefreshTokenEntity.d.ts +1 -1
- package/dist/cache/entities/RefreshTokenEntity.d.ts.map +1 -1
- package/dist/cache/interface/ICacheManager.d.ts +12 -12
- package/dist/cache/interface/ICacheManager.d.ts.map +1 -1
- package/dist/cache/interface/ICachePlugin.d.ts +1 -1
- package/dist/cache/interface/ICachePlugin.d.ts.map +1 -1
- package/dist/cache/persistence/TokenCacheContext.d.ts +1 -1
- package/dist/cache/persistence/TokenCacheContext.d.ts.map +1 -1
- package/dist/cache/persistence/TokenCacheContext.mjs +1 -1
- package/dist/cache/utils/CacheHelpers.d.ts +9 -9
- package/dist/cache/utils/CacheHelpers.d.ts.map +1 -1
- package/dist/cache/utils/CacheHelpers.mjs +1 -1
- package/dist/cache/utils/CacheTypes.d.ts +11 -11
- package/dist/cache/utils/CacheTypes.d.ts.map +1 -1
- package/dist/client/AuthorizationCodeClient.d.ts +10 -9
- package/dist/client/AuthorizationCodeClient.d.ts.map +1 -1
- package/dist/client/AuthorizationCodeClient.mjs +13 -5
- package/dist/client/AuthorizationCodeClient.mjs.map +1 -1
- package/dist/client/BaseClient.d.ts +13 -13
- package/dist/client/BaseClient.d.ts.map +1 -1
- package/dist/client/BaseClient.mjs +1 -1
- package/dist/client/RefreshTokenClient.d.ts +6 -6
- package/dist/client/RefreshTokenClient.d.ts.map +1 -1
- package/dist/client/RefreshTokenClient.mjs +1 -1
- package/dist/client/SilentFlowClient.d.ts +6 -6
- package/dist/client/SilentFlowClient.d.ts.map +1 -1
- package/dist/client/SilentFlowClient.mjs +1 -1
- package/dist/config/ClientConfiguration.d.ts +13 -11
- package/dist/config/ClientConfiguration.d.ts.map +1 -1
- package/dist/config/ClientConfiguration.mjs +2 -1
- package/dist/config/ClientConfiguration.mjs.map +1 -1
- package/dist/constants/AADServerParamKeys.mjs +1 -1
- package/dist/crypto/ICrypto.d.ts +2 -2
- package/dist/crypto/ICrypto.d.ts.map +1 -1
- package/dist/crypto/ICrypto.mjs +1 -1
- package/dist/crypto/JoseHeader.d.ts +1 -1
- package/dist/crypto/JoseHeader.d.ts.map +1 -1
- package/dist/crypto/JoseHeader.mjs +1 -1
- package/dist/crypto/PopTokenGenerator.d.ts +3 -3
- package/dist/crypto/PopTokenGenerator.d.ts.map +1 -1
- package/dist/crypto/PopTokenGenerator.mjs +1 -1
- package/dist/crypto/SignedHttpRequest.d.ts +1 -1
- package/dist/crypto/SignedHttpRequest.d.ts.map +1 -1
- package/dist/error/AuthError.d.ts +1 -1
- package/dist/error/AuthError.d.ts.map +1 -1
- package/dist/error/AuthError.mjs +1 -1
- package/dist/error/AuthErrorCodes.mjs +1 -1
- package/dist/error/CacheError.d.ts +1 -1
- package/dist/error/CacheError.d.ts.map +1 -1
- package/dist/error/CacheError.mjs +1 -1
- package/dist/error/CacheErrorCodes.mjs +1 -1
- package/dist/error/ClientAuthError.d.ts +2 -2
- package/dist/error/ClientAuthError.d.ts.map +1 -1
- package/dist/error/ClientAuthError.mjs +1 -1
- package/dist/error/ClientAuthErrorCodes.mjs +1 -1
- package/dist/error/ClientConfigurationError.d.ts +2 -2
- package/dist/error/ClientConfigurationError.d.ts.map +1 -1
- package/dist/error/ClientConfigurationError.mjs +1 -1
- package/dist/error/ClientConfigurationErrorCodes.mjs +1 -1
- package/dist/error/InteractionRequiredAuthError.d.ts +2 -2
- package/dist/error/InteractionRequiredAuthError.d.ts.map +1 -1
- package/dist/error/InteractionRequiredAuthError.mjs +1 -1
- package/dist/error/InteractionRequiredAuthErrorCodes.mjs +1 -1
- package/dist/error/JoseHeaderError.d.ts +2 -2
- package/dist/error/JoseHeaderError.d.ts.map +1 -1
- package/dist/error/JoseHeaderError.mjs +1 -1
- package/dist/error/JoseHeaderErrorCodes.mjs +1 -1
- package/dist/error/ServerError.d.ts +1 -1
- package/dist/error/ServerError.d.ts.map +1 -1
- package/dist/error/ServerError.mjs +1 -1
- package/dist/exports-browser-only.d.ts +10 -0
- package/dist/exports-browser-only.d.ts.map +1 -0
- package/dist/exports-common.d.ts +80 -0
- package/dist/exports-common.d.ts.map +1 -0
- package/dist/exports-node-only.d.ts +18 -0
- package/dist/exports-node-only.d.ts.map +1 -0
- package/dist/index-browser.d.ts +7 -0
- package/dist/index-browser.d.ts.map +1 -0
- package/dist/index-browser.mjs +67 -0
- package/dist/index-browser.mjs.map +1 -0
- package/dist/index-node.d.ts +7 -0
- package/dist/index-node.d.ts.map +1 -0
- package/dist/index-node.mjs +66 -0
- package/dist/index-node.mjs.map +1 -0
- package/dist/index.d.ts +7 -103
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +30 -30
- package/dist/logger/Logger.d.ts +1 -1
- package/dist/logger/Logger.d.ts.map +1 -1
- package/dist/logger/Logger.mjs +1 -1
- package/dist/network/INetworkModule.d.ts +1 -1
- package/dist/network/INetworkModule.d.ts.map +1 -1
- package/dist/network/INetworkModule.mjs +1 -1
- package/dist/network/NetworkManager.d.ts +4 -4
- package/dist/network/NetworkManager.d.ts.map +1 -1
- package/dist/network/NetworkManager.mjs +1 -1
- package/dist/network/RequestThumbprint.d.ts +2 -2
- package/dist/network/RequestThumbprint.d.ts.map +1 -1
- package/dist/network/ThrottlingUtils.d.ts +5 -5
- package/dist/network/ThrottlingUtils.d.ts.map +1 -1
- package/dist/network/ThrottlingUtils.mjs +1 -1
- package/dist/packageMetadata.d.ts +1 -1
- package/dist/packageMetadata.mjs +2 -2
- package/dist/request/AuthenticationHeaderParser.mjs +1 -1
- package/dist/request/BaseAuthRequest.d.ts +5 -5
- package/dist/request/BaseAuthRequest.d.ts.map +1 -1
- package/dist/request/CommonAuthorizationCodeRequest.d.ts +3 -3
- package/dist/request/CommonAuthorizationCodeRequest.d.ts.map +1 -1
- package/dist/request/CommonAuthorizationUrlRequest.d.ts +4 -4
- package/dist/request/CommonAuthorizationUrlRequest.d.ts.map +1 -1
- package/dist/request/CommonClientCredentialRequest.d.ts +3 -3
- package/dist/request/CommonClientCredentialRequest.d.ts.map +1 -1
- package/dist/request/CommonDeviceCodeRequest.d.ts +3 -3
- package/dist/request/CommonDeviceCodeRequest.d.ts.map +1 -1
- package/dist/request/CommonEndSessionRequest.d.ts +2 -2
- package/dist/request/CommonEndSessionRequest.d.ts.map +1 -1
- package/dist/request/CommonOnBehalfOfRequest.d.ts +1 -1
- package/dist/request/CommonOnBehalfOfRequest.d.ts.map +1 -1
- package/dist/request/CommonRefreshTokenRequest.d.ts +3 -3
- package/dist/request/CommonRefreshTokenRequest.d.ts.map +1 -1
- package/dist/request/CommonSilentFlowRequest.d.ts +3 -3
- package/dist/request/CommonSilentFlowRequest.d.ts.map +1 -1
- package/dist/request/CommonUsernamePasswordRequest.d.ts +1 -1
- package/dist/request/CommonUsernamePasswordRequest.d.ts.map +1 -1
- package/dist/request/NativeRequest.d.ts +1 -1
- package/dist/request/NativeRequest.d.ts.map +1 -1
- package/dist/request/RequestParameterBuilder.d.ts +5 -5
- package/dist/request/RequestParameterBuilder.d.ts.map +1 -1
- package/dist/request/RequestParameterBuilder.mjs +1 -1
- package/dist/request/RequestValidator.mjs +1 -1
- package/dist/request/ScopeSet.mjs +1 -1
- package/dist/response/AuthenticationResult.d.ts +1 -1
- package/dist/response/AuthenticationResult.d.ts.map +1 -1
- package/dist/response/ExternalTokenResponse.d.ts +1 -1
- package/dist/response/ExternalTokenResponse.d.ts.map +1 -1
- package/dist/response/ResponseHandler.d.ts +16 -16
- package/dist/response/ResponseHandler.d.ts.map +1 -1
- package/dist/response/ResponseHandler.mjs +1 -1
- package/dist/response/ServerAuthorizationTokenResponse.d.ts +1 -1
- package/dist/response/ServerAuthorizationTokenResponse.d.ts.map +1 -1
- package/dist/telemetry/performance/IPerformanceClient.d.ts +2 -2
- package/dist/telemetry/performance/IPerformanceClient.d.ts.map +1 -1
- package/dist/telemetry/performance/PerformanceClient.d.ts +5 -5
- package/dist/telemetry/performance/PerformanceClient.d.ts.map +1 -1
- package/dist/telemetry/performance/PerformanceClient.mjs +1 -1
- package/dist/telemetry/performance/PerformanceEvent.mjs +1 -1
- package/dist/telemetry/performance/StubPerformanceClient.d.ts +3 -3
- package/dist/telemetry/performance/StubPerformanceClient.d.ts.map +1 -1
- package/dist/telemetry/performance/StubPerformanceClient.mjs +1 -1
- package/dist/telemetry/performance/StubPerformanceClient.mjs.map +1 -1
- package/dist/telemetry/server/ServerTelemetryManager.d.ts +5 -5
- package/dist/telemetry/server/ServerTelemetryManager.d.ts.map +1 -1
- package/dist/telemetry/server/ServerTelemetryManager.mjs +1 -1
- package/dist/url/UrlString.d.ts +1 -1
- package/dist/url/UrlString.d.ts.map +1 -1
- package/dist/url/UrlString.mjs +1 -1
- package/dist/utils/ClientAssertionUtils.d.ts +1 -1
- package/dist/utils/ClientAssertionUtils.d.ts.map +1 -1
- package/dist/utils/ClientAssertionUtils.mjs +1 -1
- package/dist/utils/Constants.mjs +1 -1
- package/dist/utils/FunctionWrappers.d.ts +2 -2
- package/dist/utils/FunctionWrappers.d.ts.map +1 -1
- package/dist/utils/FunctionWrappers.mjs +1 -1
- package/dist/utils/ProtocolUtils.d.ts +1 -1
- package/dist/utils/ProtocolUtils.d.ts.map +1 -1
- package/dist/utils/ProtocolUtils.mjs +1 -1
- package/dist/utils/StringUtils.mjs +1 -1
- package/dist/utils/TimeUtils.mjs +1 -1
- package/dist/utils/UrlUtils.d.ts +1 -1
- package/dist/utils/UrlUtils.d.ts.map +1 -1
- package/dist/utils/UrlUtils.mjs +1 -1
- package/lib/index-browser.cjs +838 -0
- package/lib/index-browser.cjs.map +1 -0
- package/{dist/index.cjs → lib/index-node-aee3f7b6.js} +39 -765
- package/lib/index-node-aee3f7b6.js.map +1 -0
- package/lib/index-node.cjs +103 -0
- package/lib/index-node.cjs.map +1 -0
- package/lib/index.cjs +111 -0
- package/lib/index.cjs.map +1 -0
- package/lib/package.json +1 -0
- package/lib/types/account/AccountInfo.d.ts +67 -0
- package/lib/types/account/AccountInfo.d.ts.map +1 -0
- package/lib/types/account/AuthToken.d.ts +18 -0
- package/lib/types/account/AuthToken.d.ts.map +1 -0
- package/lib/types/account/CcsCredential.d.ts +10 -0
- package/lib/types/account/CcsCredential.d.ts.map +1 -0
- package/lib/types/account/ClientCredentials.d.ts +20 -0
- package/lib/types/account/ClientCredentials.d.ts.map +1 -0
- package/lib/types/account/ClientInfo.d.ts +19 -0
- package/lib/types/account/ClientInfo.d.ts.map +1 -0
- package/lib/types/account/TokenClaims.d.ts +84 -0
- package/lib/types/account/TokenClaims.d.ts.map +1 -0
- package/lib/types/authority/Authority.d.ts +255 -0
- package/lib/types/authority/Authority.d.ts.map +1 -0
- package/lib/types/authority/AuthorityFactory.d.ts +19 -0
- package/lib/types/authority/AuthorityFactory.d.ts.map +1 -0
- package/lib/types/authority/AuthorityMetadata.d.ts +44 -0
- package/lib/types/authority/AuthorityMetadata.d.ts.map +1 -0
- package/lib/types/authority/AuthorityOptions.d.ts +28 -0
- package/lib/types/authority/AuthorityOptions.d.ts.map +1 -0
- package/lib/types/authority/AuthorityType.d.ts +11 -0
- package/lib/types/authority/AuthorityType.d.ts.map +1 -0
- package/lib/types/authority/AzureRegion.d.ts +2 -0
- package/lib/types/authority/AzureRegion.d.ts.map +1 -0
- package/lib/types/authority/AzureRegionConfiguration.d.ts +6 -0
- package/lib/types/authority/AzureRegionConfiguration.d.ts.map +1 -0
- package/lib/types/authority/CloudDiscoveryMetadata.d.ts +6 -0
- package/lib/types/authority/CloudDiscoveryMetadata.d.ts.map +1 -0
- package/lib/types/authority/CloudInstanceDiscoveryErrorResponse.d.ts +14 -0
- package/lib/types/authority/CloudInstanceDiscoveryErrorResponse.d.ts.map +1 -0
- package/lib/types/authority/CloudInstanceDiscoveryResponse.d.ts +10 -0
- package/lib/types/authority/CloudInstanceDiscoveryResponse.d.ts.map +1 -0
- package/lib/types/authority/ImdsOptions.d.ts +6 -0
- package/lib/types/authority/ImdsOptions.d.ts.map +1 -0
- package/lib/types/authority/OIDCOptions.d.ts +9 -0
- package/lib/types/authority/OIDCOptions.d.ts.map +1 -0
- package/lib/types/authority/OpenIdConfigResponse.d.ts +12 -0
- package/lib/types/authority/OpenIdConfigResponse.d.ts.map +1 -0
- package/lib/types/authority/ProtocolMode.d.ts +9 -0
- package/lib/types/authority/ProtocolMode.d.ts.map +1 -0
- package/lib/types/authority/RegionDiscovery.d.ts +33 -0
- package/lib/types/authority/RegionDiscovery.d.ts.map +1 -0
- package/lib/types/authority/RegionDiscoveryMetadata.d.ts +7 -0
- package/lib/types/authority/RegionDiscoveryMetadata.d.ts.map +1 -0
- package/lib/types/broker/nativeBroker/INativeBrokerPlugin.d.ts +16 -0
- package/lib/types/broker/nativeBroker/INativeBrokerPlugin.d.ts.map +1 -0
- package/lib/types/cache/CacheManager.d.ts +498 -0
- package/lib/types/cache/CacheManager.d.ts.map +1 -0
- package/lib/types/cache/entities/AccessTokenEntity.d.ts +26 -0
- package/lib/types/cache/entities/AccessTokenEntity.d.ts.map +1 -0
- package/lib/types/cache/entities/AccountEntity.d.ts +107 -0
- package/lib/types/cache/entities/AccountEntity.d.ts.map +1 -0
- package/lib/types/cache/entities/AppMetadataEntity.d.ts +12 -0
- package/lib/types/cache/entities/AppMetadataEntity.d.ts.map +1 -0
- package/lib/types/cache/entities/AuthorityMetadataEntity.d.ts +16 -0
- package/lib/types/cache/entities/AuthorityMetadataEntity.d.ts.map +1 -0
- package/lib/types/cache/entities/CacheRecord.d.ts +14 -0
- package/lib/types/cache/entities/CacheRecord.d.ts.map +1 -0
- package/lib/types/cache/entities/CredentialEntity.d.ts +31 -0
- package/lib/types/cache/entities/CredentialEntity.d.ts.map +1 -0
- package/lib/types/cache/entities/IdTokenEntity.d.ts +9 -0
- package/lib/types/cache/entities/IdTokenEntity.d.ts.map +1 -0
- package/lib/types/cache/entities/RefreshTokenEntity.d.ts +8 -0
- package/lib/types/cache/entities/RefreshTokenEntity.d.ts.map +1 -0
- package/lib/types/cache/entities/ServerTelemetryEntity.d.ts +7 -0
- package/lib/types/cache/entities/ServerTelemetryEntity.d.ts.map +1 -0
- package/lib/types/cache/entities/ThrottlingEntity.d.ts +8 -0
- package/lib/types/cache/entities/ThrottlingEntity.d.ts.map +1 -0
- package/lib/types/cache/interface/ICacheManager.d.ts +167 -0
- package/lib/types/cache/interface/ICacheManager.d.ts.map +1 -0
- package/lib/types/cache/interface/ICachePlugin.d.ts +6 -0
- package/lib/types/cache/interface/ICachePlugin.d.ts.map +1 -0
- package/lib/types/cache/interface/ISerializableTokenCache.d.ts +5 -0
- package/lib/types/cache/interface/ISerializableTokenCache.d.ts.map +1 -0
- package/lib/types/cache/persistence/TokenCacheContext.d.ts +24 -0
- package/lib/types/cache/persistence/TokenCacheContext.d.ts.map +1 -0
- package/lib/types/cache/utils/CacheHelpers.d.ts +95 -0
- package/lib/types/cache/utils/CacheHelpers.d.ts.map +1 -0
- package/lib/types/cache/utils/CacheTypes.d.ts +70 -0
- package/lib/types/cache/utils/CacheTypes.d.ts.map +1 -0
- package/lib/types/client/AuthorizationCodeClient.d.ts +76 -0
- package/lib/types/client/AuthorizationCodeClient.d.ts.map +1 -0
- package/lib/types/client/BaseClient.d.ts +52 -0
- package/lib/types/client/BaseClient.d.ts.map +1 -0
- package/lib/types/client/RefreshTokenClient.d.ts +36 -0
- package/lib/types/client/RefreshTokenClient.d.ts.map +1 -0
- package/lib/types/client/SilentFlowClient.d.ts +28 -0
- package/lib/types/client/SilentFlowClient.d.ts.map +1 -0
- package/lib/types/config/AppTokenProvider.d.ts +39 -0
- package/lib/types/config/AppTokenProvider.d.ts.map +1 -0
- package/lib/types/config/ClientConfiguration.d.ts +153 -0
- package/lib/types/config/ClientConfiguration.d.ts.map +1 -0
- package/lib/types/constants/AADServerParamKeys.d.ts +54 -0
- package/lib/types/constants/AADServerParamKeys.d.ts.map +1 -0
- package/lib/types/crypto/ICrypto.d.ts +69 -0
- package/lib/types/crypto/ICrypto.d.ts.map +1 -0
- package/lib/types/crypto/IGuidGenerator.d.ts +5 -0
- package/lib/types/crypto/IGuidGenerator.d.ts.map +1 -0
- package/lib/types/crypto/JoseHeader.d.ts +23 -0
- package/lib/types/crypto/JoseHeader.d.ts.map +1 -0
- package/lib/types/crypto/PopTokenGenerator.d.ts +60 -0
- package/lib/types/crypto/PopTokenGenerator.d.ts.map +1 -0
- package/lib/types/crypto/SignedHttpRequest.d.ts +16 -0
- package/lib/types/crypto/SignedHttpRequest.d.ts.map +1 -0
- package/lib/types/error/AuthError.d.ts +45 -0
- package/lib/types/error/AuthError.d.ts.map +1 -0
- package/lib/types/error/AuthErrorCodes.d.ts +6 -0
- package/lib/types/error/AuthErrorCodes.d.ts.map +1 -0
- package/lib/types/error/CacheError.d.ts +21 -0
- package/lib/types/error/CacheError.d.ts.map +1 -0
- package/lib/types/error/CacheErrorCodes.d.ts +3 -0
- package/lib/types/error/CacheErrorCodes.d.ts.map +1 -0
- package/lib/types/error/ClientAuthError.d.ts +238 -0
- package/lib/types/error/ClientAuthError.d.ts.map +1 -0
- package/lib/types/error/ClientAuthErrorCodes.d.ts +45 -0
- package/lib/types/error/ClientAuthErrorCodes.d.ts.map +1 -0
- package/lib/types/error/ClientConfigurationError.d.ts +129 -0
- package/lib/types/error/ClientConfigurationError.d.ts.map +1 -0
- package/lib/types/error/ClientConfigurationErrorCodes.d.ts +23 -0
- package/lib/types/error/ClientConfigurationErrorCodes.d.ts.map +1 -0
- package/lib/types/error/InteractionRequiredAuthError.d.ts +66 -0
- package/lib/types/error/InteractionRequiredAuthError.d.ts.map +1 -0
- package/lib/types/error/InteractionRequiredAuthErrorCodes.d.ts +8 -0
- package/lib/types/error/InteractionRequiredAuthErrorCodes.d.ts.map +1 -0
- package/lib/types/error/JoseHeaderError.d.ts +16 -0
- package/lib/types/error/JoseHeaderError.d.ts.map +1 -0
- package/lib/types/error/JoseHeaderErrorCodes.d.ts +3 -0
- package/lib/types/error/JoseHeaderErrorCodes.d.ts.map +1 -0
- package/lib/types/error/ServerError.d.ts +16 -0
- package/lib/types/error/ServerError.d.ts.map +1 -0
- package/lib/types/exports-browser-only.d.ts +10 -0
- package/lib/types/exports-browser-only.d.ts.map +1 -0
- package/lib/types/exports-common.d.ts +80 -0
- package/lib/types/exports-common.d.ts.map +1 -0
- package/lib/types/exports-node-only.d.ts +18 -0
- package/lib/types/exports-node-only.d.ts.map +1 -0
- package/lib/types/index-browser.d.ts +7 -0
- package/lib/types/index-browser.d.ts.map +1 -0
- package/lib/types/index-node.d.ts +7 -0
- package/lib/types/index-node.d.ts.map +1 -0
- package/lib/types/index.d.ts +12 -0
- package/lib/types/index.d.ts.map +1 -0
- package/lib/types/logger/Logger.d.ts +96 -0
- package/lib/types/logger/Logger.d.ts.map +1 -0
- package/lib/types/network/INetworkModule.d.ts +30 -0
- package/lib/types/network/INetworkModule.d.ts.map +1 -0
- package/lib/types/network/NetworkManager.d.ts +34 -0
- package/lib/types/network/NetworkManager.d.ts.map +1 -0
- package/lib/types/network/RequestThumbprint.d.ts +19 -0
- package/lib/types/network/RequestThumbprint.d.ts.map +1 -0
- package/lib/types/network/ThrottlingUtils.d.ts +43 -0
- package/lib/types/network/ThrottlingUtils.d.ts.map +1 -0
- package/lib/types/packageMetadata.d.ts +3 -0
- package/lib/types/packageMetadata.d.ts.map +1 -0
- package/lib/types/request/AuthenticationHeaderParser.d.ts +20 -0
- package/lib/types/request/AuthenticationHeaderParser.d.ts.map +1 -0
- package/lib/types/request/BaseAuthRequest.d.ts +48 -0
- package/lib/types/request/BaseAuthRequest.d.ts.map +1 -0
- package/lib/types/request/CommonAuthorizationCodeRequest.d.ts +28 -0
- package/lib/types/request/CommonAuthorizationCodeRequest.d.ts.map +1 -0
- package/lib/types/request/CommonAuthorizationUrlRequest.d.ts +51 -0
- package/lib/types/request/CommonAuthorizationUrlRequest.d.ts.map +1 -0
- package/lib/types/request/CommonClientCredentialRequest.d.ts +18 -0
- package/lib/types/request/CommonClientCredentialRequest.d.ts.map +1 -0
- package/lib/types/request/CommonDeviceCodeRequest.d.ts +22 -0
- package/lib/types/request/CommonDeviceCodeRequest.d.ts.map +1 -0
- package/lib/types/request/CommonEndSessionRequest.d.ts +22 -0
- package/lib/types/request/CommonEndSessionRequest.d.ts.map +1 -0
- package/lib/types/request/CommonOnBehalfOfRequest.d.ts +14 -0
- package/lib/types/request/CommonOnBehalfOfRequest.d.ts.map +1 -0
- package/lib/types/request/CommonRefreshTokenRequest.d.ts +23 -0
- package/lib/types/request/CommonRefreshTokenRequest.d.ts.map +1 -0
- package/lib/types/request/CommonSilentFlowRequest.d.ts +28 -0
- package/lib/types/request/CommonSilentFlowRequest.d.ts.map +1 -0
- package/lib/types/request/CommonUsernamePasswordRequest.d.ts +18 -0
- package/lib/types/request/CommonUsernamePasswordRequest.d.ts.map +1 -0
- package/lib/types/request/NativeRequest.d.ts +20 -0
- package/lib/types/request/NativeRequest.d.ts.map +1 -0
- package/lib/types/request/NativeSignOutRequest.d.ts +6 -0
- package/lib/types/request/NativeSignOutRequest.d.ts.map +1 -0
- package/lib/types/request/RequestParameterBuilder.d.ts +218 -0
- package/lib/types/request/RequestParameterBuilder.d.ts.map +1 -0
- package/lib/types/request/RequestValidator.d.ts +28 -0
- package/lib/types/request/RequestValidator.d.ts.map +1 -0
- package/lib/types/request/ScopeSet.d.ts +89 -0
- package/lib/types/request/ScopeSet.d.ts.map +1 -0
- package/lib/types/request/StoreInCache.d.ts +9 -0
- package/lib/types/request/StoreInCache.d.ts.map +1 -0
- package/lib/types/response/AuthenticationResult.d.ts +42 -0
- package/lib/types/response/AuthenticationResult.d.ts.map +1 -0
- package/lib/types/response/AuthorizationCodePayload.d.ts +14 -0
- package/lib/types/response/AuthorizationCodePayload.d.ts.map +1 -0
- package/lib/types/response/DeviceCodeResponse.d.ts +26 -0
- package/lib/types/response/DeviceCodeResponse.d.ts.map +1 -0
- package/lib/types/response/ExternalTokenResponse.d.ts +16 -0
- package/lib/types/response/ExternalTokenResponse.d.ts.map +1 -0
- package/lib/types/response/IMDSBadResponse.d.ts +5 -0
- package/lib/types/response/IMDSBadResponse.d.ts.map +1 -0
- package/lib/types/response/ResponseHandler.d.ts +70 -0
- package/lib/types/response/ResponseHandler.d.ts.map +1 -0
- package/lib/types/response/ServerAuthorizationCodeResponse.d.ts +27 -0
- package/lib/types/response/ServerAuthorizationCodeResponse.d.ts.map +1 -0
- package/lib/types/response/ServerAuthorizationTokenResponse.d.ts +48 -0
- package/lib/types/response/ServerAuthorizationTokenResponse.d.ts.map +1 -0
- package/lib/types/telemetry/performance/IPerformanceClient.d.ts +58 -0
- package/lib/types/telemetry/performance/IPerformanceClient.d.ts.map +1 -0
- package/lib/types/telemetry/performance/IPerformanceMeasurement.d.ts +6 -0
- package/lib/types/telemetry/performance/IPerformanceMeasurement.d.ts.map +1 -0
- package/lib/types/telemetry/performance/PerformanceClient.d.ts +243 -0
- package/lib/types/telemetry/performance/PerformanceClient.d.ts.map +1 -0
- package/lib/types/telemetry/performance/PerformanceEvent.d.ts +512 -0
- package/lib/types/telemetry/performance/PerformanceEvent.d.ts.map +1 -0
- package/lib/types/telemetry/performance/StubPerformanceClient.d.ts +25 -0
- package/lib/types/telemetry/performance/StubPerformanceClient.d.ts.map +1 -0
- package/lib/types/telemetry/server/ServerTelemetryManager.d.ts +79 -0
- package/lib/types/telemetry/server/ServerTelemetryManager.d.ts.map +1 -0
- package/lib/types/telemetry/server/ServerTelemetryRequest.d.ts +9 -0
- package/lib/types/telemetry/server/ServerTelemetryRequest.d.ts.map +1 -0
- package/lib/types/url/IUri.d.ts +13 -0
- package/lib/types/url/IUri.d.ts.map +1 -0
- package/lib/types/url/UrlString.d.ts +49 -0
- package/lib/types/url/UrlString.d.ts.map +1 -0
- package/lib/types/utils/ClientAssertionUtils.d.ts +3 -0
- package/lib/types/utils/ClientAssertionUtils.d.ts.map +1 -0
- package/lib/types/utils/Constants.d.ts +310 -0
- package/lib/types/utils/Constants.d.ts.map +1 -0
- package/lib/types/utils/FunctionWrappers.d.ts +28 -0
- package/lib/types/utils/FunctionWrappers.d.ts.map +1 -0
- package/lib/types/utils/MsalTypes.d.ts +7 -0
- package/lib/types/utils/MsalTypes.d.ts.map +1 -0
- package/lib/types/utils/ProtocolUtils.d.ts +43 -0
- package/lib/types/utils/ProtocolUtils.d.ts.map +1 -0
- package/lib/types/utils/StringUtils.d.ts +41 -0
- package/lib/types/utils/StringUtils.d.ts.map +1 -0
- package/lib/types/utils/TimeUtils.d.ts +26 -0
- package/lib/types/utils/TimeUtils.d.ts.map +1 -0
- package/lib/types/utils/UrlUtils.d.ts +11 -0
- package/lib/types/utils/UrlUtils.d.ts.map +1 -0
- package/node/README.md +1 -0
- package/node/package.json +5 -0
- package/package.json +37 -8
- package/src/account/AccountInfo.ts +1 -1
- package/src/account/AuthToken.ts +2 -2
- package/src/account/ClientInfo.ts +2 -2
- package/src/authority/Authority.ts +26 -26
- package/src/authority/AuthorityFactory.ts +9 -9
- package/src/authority/AuthorityMetadata.ts +7 -7
- package/src/authority/AuthorityOptions.ts +4 -4
- package/src/authority/AzureRegionConfiguration.ts +1 -1
- package/src/authority/CloudInstanceDiscoveryResponse.ts +1 -1
- package/src/authority/OIDCOptions.ts +1 -1
- package/src/authority/RegionDiscovery.ts +10 -10
- package/src/authority/RegionDiscoveryMetadata.ts +1 -1
- package/src/broker/nativeBroker/INativeBrokerPlugin.ts +5 -5
- package/src/cache/CacheManager.ts +28 -28
- package/src/cache/entities/AccessTokenEntity.ts +2 -2
- package/src/cache/entities/AccountEntity.ts +10 -10
- package/src/cache/entities/CacheRecord.ts +5 -5
- package/src/cache/entities/CredentialEntity.ts +1 -1
- package/src/cache/entities/IdTokenEntity.ts +1 -1
- package/src/cache/entities/RefreshTokenEntity.ts +1 -1
- package/src/cache/interface/ICacheManager.ts +12 -12
- package/src/cache/interface/ICachePlugin.ts +1 -1
- package/src/cache/persistence/TokenCacheContext.ts +1 -1
- package/src/cache/utils/CacheHelpers.ts +13 -13
- package/src/cache/utils/CacheTypes.ts +11 -11
- package/src/client/AuthorizationCodeClient.ts +51 -38
- package/src/client/BaseClient.ts +19 -19
- package/src/client/RefreshTokenClient.ts +29 -29
- package/src/client/SilentFlowClient.ts +17 -17
- package/src/config/ClientConfiguration.ts +18 -15
- package/src/crypto/ICrypto.ts +3 -3
- package/src/crypto/JoseHeader.ts +2 -2
- package/src/crypto/PopTokenGenerator.ts +7 -7
- package/src/crypto/SignedHttpRequest.ts +1 -1
- package/src/error/AuthError.ts +2 -2
- package/src/error/CacheError.ts +1 -1
- package/src/error/ClientAuthError.ts +2 -2
- package/src/error/ClientConfigurationError.ts +2 -2
- package/src/error/InteractionRequiredAuthError.ts +3 -3
- package/src/error/JoseHeaderError.ts +2 -2
- package/src/error/ServerError.ts +1 -1
- package/src/exports-browser-only.ts +29 -0
- package/src/exports-common.ts +192 -0
- package/src/exports-node-only.ts +35 -0
- package/src/index-browser.ts +11 -0
- package/src/index-node.ts +11 -0
- package/src/index.ts +7 -250
- package/src/logger/Logger.ts +2 -2
- package/src/network/INetworkModule.ts +2 -2
- package/src/network/NetworkManager.ts +7 -7
- package/src/network/RequestThumbprint.ts +2 -2
- package/src/network/ThrottlingUtils.ts +8 -8
- package/src/packageMetadata.ts +1 -1
- package/src/request/AuthenticationHeaderParser.ts +2 -2
- package/src/request/BaseAuthRequest.ts +5 -5
- package/src/request/CommonAuthorizationCodeRequest.ts +3 -3
- package/src/request/CommonAuthorizationUrlRequest.ts +4 -4
- package/src/request/CommonClientCredentialRequest.ts +3 -3
- package/src/request/CommonDeviceCodeRequest.ts +3 -3
- package/src/request/CommonEndSessionRequest.ts +2 -2
- package/src/request/CommonOnBehalfOfRequest.ts +1 -1
- package/src/request/CommonRefreshTokenRequest.ts +3 -3
- package/src/request/CommonSilentFlowRequest.ts +3 -3
- package/src/request/CommonUsernamePasswordRequest.ts +1 -1
- package/src/request/NativeRequest.ts +1 -1
- package/src/request/RequestParameterBuilder.ts +9 -9
- package/src/request/RequestValidator.ts +2 -2
- package/src/request/ScopeSet.ts +4 -4
- package/src/response/AuthenticationResult.ts +1 -1
- package/src/response/ExternalTokenResponse.ts +1 -1
- package/src/response/ResponseHandler.ts +31 -31
- package/src/response/ServerAuthorizationTokenResponse.ts +1 -1
- package/src/telemetry/performance/IPerformanceClient.ts +2 -2
- package/src/telemetry/performance/PerformanceClient.ts +10 -10
- package/src/telemetry/performance/StubPerformanceClient.ts +6 -3
- package/src/telemetry/server/ServerTelemetryManager.ts +6 -6
- package/src/url/UrlString.ts +5 -5
- package/src/utils/ClientAssertionUtils.ts +1 -1
- package/src/utils/FunctionWrappers.ts +2 -2
- package/src/utils/ProtocolUtils.ts +3 -3
- package/src/utils/UrlUtils.ts +2 -2
- package/dist/index.cjs.map +0 -1
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import { BaseAuthRequest } from "./BaseAuthRequest";
|
|
7
|
-
import { AzureRegion } from "../authority/AzureRegion";
|
|
8
|
-
import { ClientAssertion } from "../account/ClientCredentials";
|
|
6
|
+
import { BaseAuthRequest } from "./BaseAuthRequest.js";
|
|
7
|
+
import { AzureRegion } from "../authority/AzureRegion.js";
|
|
8
|
+
import { ClientAssertion } from "../account/ClientCredentials.js";
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* CommonClientCredentialRequest
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import { DeviceCodeResponse } from "../response/DeviceCodeResponse";
|
|
7
|
-
import { StringDict } from "../utils/MsalTypes";
|
|
8
|
-
import { BaseAuthRequest } from "./BaseAuthRequest";
|
|
6
|
+
import { DeviceCodeResponse } from "../response/DeviceCodeResponse.js";
|
|
7
|
+
import { StringDict } from "../utils/MsalTypes.js";
|
|
8
|
+
import { BaseAuthRequest } from "./BaseAuthRequest.js";
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* Parameters for Oauth2 device code flow.
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import { AccountInfo } from "../account/AccountInfo";
|
|
7
|
-
import { StringDict } from "../utils/MsalTypes";
|
|
6
|
+
import { AccountInfo } from "../account/AccountInfo.js";
|
|
7
|
+
import { StringDict } from "../utils/MsalTypes.js";
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* CommonEndSessionRequest
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import { BaseAuthRequest } from "./BaseAuthRequest";
|
|
7
|
-
import { CcsCredential } from "../account/CcsCredential";
|
|
8
|
-
import { StringDict } from "../utils/MsalTypes";
|
|
6
|
+
import { BaseAuthRequest } from "./BaseAuthRequest.js";
|
|
7
|
+
import { CcsCredential } from "../account/CcsCredential.js";
|
|
8
|
+
import { StringDict } from "../utils/MsalTypes.js";
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* CommonRefreshTokenRequest
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import { AccountInfo } from "../account/AccountInfo";
|
|
7
|
-
import { StringDict } from "../utils/MsalTypes";
|
|
8
|
-
import { BaseAuthRequest } from "./BaseAuthRequest";
|
|
6
|
+
import { AccountInfo } from "../account/AccountInfo.js";
|
|
7
|
+
import { StringDict } from "../utils/MsalTypes.js";
|
|
8
|
+
import { BaseAuthRequest } from "./BaseAuthRequest.js";
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* SilentFlow parameters passed by the user to retrieve credentials silently
|
|
@@ -13,21 +13,21 @@ import {
|
|
|
13
13
|
OIDC_DEFAULT_SCOPES,
|
|
14
14
|
ThrottlingConstants,
|
|
15
15
|
HeaderNames,
|
|
16
|
-
} from "../utils/Constants";
|
|
17
|
-
import * as AADServerParamKeys from "../constants/AADServerParamKeys";
|
|
18
|
-
import { ScopeSet } from "./ScopeSet";
|
|
16
|
+
} from "../utils/Constants.js";
|
|
17
|
+
import * as AADServerParamKeys from "../constants/AADServerParamKeys.js";
|
|
18
|
+
import { ScopeSet } from "./ScopeSet.js";
|
|
19
19
|
import {
|
|
20
20
|
createClientConfigurationError,
|
|
21
21
|
ClientConfigurationErrorCodes,
|
|
22
|
-
} from "../error/ClientConfigurationError";
|
|
23
|
-
import { StringDict } from "../utils/MsalTypes";
|
|
24
|
-
import { RequestValidator } from "./RequestValidator";
|
|
22
|
+
} from "../error/ClientConfigurationError.js";
|
|
23
|
+
import { StringDict } from "../utils/MsalTypes.js";
|
|
24
|
+
import { RequestValidator } from "./RequestValidator.js";
|
|
25
25
|
import {
|
|
26
26
|
ApplicationTelemetry,
|
|
27
27
|
LibraryInfo,
|
|
28
|
-
} from "../config/ClientConfiguration";
|
|
29
|
-
import { ServerTelemetryManager } from "../telemetry/server/ServerTelemetryManager";
|
|
30
|
-
import { ClientInfo } from "../account/ClientInfo";
|
|
28
|
+
} from "../config/ClientConfiguration.js";
|
|
29
|
+
import { ServerTelemetryManager } from "../telemetry/server/ServerTelemetryManager.js";
|
|
30
|
+
import { ClientInfo } from "../account/ClientInfo.js";
|
|
31
31
|
|
|
32
32
|
/** @internal */
|
|
33
33
|
export class RequestParameterBuilder {
|
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
import {
|
|
7
7
|
createClientConfigurationError,
|
|
8
8
|
ClientConfigurationErrorCodes,
|
|
9
|
-
} from "../error/ClientConfigurationError";
|
|
10
|
-
import { PromptValue, CodeChallengeMethodValues } from "../utils/Constants";
|
|
9
|
+
} from "../error/ClientConfigurationError.js";
|
|
10
|
+
import { PromptValue, CodeChallengeMethodValues } from "../utils/Constants.js";
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
13
|
* Validates server consumable params from the "request" objects
|
package/src/request/ScopeSet.ts
CHANGED
|
@@ -6,13 +6,13 @@
|
|
|
6
6
|
import {
|
|
7
7
|
createClientConfigurationError,
|
|
8
8
|
ClientConfigurationErrorCodes,
|
|
9
|
-
} from "../error/ClientConfigurationError";
|
|
10
|
-
import { StringUtils } from "../utils/StringUtils";
|
|
9
|
+
} from "../error/ClientConfigurationError.js";
|
|
10
|
+
import { StringUtils } from "../utils/StringUtils.js";
|
|
11
11
|
import {
|
|
12
12
|
ClientAuthErrorCodes,
|
|
13
13
|
createClientAuthError,
|
|
14
|
-
} from "../error/ClientAuthError";
|
|
15
|
-
import { Constants, OIDC_SCOPES } from "../utils/Constants";
|
|
14
|
+
} from "../error/ClientAuthError.js";
|
|
15
|
+
import { Constants, OIDC_SCOPES } from "../utils/Constants.js";
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
18
|
* The ScopeSet class creates a set of scopes. Scopes are case-insensitive, unique values, so the Set object in JS makes
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import { ServerAuthorizationTokenResponse } from "./ServerAuthorizationTokenResponse";
|
|
6
|
+
import { ServerAuthorizationTokenResponse } from "./ServerAuthorizationTokenResponse.js";
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* Response object used for loading external tokens to cache.
|
|
@@ -3,55 +3,55 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import { ServerAuthorizationTokenResponse } from "./ServerAuthorizationTokenResponse";
|
|
7
|
-
import { ICrypto } from "../crypto/ICrypto";
|
|
6
|
+
import { ServerAuthorizationTokenResponse } from "./ServerAuthorizationTokenResponse.js";
|
|
7
|
+
import { ICrypto } from "../crypto/ICrypto.js";
|
|
8
8
|
import {
|
|
9
9
|
ClientAuthErrorCodes,
|
|
10
10
|
createClientAuthError,
|
|
11
|
-
} from "../error/ClientAuthError";
|
|
12
|
-
import { ServerAuthorizationCodeResponse } from "./ServerAuthorizationCodeResponse";
|
|
13
|
-
import { Logger } from "../logger/Logger";
|
|
14
|
-
import { ServerError } from "../error/ServerError";
|
|
15
|
-
import { ScopeSet } from "../request/ScopeSet";
|
|
16
|
-
import { AuthenticationResult } from "./AuthenticationResult";
|
|
17
|
-
import { AccountEntity } from "../cache/entities/AccountEntity";
|
|
18
|
-
import { Authority } from "../authority/Authority";
|
|
19
|
-
import { IdTokenEntity } from "../cache/entities/IdTokenEntity";
|
|
20
|
-
import { AccessTokenEntity } from "../cache/entities/AccessTokenEntity";
|
|
21
|
-
import { RefreshTokenEntity } from "../cache/entities/RefreshTokenEntity";
|
|
11
|
+
} from "../error/ClientAuthError.js";
|
|
12
|
+
import { ServerAuthorizationCodeResponse } from "./ServerAuthorizationCodeResponse.js";
|
|
13
|
+
import { Logger } from "../logger/Logger.js";
|
|
14
|
+
import { ServerError } from "../error/ServerError.js";
|
|
15
|
+
import { ScopeSet } from "../request/ScopeSet.js";
|
|
16
|
+
import { AuthenticationResult } from "./AuthenticationResult.js";
|
|
17
|
+
import { AccountEntity } from "../cache/entities/AccountEntity.js";
|
|
18
|
+
import { Authority } from "../authority/Authority.js";
|
|
19
|
+
import { IdTokenEntity } from "../cache/entities/IdTokenEntity.js";
|
|
20
|
+
import { AccessTokenEntity } from "../cache/entities/AccessTokenEntity.js";
|
|
21
|
+
import { RefreshTokenEntity } from "../cache/entities/RefreshTokenEntity.js";
|
|
22
22
|
import {
|
|
23
23
|
InteractionRequiredAuthError,
|
|
24
24
|
isInteractionRequiredError,
|
|
25
|
-
} from "../error/InteractionRequiredAuthError";
|
|
26
|
-
import { CacheRecord } from "../cache/entities/CacheRecord";
|
|
27
|
-
import { CacheManager } from "../cache/CacheManager";
|
|
28
|
-
import { ProtocolUtils, RequestStateObject } from "../utils/ProtocolUtils";
|
|
25
|
+
} from "../error/InteractionRequiredAuthError.js";
|
|
26
|
+
import { CacheRecord } from "../cache/entities/CacheRecord.js";
|
|
27
|
+
import { CacheManager } from "../cache/CacheManager.js";
|
|
28
|
+
import { ProtocolUtils, RequestStateObject } from "../utils/ProtocolUtils.js";
|
|
29
29
|
import {
|
|
30
30
|
AuthenticationScheme,
|
|
31
31
|
Constants,
|
|
32
32
|
THE_FAMILY_ID,
|
|
33
33
|
HttpStatus,
|
|
34
|
-
} from "../utils/Constants";
|
|
35
|
-
import { PopTokenGenerator } from "../crypto/PopTokenGenerator";
|
|
36
|
-
import { AppMetadataEntity } from "../cache/entities/AppMetadataEntity";
|
|
37
|
-
import { ICachePlugin } from "../cache/interface/ICachePlugin";
|
|
38
|
-
import { TokenCacheContext } from "../cache/persistence/TokenCacheContext";
|
|
39
|
-
import { ISerializableTokenCache } from "../cache/interface/ISerializableTokenCache";
|
|
40
|
-
import { AuthorizationCodePayload } from "./AuthorizationCodePayload";
|
|
41
|
-
import { BaseAuthRequest } from "../request/BaseAuthRequest";
|
|
42
|
-
import { IPerformanceClient } from "../telemetry/performance/IPerformanceClient";
|
|
43
|
-
import { PerformanceEvents } from "../telemetry/performance/PerformanceEvent";
|
|
44
|
-
import { checkMaxAge, extractTokenClaims } from "../account/AuthToken";
|
|
34
|
+
} from "../utils/Constants.js";
|
|
35
|
+
import { PopTokenGenerator } from "../crypto/PopTokenGenerator.js";
|
|
36
|
+
import { AppMetadataEntity } from "../cache/entities/AppMetadataEntity.js";
|
|
37
|
+
import { ICachePlugin } from "../cache/interface/ICachePlugin.js";
|
|
38
|
+
import { TokenCacheContext } from "../cache/persistence/TokenCacheContext.js";
|
|
39
|
+
import { ISerializableTokenCache } from "../cache/interface/ISerializableTokenCache.js";
|
|
40
|
+
import { AuthorizationCodePayload } from "./AuthorizationCodePayload.js";
|
|
41
|
+
import { BaseAuthRequest } from "../request/BaseAuthRequest.js";
|
|
42
|
+
import { IPerformanceClient } from "../telemetry/performance/IPerformanceClient.js";
|
|
43
|
+
import { PerformanceEvents } from "../telemetry/performance/PerformanceEvent.js";
|
|
44
|
+
import { checkMaxAge, extractTokenClaims } from "../account/AuthToken.js";
|
|
45
45
|
import {
|
|
46
46
|
TokenClaims,
|
|
47
47
|
getTenantIdFromIdTokenClaims,
|
|
48
|
-
} from "../account/TokenClaims";
|
|
48
|
+
} from "../account/TokenClaims.js";
|
|
49
49
|
import {
|
|
50
50
|
AccountInfo,
|
|
51
51
|
buildTenantProfile,
|
|
52
52
|
updateAccountTenantProfileData,
|
|
53
|
-
} from "../account/AccountInfo";
|
|
54
|
-
import * as CacheHelpers from "../cache/utils/CacheHelpers";
|
|
53
|
+
} from "../account/AccountInfo.js";
|
|
54
|
+
import * as CacheHelpers from "../cache/utils/CacheHelpers.js";
|
|
55
55
|
|
|
56
56
|
function parseServerErrorNo(
|
|
57
57
|
serverResponse: ServerAuthorizationCodeResponse
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import { PerformanceEvent } from "./PerformanceEvent";
|
|
7
|
-
import { IPerformanceMeasurement } from "./IPerformanceMeasurement";
|
|
6
|
+
import { PerformanceEvent } from "./PerformanceEvent.js";
|
|
7
|
+
import { IPerformanceMeasurement } from "./IPerformanceMeasurement.js";
|
|
8
8
|
|
|
9
9
|
export type PerformanceCallbackFunction = (events: PerformanceEvent[]) => void;
|
|
10
10
|
|
|
@@ -3,14 +3,14 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import { ApplicationTelemetry } from "../../config/ClientConfiguration";
|
|
7
|
-
import { Logger } from "../../logger/Logger";
|
|
6
|
+
import { ApplicationTelemetry } from "../../config/ClientConfiguration.js";
|
|
7
|
+
import { Logger } from "../../logger/Logger.js";
|
|
8
8
|
import {
|
|
9
9
|
InProgressPerformanceEvent,
|
|
10
10
|
IPerformanceClient,
|
|
11
11
|
PerformanceCallbackFunction,
|
|
12
12
|
QueueMeasurement,
|
|
13
|
-
} from "./IPerformanceClient";
|
|
13
|
+
} from "./IPerformanceClient.js";
|
|
14
14
|
import {
|
|
15
15
|
IntFields,
|
|
16
16
|
PerformanceEvent,
|
|
@@ -19,13 +19,13 @@ import {
|
|
|
19
19
|
PerformanceEvents,
|
|
20
20
|
PerformanceEventStackedContext,
|
|
21
21
|
PerformanceEventStatus,
|
|
22
|
-
} from "./PerformanceEvent";
|
|
23
|
-
import { IPerformanceMeasurement } from "./IPerformanceMeasurement";
|
|
24
|
-
import { StubPerformanceMeasurement } from "./StubPerformanceClient";
|
|
25
|
-
import { AuthError } from "../../error/AuthError";
|
|
26
|
-
import { CacheError } from "../../error/CacheError";
|
|
27
|
-
import { ServerError } from "../../error/ServerError";
|
|
28
|
-
import { InteractionRequiredAuthError } from "../../error/InteractionRequiredAuthError";
|
|
22
|
+
} from "./PerformanceEvent.js";
|
|
23
|
+
import { IPerformanceMeasurement } from "./IPerformanceMeasurement.js";
|
|
24
|
+
import { StubPerformanceMeasurement } from "./StubPerformanceClient.js";
|
|
25
|
+
import { AuthError } from "../../error/AuthError.js";
|
|
26
|
+
import { CacheError } from "../../error/CacheError.js";
|
|
27
|
+
import { ServerError } from "../../error/ServerError.js";
|
|
28
|
+
import { InteractionRequiredAuthError } from "../../error/InteractionRequiredAuthError.js";
|
|
29
29
|
|
|
30
30
|
export interface PreQueueEvent {
|
|
31
31
|
name: PerformanceEvents;
|
|
@@ -6,9 +6,12 @@
|
|
|
6
6
|
import {
|
|
7
7
|
IPerformanceClient,
|
|
8
8
|
InProgressPerformanceEvent,
|
|
9
|
-
} from "./IPerformanceClient";
|
|
10
|
-
import { IPerformanceMeasurement } from "./IPerformanceMeasurement";
|
|
11
|
-
import {
|
|
9
|
+
} from "./IPerformanceClient.js";
|
|
10
|
+
import { IPerformanceMeasurement } from "./IPerformanceMeasurement.js";
|
|
11
|
+
import {
|
|
12
|
+
PerformanceEvent,
|
|
13
|
+
PerformanceEventStatus,
|
|
14
|
+
} from "./PerformanceEvent.js";
|
|
12
15
|
|
|
13
16
|
export class StubPerformanceMeasurement implements IPerformanceMeasurement {
|
|
14
17
|
startMeasurement(): void {
|
|
@@ -10,12 +10,12 @@ import {
|
|
|
10
10
|
Constants,
|
|
11
11
|
RegionDiscoverySources,
|
|
12
12
|
RegionDiscoveryOutcomes,
|
|
13
|
-
} from "../../utils/Constants";
|
|
14
|
-
import { CacheManager } from "../../cache/CacheManager";
|
|
15
|
-
import { AuthError } from "../../error/AuthError";
|
|
16
|
-
import { ServerTelemetryRequest } from "./ServerTelemetryRequest";
|
|
17
|
-
import { ServerTelemetryEntity } from "../../cache/entities/ServerTelemetryEntity";
|
|
18
|
-
import { RegionDiscoveryMetadata } from "../../authority/RegionDiscoveryMetadata";
|
|
13
|
+
} from "../../utils/Constants.js";
|
|
14
|
+
import { CacheManager } from "../../cache/CacheManager.js";
|
|
15
|
+
import { AuthError } from "../../error/AuthError.js";
|
|
16
|
+
import { ServerTelemetryRequest } from "./ServerTelemetryRequest.js";
|
|
17
|
+
import { ServerTelemetryEntity } from "../../cache/entities/ServerTelemetryEntity.js";
|
|
18
|
+
import { RegionDiscoveryMetadata } from "../../authority/RegionDiscoveryMetadata.js";
|
|
19
19
|
|
|
20
20
|
const skuGroupSeparator = ",";
|
|
21
21
|
const skuValueSeparator = "|";
|
package/src/url/UrlString.ts
CHANGED
|
@@ -6,11 +6,11 @@
|
|
|
6
6
|
import {
|
|
7
7
|
createClientConfigurationError,
|
|
8
8
|
ClientConfigurationErrorCodes,
|
|
9
|
-
} from "../error/ClientConfigurationError";
|
|
10
|
-
import { StringUtils } from "../utils/StringUtils";
|
|
11
|
-
import { IUri } from "./IUri";
|
|
12
|
-
import { AADAuthorityConstants, Constants } from "../utils/Constants";
|
|
13
|
-
import * as UrlUtils from "../utils/UrlUtils";
|
|
9
|
+
} from "../error/ClientConfigurationError.js";
|
|
10
|
+
import { StringUtils } from "../utils/StringUtils.js";
|
|
11
|
+
import { IUri } from "./IUri.js";
|
|
12
|
+
import { AADAuthorityConstants, Constants } from "../utils/Constants.js";
|
|
13
|
+
import * as UrlUtils from "../utils/UrlUtils.js";
|
|
14
14
|
|
|
15
15
|
/**
|
|
16
16
|
* Url object class which can perform various transformations on url strings.
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import { Logger } from "../logger/Logger";
|
|
7
|
-
import { IPerformanceClient } from "../telemetry/performance/IPerformanceClient";
|
|
6
|
+
import { Logger } from "../logger/Logger.js";
|
|
7
|
+
import { IPerformanceClient } from "../telemetry/performance/IPerformanceClient.js";
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* Wraps a function with a performance measurement.
|
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import { Constants } from "./Constants";
|
|
7
|
-
import { ICrypto } from "../crypto/ICrypto";
|
|
6
|
+
import { Constants } from "./Constants.js";
|
|
7
|
+
import { ICrypto } from "../crypto/ICrypto.js";
|
|
8
8
|
import {
|
|
9
9
|
ClientAuthErrorCodes,
|
|
10
10
|
createClientAuthError,
|
|
11
|
-
} from "../error/ClientAuthError";
|
|
11
|
+
} from "../error/ClientAuthError.js";
|
|
12
12
|
|
|
13
13
|
/**
|
|
14
14
|
* Type which defines the object that is stringified, encoded and sent in the state value.
|
package/src/utils/UrlUtils.ts
CHANGED
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import { ServerAuthorizationCodeResponse } from "../response/ServerAuthorizationCodeResponse";
|
|
6
|
+
import { ServerAuthorizationCodeResponse } from "../response/ServerAuthorizationCodeResponse.js";
|
|
7
7
|
import {
|
|
8
8
|
ClientAuthErrorCodes,
|
|
9
9
|
createClientAuthError,
|
|
10
|
-
} from "../error/ClientAuthError";
|
|
10
|
+
} from "../error/ClientAuthError.js";
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
13
|
* Parses hash string from given string. Returns empty string if no hash symbol is found.
|