@azure/msal-common 14.14.1 → 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.d.ts +0 -4
- package/dist/telemetry/performance/PerformanceEvent.d.ts.map +1 -1
- package/dist/telemetry/performance/PerformanceEvent.mjs +1 -5
- package/dist/telemetry/performance/PerformanceEvent.mjs.map +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 -769
- 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/PerformanceEvent.ts +0 -5
- 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
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import * as AuthToken from "./account/AuthToken.js";
|
|
7
|
+
import * as AuthorityFactory from "./authority/AuthorityFactory.js";
|
|
8
|
+
import * as CacheHelpers from "./cache/utils/CacheHelpers.js";
|
|
9
|
+
import * as TimeUtils from "./utils/TimeUtils.js";
|
|
10
|
+
import * as UrlUtils from "./utils/UrlUtils.js";
|
|
11
|
+
import * as AADServerParamKeys from "./constants/AADServerParamKeys.js";
|
|
12
|
+
|
|
13
|
+
export { AuthToken };
|
|
14
|
+
export { AuthorityFactory };
|
|
15
|
+
export { CacheHelpers };
|
|
16
|
+
export { TimeUtils };
|
|
17
|
+
export { UrlUtils };
|
|
18
|
+
export { AADServerParamKeys };
|
|
19
|
+
|
|
20
|
+
export { AuthorizationCodeClient } from "./client/AuthorizationCodeClient.js";
|
|
21
|
+
export { RefreshTokenClient } from "./client/RefreshTokenClient.js";
|
|
22
|
+
export { SilentFlowClient } from "./client/SilentFlowClient.js";
|
|
23
|
+
export { BaseClient } from "./client/BaseClient.js";
|
|
24
|
+
export {
|
|
25
|
+
AuthOptions,
|
|
26
|
+
SystemOptions,
|
|
27
|
+
LoggerOptions,
|
|
28
|
+
CacheOptions,
|
|
29
|
+
DEFAULT_SYSTEM_OPTIONS,
|
|
30
|
+
AzureCloudOptions,
|
|
31
|
+
ApplicationTelemetry,
|
|
32
|
+
} from "./config/ClientConfiguration.js";
|
|
33
|
+
export { ClientConfiguration } from "./config/ClientConfiguration.js";
|
|
34
|
+
export {
|
|
35
|
+
AccountInfo,
|
|
36
|
+
ActiveAccountFilters,
|
|
37
|
+
TenantProfile,
|
|
38
|
+
updateAccountTenantProfileData,
|
|
39
|
+
tenantIdMatchesHomeTenant,
|
|
40
|
+
buildTenantProfile,
|
|
41
|
+
} from "./account/AccountInfo.js";
|
|
42
|
+
export {
|
|
43
|
+
TokenClaims,
|
|
44
|
+
getTenantIdFromIdTokenClaims,
|
|
45
|
+
} from "./account/TokenClaims.js";
|
|
46
|
+
export { TokenClaims as IdTokenClaims } from "./account/TokenClaims.js";
|
|
47
|
+
export { CcsCredential, CcsCredentialType } from "./account/CcsCredential.js";
|
|
48
|
+
export {
|
|
49
|
+
ClientInfo,
|
|
50
|
+
buildClientInfo,
|
|
51
|
+
buildClientInfoFromHomeAccountId,
|
|
52
|
+
} from "./account/ClientInfo.js";
|
|
53
|
+
export {
|
|
54
|
+
Authority,
|
|
55
|
+
formatAuthorityUri,
|
|
56
|
+
buildStaticAuthorityOptions,
|
|
57
|
+
} from "./authority/Authority.js";
|
|
58
|
+
export {
|
|
59
|
+
AuthorityOptions,
|
|
60
|
+
AzureCloudInstance,
|
|
61
|
+
StaticAuthorityOptions,
|
|
62
|
+
} from "./authority/AuthorityOptions.js";
|
|
63
|
+
export { AuthorityType } from "./authority/AuthorityType.js";
|
|
64
|
+
export { ProtocolMode } from "./authority/ProtocolMode.js";
|
|
65
|
+
export { OIDCOptions } from "./authority/OIDCOptions.js";
|
|
66
|
+
export { CacheManager, DefaultStorageClass } from "./cache/CacheManager.js";
|
|
67
|
+
export {
|
|
68
|
+
AccountCache,
|
|
69
|
+
AccountFilter,
|
|
70
|
+
AccessTokenCache,
|
|
71
|
+
IdTokenCache,
|
|
72
|
+
RefreshTokenCache,
|
|
73
|
+
AppMetadataCache,
|
|
74
|
+
CredentialFilter,
|
|
75
|
+
ValidCacheType,
|
|
76
|
+
ValidCredentialType,
|
|
77
|
+
TokenKeys,
|
|
78
|
+
} from "./cache/utils/CacheTypes.js";
|
|
79
|
+
export { CacheRecord } from "./cache/entities/CacheRecord.js";
|
|
80
|
+
export { CredentialEntity } from "./cache/entities/CredentialEntity.js";
|
|
81
|
+
export { AppMetadataEntity } from "./cache/entities/AppMetadataEntity.js";
|
|
82
|
+
export { AccountEntity } from "./cache/entities/AccountEntity.js";
|
|
83
|
+
export { IdTokenEntity } from "./cache/entities/IdTokenEntity.js";
|
|
84
|
+
export { AccessTokenEntity } from "./cache/entities/AccessTokenEntity.js";
|
|
85
|
+
export { RefreshTokenEntity } from "./cache/entities/RefreshTokenEntity.js";
|
|
86
|
+
export { ServerTelemetryEntity } from "./cache/entities/ServerTelemetryEntity.js";
|
|
87
|
+
export { AuthorityMetadataEntity } from "./cache/entities/AuthorityMetadataEntity.js";
|
|
88
|
+
export { ThrottlingEntity } from "./cache/entities/ThrottlingEntity.js";
|
|
89
|
+
export {
|
|
90
|
+
INetworkModule,
|
|
91
|
+
NetworkRequestOptions,
|
|
92
|
+
StubbedNetworkModule,
|
|
93
|
+
} from "./network/INetworkModule.js";
|
|
94
|
+
export {
|
|
95
|
+
NetworkManager,
|
|
96
|
+
NetworkResponse,
|
|
97
|
+
UrlToHttpRequestOptions,
|
|
98
|
+
} from "./network/NetworkManager.js";
|
|
99
|
+
export { ThrottlingUtils } from "./network/ThrottlingUtils.js";
|
|
100
|
+
export { RequestThumbprint } from "./network/RequestThumbprint.js";
|
|
101
|
+
export { IUri } from "./url/IUri.js";
|
|
102
|
+
export { UrlString } from "./url/UrlString.js";
|
|
103
|
+
export {
|
|
104
|
+
ICrypto,
|
|
105
|
+
PkceCodes,
|
|
106
|
+
DEFAULT_CRYPTO_IMPLEMENTATION,
|
|
107
|
+
SignedHttpRequestParameters,
|
|
108
|
+
} from "./crypto/ICrypto.js";
|
|
109
|
+
export { BaseAuthRequest } from "./request/BaseAuthRequest.js";
|
|
110
|
+
export { CommonAuthorizationUrlRequest } from "./request/CommonAuthorizationUrlRequest.js";
|
|
111
|
+
export { CommonAuthorizationCodeRequest } from "./request/CommonAuthorizationCodeRequest.js";
|
|
112
|
+
export { CommonRefreshTokenRequest } from "./request/CommonRefreshTokenRequest.js";
|
|
113
|
+
export { CommonSilentFlowRequest } from "./request/CommonSilentFlowRequest.js";
|
|
114
|
+
export { CommonEndSessionRequest } from "./request/CommonEndSessionRequest.js";
|
|
115
|
+
export { RequestParameterBuilder } from "./request/RequestParameterBuilder.js";
|
|
116
|
+
export { StoreInCache } from "./request/StoreInCache.js";
|
|
117
|
+
export { AzureRegion } from "./authority/AzureRegion.js";
|
|
118
|
+
export { AzureRegionConfiguration } from "./authority/AzureRegionConfiguration.js";
|
|
119
|
+
export { AuthenticationResult } from "./response/AuthenticationResult.js";
|
|
120
|
+
export { AuthorizationCodePayload } from "./response/AuthorizationCodePayload.js";
|
|
121
|
+
export { ServerAuthorizationCodeResponse } from "./response/ServerAuthorizationCodeResponse.js";
|
|
122
|
+
export { ServerAuthorizationTokenResponse } from "./response/ServerAuthorizationTokenResponse.js";
|
|
123
|
+
export {
|
|
124
|
+
ResponseHandler,
|
|
125
|
+
buildAccountToCache,
|
|
126
|
+
} from "./response/ResponseHandler.js";
|
|
127
|
+
export { ScopeSet } from "./request/ScopeSet.js";
|
|
128
|
+
export { AuthenticationHeaderParser } from "./request/AuthenticationHeaderParser.js";
|
|
129
|
+
export { ILoggerCallback, LogLevel, Logger } from "./logger/Logger.js";
|
|
130
|
+
export {
|
|
131
|
+
InteractionRequiredAuthError,
|
|
132
|
+
InteractionRequiredAuthErrorCodes,
|
|
133
|
+
InteractionRequiredAuthErrorMessage,
|
|
134
|
+
createInteractionRequiredAuthError,
|
|
135
|
+
} from "./error/InteractionRequiredAuthError.js";
|
|
136
|
+
export {
|
|
137
|
+
AuthError,
|
|
138
|
+
AuthErrorMessage,
|
|
139
|
+
AuthErrorCodes,
|
|
140
|
+
createAuthError,
|
|
141
|
+
} from "./error/AuthError.js";
|
|
142
|
+
export { ServerError } from "./error/ServerError.js";
|
|
143
|
+
export { CacheError, CacheErrorCodes } from "./error/CacheError.js";
|
|
144
|
+
export {
|
|
145
|
+
ClientAuthError,
|
|
146
|
+
ClientAuthErrorMessage,
|
|
147
|
+
ClientAuthErrorCodes,
|
|
148
|
+
createClientAuthError,
|
|
149
|
+
} from "./error/ClientAuthError.js";
|
|
150
|
+
export {
|
|
151
|
+
ClientConfigurationError,
|
|
152
|
+
ClientConfigurationErrorMessage,
|
|
153
|
+
ClientConfigurationErrorCodes,
|
|
154
|
+
createClientConfigurationError,
|
|
155
|
+
} from "./error/ClientConfigurationError.js";
|
|
156
|
+
export {
|
|
157
|
+
Constants,
|
|
158
|
+
OIDC_DEFAULT_SCOPES,
|
|
159
|
+
PromptValue,
|
|
160
|
+
PersistentCacheKeys,
|
|
161
|
+
ServerResponseType,
|
|
162
|
+
ResponseMode,
|
|
163
|
+
CacheOutcome,
|
|
164
|
+
CredentialType,
|
|
165
|
+
CacheType,
|
|
166
|
+
CacheAccountType,
|
|
167
|
+
AuthenticationScheme,
|
|
168
|
+
CodeChallengeMethodValues,
|
|
169
|
+
PasswordGrantConstants,
|
|
170
|
+
ThrottlingConstants,
|
|
171
|
+
ClaimsRequestKeys,
|
|
172
|
+
HeaderNames,
|
|
173
|
+
Errors,
|
|
174
|
+
THE_FAMILY_ID,
|
|
175
|
+
ONE_DAY_IN_MS,
|
|
176
|
+
GrantType,
|
|
177
|
+
AADAuthorityConstants,
|
|
178
|
+
HttpStatus,
|
|
179
|
+
DEFAULT_TOKEN_RENEWAL_OFFSET_SEC,
|
|
180
|
+
JsonWebTokenTypes,
|
|
181
|
+
} from "./utils/Constants.js";
|
|
182
|
+
export { StringUtils } from "./utils/StringUtils.js";
|
|
183
|
+
export { StringDict } from "./utils/MsalTypes.js";
|
|
184
|
+
export {
|
|
185
|
+
ProtocolUtils,
|
|
186
|
+
RequestStateObject,
|
|
187
|
+
LibraryStateObject,
|
|
188
|
+
} from "./utils/ProtocolUtils.js";
|
|
189
|
+
export * from "./utils/FunctionWrappers.js";
|
|
190
|
+
export { ServerTelemetryManager } from "./telemetry/server/ServerTelemetryManager.js";
|
|
191
|
+
export { ServerTelemetryRequest } from "./telemetry/server/ServerTelemetryRequest.js";
|
|
192
|
+
export { version } from "./packageMetadata.js";
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import * as ClientAssertionUtils from "./utils/ClientAssertionUtils.js";
|
|
7
|
+
|
|
8
|
+
export { ClientAssertionUtils };
|
|
9
|
+
|
|
10
|
+
export {
|
|
11
|
+
IAppTokenProvider,
|
|
12
|
+
AppTokenProviderParameters,
|
|
13
|
+
AppTokenProviderResult,
|
|
14
|
+
} from "./config/AppTokenProvider.js";
|
|
15
|
+
export { INativeBrokerPlugin } from "./broker/nativeBroker/INativeBrokerPlugin.js";
|
|
16
|
+
export { ICachePlugin } from "./cache/interface/ICachePlugin.js";
|
|
17
|
+
export { TokenCacheContext } from "./cache/persistence/TokenCacheContext.js";
|
|
18
|
+
export { ISerializableTokenCache } from "./cache/interface/ISerializableTokenCache.js";
|
|
19
|
+
export { CommonClientCredentialRequest } from "./request/CommonClientCredentialRequest.js";
|
|
20
|
+
export { CommonOnBehalfOfRequest } from "./request/CommonOnBehalfOfRequest.js";
|
|
21
|
+
export { CommonDeviceCodeRequest } from "./request/CommonDeviceCodeRequest.js";
|
|
22
|
+
export { CommonUsernamePasswordRequest } from "./request/CommonUsernamePasswordRequest.js";
|
|
23
|
+
export { NativeRequest } from "./request/NativeRequest.js";
|
|
24
|
+
export { NativeSignOutRequest } from "./request/NativeSignOutRequest.js";
|
|
25
|
+
export {
|
|
26
|
+
ClientAssertion,
|
|
27
|
+
ClientAssertionConfig,
|
|
28
|
+
ClientAssertionCallback,
|
|
29
|
+
} from "./account/ClientCredentials.js";
|
|
30
|
+
export {
|
|
31
|
+
DeviceCodeResponse,
|
|
32
|
+
ServerDeviceCodeResponse,
|
|
33
|
+
} from "./response/DeviceCodeResponse.js";
|
|
34
|
+
export { getClientAssertion } from "./utils/ClientAssertionUtils.js";
|
|
35
|
+
export { IGuidGenerator } from "./crypto/IGuidGenerator.js";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* This file is the entrypoint when importing with the browser subpath e.g. "import { someExport } from @azure/msal-common/browser"
|
|
8
|
+
* Additional exports should be added to the applicable exports-*.ts files
|
|
9
|
+
*/
|
|
10
|
+
export * from "./exports-common.js";
|
|
11
|
+
export * from "./exports-browser-only.js";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* This file is the entrypoint when importing with the node subpath e.g. "import { someExport } from @azure/msal-common/node"
|
|
8
|
+
* Additional exports should be added to the applicable exports-*.ts files
|
|
9
|
+
*/
|
|
10
|
+
export * from "./exports-common.js";
|
|
11
|
+
export * from "./exports-node-only.js";
|
package/src/index.ts
CHANGED
|
@@ -8,253 +8,10 @@
|
|
|
8
8
|
* @module @azure/msal-common
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
export { AuthorizationCodeClient } from "./client/AuthorizationCodeClient";
|
|
19
|
-
export { RefreshTokenClient } from "./client/RefreshTokenClient";
|
|
20
|
-
export { SilentFlowClient } from "./client/SilentFlowClient";
|
|
21
|
-
export { BaseClient } from "./client/BaseClient";
|
|
22
|
-
export {
|
|
23
|
-
AuthOptions,
|
|
24
|
-
SystemOptions,
|
|
25
|
-
LoggerOptions,
|
|
26
|
-
CacheOptions,
|
|
27
|
-
DEFAULT_SYSTEM_OPTIONS,
|
|
28
|
-
AzureCloudOptions,
|
|
29
|
-
ApplicationTelemetry,
|
|
30
|
-
} from "./config/ClientConfiguration";
|
|
31
|
-
export {
|
|
32
|
-
IAppTokenProvider,
|
|
33
|
-
AppTokenProviderParameters,
|
|
34
|
-
AppTokenProviderResult,
|
|
35
|
-
} from "./config/AppTokenProvider";
|
|
36
|
-
export { ClientConfiguration } from "./config/ClientConfiguration";
|
|
37
|
-
// Account
|
|
38
|
-
export {
|
|
39
|
-
AccountInfo,
|
|
40
|
-
ActiveAccountFilters,
|
|
41
|
-
TenantProfile,
|
|
42
|
-
updateAccountTenantProfileData,
|
|
43
|
-
tenantIdMatchesHomeTenant,
|
|
44
|
-
buildTenantProfile,
|
|
45
|
-
} from "./account/AccountInfo";
|
|
46
|
-
export { AuthToken };
|
|
47
|
-
export {
|
|
48
|
-
TokenClaims,
|
|
49
|
-
getTenantIdFromIdTokenClaims,
|
|
50
|
-
} from "./account/TokenClaims";
|
|
51
|
-
export { TokenClaims as IdTokenClaims } from "./account/TokenClaims";
|
|
52
|
-
export { CcsCredential, CcsCredentialType } from "./account/CcsCredential";
|
|
53
|
-
export {
|
|
54
|
-
ClientInfo,
|
|
55
|
-
buildClientInfo,
|
|
56
|
-
buildClientInfoFromHomeAccountId,
|
|
57
|
-
} from "./account/ClientInfo";
|
|
58
|
-
// Authority
|
|
59
|
-
export {
|
|
60
|
-
Authority,
|
|
61
|
-
formatAuthorityUri,
|
|
62
|
-
buildStaticAuthorityOptions,
|
|
63
|
-
} from "./authority/Authority";
|
|
64
|
-
export {
|
|
65
|
-
AuthorityOptions,
|
|
66
|
-
AzureCloudInstance,
|
|
67
|
-
StaticAuthorityOptions,
|
|
68
|
-
} from "./authority/AuthorityOptions";
|
|
69
|
-
export { AuthorityFactory };
|
|
70
|
-
export { AuthorityType } from "./authority/AuthorityType";
|
|
71
|
-
export { ProtocolMode } from "./authority/ProtocolMode";
|
|
72
|
-
export { OIDCOptions } from "./authority/OIDCOptions";
|
|
73
|
-
// Broker
|
|
74
|
-
export { INativeBrokerPlugin } from "./broker/nativeBroker/INativeBrokerPlugin";
|
|
75
|
-
// Cache
|
|
76
|
-
export { CacheManager, DefaultStorageClass } from "./cache/CacheManager";
|
|
77
|
-
export {
|
|
78
|
-
AccountCache,
|
|
79
|
-
AccountFilter,
|
|
80
|
-
AccessTokenCache,
|
|
81
|
-
IdTokenCache,
|
|
82
|
-
RefreshTokenCache,
|
|
83
|
-
AppMetadataCache,
|
|
84
|
-
CredentialFilter,
|
|
85
|
-
ValidCacheType,
|
|
86
|
-
ValidCredentialType,
|
|
87
|
-
TokenKeys,
|
|
88
|
-
} from "./cache/utils/CacheTypes";
|
|
89
|
-
export { CacheRecord } from "./cache/entities/CacheRecord";
|
|
90
|
-
export { CredentialEntity } from "./cache/entities/CredentialEntity";
|
|
91
|
-
export { CacheHelpers };
|
|
92
|
-
export { AppMetadataEntity } from "./cache/entities/AppMetadataEntity";
|
|
93
|
-
export { AccountEntity } from "./cache/entities/AccountEntity";
|
|
94
|
-
export { IdTokenEntity } from "./cache/entities/IdTokenEntity";
|
|
95
|
-
export { AccessTokenEntity } from "./cache/entities/AccessTokenEntity";
|
|
96
|
-
export { RefreshTokenEntity } from "./cache/entities/RefreshTokenEntity";
|
|
97
|
-
export { ServerTelemetryEntity } from "./cache/entities/ServerTelemetryEntity";
|
|
98
|
-
export { AuthorityMetadataEntity } from "./cache/entities/AuthorityMetadataEntity";
|
|
99
|
-
export { ThrottlingEntity } from "./cache/entities/ThrottlingEntity";
|
|
100
|
-
export { ICachePlugin } from "./cache/interface/ICachePlugin";
|
|
101
|
-
export { TokenCacheContext } from "./cache/persistence/TokenCacheContext";
|
|
102
|
-
export { ISerializableTokenCache } from "./cache/interface/ISerializableTokenCache";
|
|
103
|
-
// Network Interface
|
|
104
|
-
export {
|
|
105
|
-
INetworkModule,
|
|
106
|
-
NetworkRequestOptions,
|
|
107
|
-
StubbedNetworkModule,
|
|
108
|
-
} from "./network/INetworkModule";
|
|
109
|
-
export {
|
|
110
|
-
NetworkManager,
|
|
111
|
-
NetworkResponse,
|
|
112
|
-
UrlToHttpRequestOptions,
|
|
113
|
-
} from "./network/NetworkManager";
|
|
114
|
-
export { ThrottlingUtils } from "./network/ThrottlingUtils";
|
|
115
|
-
export { RequestThumbprint } from "./network/RequestThumbprint";
|
|
116
|
-
export { IUri } from "./url/IUri";
|
|
117
|
-
export { UrlString } from "./url/UrlString";
|
|
118
|
-
// Crypto Interface
|
|
119
|
-
export {
|
|
120
|
-
ICrypto,
|
|
121
|
-
PkceCodes,
|
|
122
|
-
DEFAULT_CRYPTO_IMPLEMENTATION,
|
|
123
|
-
SignedHttpRequestParameters,
|
|
124
|
-
} from "./crypto/ICrypto";
|
|
125
|
-
export { SignedHttpRequest, ShrOptions } from "./crypto/SignedHttpRequest";
|
|
126
|
-
export { IGuidGenerator } from "./crypto/IGuidGenerator";
|
|
127
|
-
export { JoseHeader } from "./crypto/JoseHeader";
|
|
128
|
-
// Request
|
|
129
|
-
export { BaseAuthRequest } from "./request/BaseAuthRequest";
|
|
130
|
-
export { CommonAuthorizationUrlRequest } from "./request/CommonAuthorizationUrlRequest";
|
|
131
|
-
export { CommonAuthorizationCodeRequest } from "./request/CommonAuthorizationCodeRequest";
|
|
132
|
-
export { CommonRefreshTokenRequest } from "./request/CommonRefreshTokenRequest";
|
|
133
|
-
export { CommonClientCredentialRequest } from "./request/CommonClientCredentialRequest";
|
|
134
|
-
export { CommonOnBehalfOfRequest } from "./request/CommonOnBehalfOfRequest";
|
|
135
|
-
export { CommonSilentFlowRequest } from "./request/CommonSilentFlowRequest";
|
|
136
|
-
export { CommonDeviceCodeRequest } from "./request/CommonDeviceCodeRequest";
|
|
137
|
-
export { CommonEndSessionRequest } from "./request/CommonEndSessionRequest";
|
|
138
|
-
export { CommonUsernamePasswordRequest } from "./request/CommonUsernamePasswordRequest";
|
|
139
|
-
export { NativeRequest } from "./request/NativeRequest";
|
|
140
|
-
export { NativeSignOutRequest } from "./request/NativeSignOutRequest";
|
|
141
|
-
export { RequestParameterBuilder } from "./request/RequestParameterBuilder";
|
|
142
|
-
export { StoreInCache } from "./request/StoreInCache";
|
|
143
|
-
export {
|
|
144
|
-
ClientAssertion,
|
|
145
|
-
ClientAssertionConfig,
|
|
146
|
-
ClientAssertionCallback,
|
|
147
|
-
} from "./account/ClientCredentials";
|
|
148
|
-
// Response
|
|
149
|
-
export { AzureRegion } from "./authority/AzureRegion";
|
|
150
|
-
export { AzureRegionConfiguration } from "./authority/AzureRegionConfiguration";
|
|
151
|
-
export { AuthenticationResult } from "./response/AuthenticationResult";
|
|
152
|
-
export { AuthorizationCodePayload } from "./response/AuthorizationCodePayload";
|
|
153
|
-
export { ServerAuthorizationCodeResponse } from "./response/ServerAuthorizationCodeResponse";
|
|
154
|
-
export { ServerAuthorizationTokenResponse } from "./response/ServerAuthorizationTokenResponse";
|
|
155
|
-
export { ExternalTokenResponse } from "./response/ExternalTokenResponse";
|
|
156
|
-
export {
|
|
157
|
-
DeviceCodeResponse,
|
|
158
|
-
ServerDeviceCodeResponse,
|
|
159
|
-
} from "./response/DeviceCodeResponse";
|
|
160
|
-
export {
|
|
161
|
-
ResponseHandler,
|
|
162
|
-
buildAccountToCache,
|
|
163
|
-
} from "./response/ResponseHandler";
|
|
164
|
-
export { ScopeSet } from "./request/ScopeSet";
|
|
165
|
-
export { AuthenticationHeaderParser } from "./request/AuthenticationHeaderParser";
|
|
166
|
-
// Logger Callback
|
|
167
|
-
export { ILoggerCallback, LogLevel, Logger } from "./logger/Logger";
|
|
168
|
-
// Errors
|
|
169
|
-
export {
|
|
170
|
-
InteractionRequiredAuthError,
|
|
171
|
-
InteractionRequiredAuthErrorCodes,
|
|
172
|
-
InteractionRequiredAuthErrorMessage,
|
|
173
|
-
createInteractionRequiredAuthError,
|
|
174
|
-
} from "./error/InteractionRequiredAuthError";
|
|
175
|
-
export {
|
|
176
|
-
AuthError,
|
|
177
|
-
AuthErrorMessage,
|
|
178
|
-
AuthErrorCodes,
|
|
179
|
-
createAuthError,
|
|
180
|
-
} from "./error/AuthError";
|
|
181
|
-
export { ServerError } from "./error/ServerError";
|
|
182
|
-
export { CacheError, CacheErrorCodes } from "./error/CacheError";
|
|
183
|
-
export {
|
|
184
|
-
ClientAuthError,
|
|
185
|
-
ClientAuthErrorMessage,
|
|
186
|
-
ClientAuthErrorCodes,
|
|
187
|
-
createClientAuthError,
|
|
188
|
-
} from "./error/ClientAuthError";
|
|
189
|
-
export {
|
|
190
|
-
ClientConfigurationError,
|
|
191
|
-
ClientConfigurationErrorMessage,
|
|
192
|
-
ClientConfigurationErrorCodes,
|
|
193
|
-
createClientConfigurationError,
|
|
194
|
-
} from "./error/ClientConfigurationError";
|
|
195
|
-
// Constants and Utils
|
|
196
|
-
export { getClientAssertion } from "./utils/ClientAssertionUtils";
|
|
197
|
-
export {
|
|
198
|
-
Constants,
|
|
199
|
-
OIDC_DEFAULT_SCOPES,
|
|
200
|
-
PromptValue,
|
|
201
|
-
PersistentCacheKeys,
|
|
202
|
-
ServerResponseType,
|
|
203
|
-
ResponseMode,
|
|
204
|
-
CacheOutcome,
|
|
205
|
-
CredentialType,
|
|
206
|
-
CacheType,
|
|
207
|
-
CacheAccountType,
|
|
208
|
-
AuthenticationScheme,
|
|
209
|
-
CodeChallengeMethodValues,
|
|
210
|
-
PasswordGrantConstants,
|
|
211
|
-
ThrottlingConstants,
|
|
212
|
-
ClaimsRequestKeys,
|
|
213
|
-
HeaderNames,
|
|
214
|
-
Errors,
|
|
215
|
-
THE_FAMILY_ID,
|
|
216
|
-
ONE_DAY_IN_MS,
|
|
217
|
-
GrantType,
|
|
218
|
-
AADAuthorityConstants,
|
|
219
|
-
HttpStatus,
|
|
220
|
-
DEFAULT_TOKEN_RENEWAL_OFFSET_SEC,
|
|
221
|
-
JsonWebTokenTypes,
|
|
222
|
-
} from "./utils/Constants";
|
|
223
|
-
export { AADServerParamKeys };
|
|
224
|
-
export { StringUtils } from "./utils/StringUtils";
|
|
225
|
-
export { StringDict } from "./utils/MsalTypes";
|
|
226
|
-
export {
|
|
227
|
-
ProtocolUtils,
|
|
228
|
-
RequestStateObject,
|
|
229
|
-
LibraryStateObject,
|
|
230
|
-
} from "./utils/ProtocolUtils";
|
|
231
|
-
export { TimeUtils, UrlUtils, ClientAssertionUtils };
|
|
232
|
-
export * from "./utils/FunctionWrappers";
|
|
233
|
-
// Server Telemetry
|
|
234
|
-
export { ServerTelemetryManager } from "./telemetry/server/ServerTelemetryManager";
|
|
235
|
-
export { ServerTelemetryRequest } from "./telemetry/server/ServerTelemetryRequest";
|
|
236
|
-
|
|
237
|
-
// Performance Telemetry
|
|
238
|
-
export {
|
|
239
|
-
IPerformanceClient,
|
|
240
|
-
PerformanceCallbackFunction,
|
|
241
|
-
InProgressPerformanceEvent,
|
|
242
|
-
QueueMeasurement,
|
|
243
|
-
} from "./telemetry/performance/IPerformanceClient";
|
|
244
|
-
export {
|
|
245
|
-
IntFields,
|
|
246
|
-
PerformanceEvent,
|
|
247
|
-
PerformanceEvents,
|
|
248
|
-
PerformanceEventStatus,
|
|
249
|
-
SubMeasurement,
|
|
250
|
-
} from "./telemetry/performance/PerformanceEvent";
|
|
251
|
-
export { IPerformanceMeasurement } from "./telemetry/performance/IPerformanceMeasurement";
|
|
252
|
-
export {
|
|
253
|
-
PerformanceClient,
|
|
254
|
-
PreQueueEvent,
|
|
255
|
-
} from "./telemetry/performance/PerformanceClient";
|
|
256
|
-
export { StubPerformanceClient } from "./telemetry/performance/StubPerformanceClient";
|
|
257
|
-
|
|
258
|
-
export { PopTokenGenerator } from "./crypto/PopTokenGenerator";
|
|
259
|
-
|
|
260
|
-
export { version } from "./packageMetadata";
|
|
11
|
+
/**
|
|
12
|
+
* This file is the entrypoint when importing without a specific subpath e.g. "import { someExport } from @azure/msal-common"
|
|
13
|
+
* Additional exports should be added to the applicable exports-*.ts files
|
|
14
|
+
*/
|
|
15
|
+
export * from "./exports-common.js";
|
|
16
|
+
export * from "./exports-browser-only.js";
|
|
17
|
+
export * from "./exports-node-only.js";
|
package/src/logger/Logger.ts
CHANGED
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import { LoggerOptions } from "../config/ClientConfiguration";
|
|
7
|
-
import { Constants } from "../utils/Constants";
|
|
6
|
+
import { LoggerOptions } from "../config/ClientConfiguration.js";
|
|
7
|
+
import { Constants } from "../utils/Constants.js";
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* Options for logger messages.
|
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
import {
|
|
7
7
|
ClientAuthErrorCodes,
|
|
8
8
|
createClientAuthError,
|
|
9
|
-
} from "../error/ClientAuthError";
|
|
10
|
-
import { NetworkResponse } from "./NetworkManager";
|
|
9
|
+
} from "../error/ClientAuthError.js";
|
|
10
|
+
import { NetworkResponse } from "./NetworkManager.js";
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
13
|
* Options allowed by network request APIs.
|
|
@@ -3,16 +3,16 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import { INetworkModule, NetworkRequestOptions } from "./INetworkModule";
|
|
7
|
-
import { RequestThumbprint } from "./RequestThumbprint";
|
|
8
|
-
import { ThrottlingUtils } from "./ThrottlingUtils";
|
|
9
|
-
import { CacheManager } from "../cache/CacheManager";
|
|
10
|
-
import { AuthError } from "../error/AuthError";
|
|
6
|
+
import { INetworkModule, NetworkRequestOptions } from "./INetworkModule.js";
|
|
7
|
+
import { RequestThumbprint } from "./RequestThumbprint.js";
|
|
8
|
+
import { ThrottlingUtils } from "./ThrottlingUtils.js";
|
|
9
|
+
import { CacheManager } from "../cache/CacheManager.js";
|
|
10
|
+
import { AuthError } from "../error/AuthError.js";
|
|
11
11
|
import {
|
|
12
12
|
ClientAuthErrorCodes,
|
|
13
13
|
createClientAuthError,
|
|
14
|
-
} from "../error/ClientAuthError";
|
|
15
|
-
import { ServerAuthorizationTokenResponse } from "../response/ServerAuthorizationTokenResponse";
|
|
14
|
+
} from "../error/ClientAuthError.js";
|
|
15
|
+
import { ServerAuthorizationTokenResponse } from "../response/ServerAuthorizationTokenResponse.js";
|
|
16
16
|
|
|
17
17
|
export type NetworkResponse<T> = {
|
|
18
18
|
headers: Record<string, string>;
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import { ShrOptions } from "../crypto/SignedHttpRequest";
|
|
7
|
-
import { AuthenticationScheme } from "../utils/Constants";
|
|
6
|
+
import { ShrOptions } from "../crypto/SignedHttpRequest.js";
|
|
7
|
+
import { AuthenticationScheme } from "../utils/Constants.js";
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* Type representing a unique request thumbprint.
|
|
@@ -3,18 +3,18 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import { NetworkResponse } from "./NetworkManager";
|
|
7
|
-
import { ServerAuthorizationTokenResponse } from "../response/ServerAuthorizationTokenResponse";
|
|
6
|
+
import { NetworkResponse } from "./NetworkManager.js";
|
|
7
|
+
import { ServerAuthorizationTokenResponse } from "../response/ServerAuthorizationTokenResponse.js";
|
|
8
8
|
import {
|
|
9
9
|
HeaderNames,
|
|
10
10
|
ThrottlingConstants,
|
|
11
11
|
Constants,
|
|
12
|
-
} from "../utils/Constants";
|
|
13
|
-
import { CacheManager } from "../cache/CacheManager";
|
|
14
|
-
import { ServerError } from "../error/ServerError";
|
|
15
|
-
import { RequestThumbprint } from "./RequestThumbprint";
|
|
16
|
-
import { ThrottlingEntity } from "../cache/entities/ThrottlingEntity";
|
|
17
|
-
import { BaseAuthRequest } from "../request/BaseAuthRequest";
|
|
12
|
+
} from "../utils/Constants.js";
|
|
13
|
+
import { CacheManager } from "../cache/CacheManager.js";
|
|
14
|
+
import { ServerError } from "../error/ServerError.js";
|
|
15
|
+
import { RequestThumbprint } from "./RequestThumbprint.js";
|
|
16
|
+
import { ThrottlingEntity } from "../cache/entities/ThrottlingEntity.js";
|
|
17
|
+
import { BaseAuthRequest } from "../request/BaseAuthRequest.js";
|
|
18
18
|
|
|
19
19
|
/** @internal */
|
|
20
20
|
export class ThrottlingUtils {
|
package/src/packageMetadata.ts
CHANGED
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
import {
|
|
7
7
|
createClientConfigurationError,
|
|
8
8
|
ClientConfigurationErrorCodes,
|
|
9
|
-
} from "../error/ClientConfigurationError";
|
|
10
|
-
import { Constants, HeaderNames } from "../utils/Constants";
|
|
9
|
+
} from "../error/ClientConfigurationError.js";
|
|
10
|
+
import { Constants, HeaderNames } from "../utils/Constants.js";
|
|
11
11
|
|
|
12
12
|
type WWWAuthenticateChallenges = {
|
|
13
13
|
nonce?: string;
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import { AuthenticationScheme } from "../utils/Constants";
|
|
7
|
-
import { AzureCloudOptions } from "../config/ClientConfiguration";
|
|
8
|
-
import { StringDict } from "../utils/MsalTypes";
|
|
9
|
-
import { StoreInCache } from "./StoreInCache";
|
|
10
|
-
import { ShrOptions } from "../crypto/SignedHttpRequest";
|
|
6
|
+
import { AuthenticationScheme } from "../utils/Constants.js";
|
|
7
|
+
import { AzureCloudOptions } from "../config/ClientConfiguration.js";
|
|
8
|
+
import { StringDict } from "../utils/MsalTypes.js";
|
|
9
|
+
import { StoreInCache } from "./StoreInCache.js";
|
|
10
|
+
import { ShrOptions } from "../crypto/SignedHttpRequest.js";
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
13
|
* BaseAuthRequest
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import { BaseAuthRequest } from "./BaseAuthRequest";
|
|
7
|
-
import { StringDict } from "../utils/MsalTypes";
|
|
8
|
-
import { CcsCredential } from "../account/CcsCredential";
|
|
6
|
+
import { BaseAuthRequest } from "./BaseAuthRequest.js";
|
|
7
|
+
import { StringDict } from "../utils/MsalTypes.js";
|
|
8
|
+
import { CcsCredential } from "../account/CcsCredential.js";
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* Request object passed by user to acquire a token from the server exchanging a valid authorization code (second leg of OAuth2.0 Authorization Code flow)
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import { ResponseMode } from "../utils/Constants";
|
|
7
|
-
import { StringDict } from "../utils/MsalTypes";
|
|
8
|
-
import { BaseAuthRequest } from "./BaseAuthRequest";
|
|
9
|
-
import { AccountInfo } from "../account/AccountInfo";
|
|
6
|
+
import { ResponseMode } from "../utils/Constants.js";
|
|
7
|
+
import { StringDict } from "../utils/MsalTypes.js";
|
|
8
|
+
import { BaseAuthRequest } from "./BaseAuthRequest.js";
|
|
9
|
+
import { AccountInfo } from "../account/AccountInfo.js";
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
12
|
* Request object passed by user to retrieve a Code from the server (first leg of authorization code grant flow)
|