@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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AuthError.d.ts","sourceRoot":"","sources":["../../../src/error/AuthError.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,cAAc,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAE,cAAc,EAAE,CAAC;AAE1B,eAAO,MAAM,iBAAiB;;;CAI7B,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,gBAAgB;;;;;;;;;CAS5B,CAAC;AAEF;;GAEG;AACH,qBAAa,SAAU,SAAQ,KAAK;IAChC;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;gBAEV,SAAS,CAAC,EAAE,MAAM,EAAE,YAAY,CAAC,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM;IAaxE,gBAAgB,CAAC,aAAa,EAAE,MAAM,GAAG,IAAI;CAGhD;AAED,wBAAgB,eAAe,CAC3B,IAAI,EAAE,MAAM,EACZ,iBAAiB,CAAC,EAAE,MAAM,GAC3B,SAAS,CAOX"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AuthErrorMessage class containing string constants used by error codes and messages.
|
|
3
|
+
*/
|
|
4
|
+
export declare const unexpectedError = "unexpected_error";
|
|
5
|
+
export declare const postRequestFailed = "post_request_failed";
|
|
6
|
+
//# sourceMappingURL=AuthErrorCodes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AuthErrorCodes.d.ts","sourceRoot":"","sources":["../../../src/error/AuthErrorCodes.ts"],"names":[],"mappings":"AAKA;;GAEG;AACH,eAAO,MAAM,eAAe,qBAAqB,CAAC;AAClD,eAAO,MAAM,iBAAiB,wBAAwB,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import * as CacheErrorCodes from "./CacheErrorCodes.js";
|
|
2
|
+
export { CacheErrorCodes };
|
|
3
|
+
export declare const CacheErrorMessages: {
|
|
4
|
+
cache_quota_exceeded: string;
|
|
5
|
+
cache_error_unknown: string;
|
|
6
|
+
};
|
|
7
|
+
/**
|
|
8
|
+
* Error thrown when there is an error with the cache
|
|
9
|
+
*/
|
|
10
|
+
export declare class CacheError extends Error {
|
|
11
|
+
/**
|
|
12
|
+
* Short string denoting error
|
|
13
|
+
*/
|
|
14
|
+
errorCode: string;
|
|
15
|
+
/**
|
|
16
|
+
* Detailed description of error
|
|
17
|
+
*/
|
|
18
|
+
errorMessage: string;
|
|
19
|
+
constructor(errorCode: string, errorMessage?: string);
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=CacheError.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CacheError.d.ts","sourceRoot":"","sources":["../../../src/error/CacheError.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,eAAe,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAE,eAAe,EAAE,CAAC;AAE3B,eAAO,MAAM,kBAAkB;;;CAK9B,CAAC;AAEF;;GAEG;AACH,qBAAa,UAAW,SAAQ,KAAK;IACjC;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;gBAET,SAAS,EAAE,MAAM,EAAE,YAAY,CAAC,EAAE,MAAM;CAcvD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CacheErrorCodes.d.ts","sourceRoot":"","sources":["../../../src/error/CacheErrorCodes.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,2BAA2B,yBAAyB,CAAC;AAClE,eAAO,MAAM,qBAAqB,wBAAwB,CAAC"}
|
|
@@ -0,0 +1,238 @@
|
|
|
1
|
+
import { AuthError } from "./AuthError.js";
|
|
2
|
+
import * as ClientAuthErrorCodes from "./ClientAuthErrorCodes.js";
|
|
3
|
+
export { ClientAuthErrorCodes };
|
|
4
|
+
/**
|
|
5
|
+
* ClientAuthErrorMessage class containing string constants used by error codes and messages.
|
|
6
|
+
*/
|
|
7
|
+
export declare const ClientAuthErrorMessages: {
|
|
8
|
+
client_info_decoding_error: string;
|
|
9
|
+
client_info_empty_error: string;
|
|
10
|
+
token_parsing_error: string;
|
|
11
|
+
null_or_empty_token: string;
|
|
12
|
+
endpoints_resolution_error: string;
|
|
13
|
+
network_error: string;
|
|
14
|
+
openid_config_error: string;
|
|
15
|
+
hash_not_deserialized: string;
|
|
16
|
+
invalid_state: string;
|
|
17
|
+
state_mismatch: string;
|
|
18
|
+
state_not_found: string;
|
|
19
|
+
nonce_mismatch: string;
|
|
20
|
+
auth_time_not_found: string;
|
|
21
|
+
max_age_transpired: string;
|
|
22
|
+
multiple_matching_tokens: string;
|
|
23
|
+
multiple_matching_accounts: string;
|
|
24
|
+
multiple_matching_appMetadata: string;
|
|
25
|
+
request_cannot_be_made: string;
|
|
26
|
+
cannot_remove_empty_scope: string;
|
|
27
|
+
cannot_append_scopeset: string;
|
|
28
|
+
empty_input_scopeset: string;
|
|
29
|
+
device_code_polling_cancelled: string;
|
|
30
|
+
device_code_expired: string;
|
|
31
|
+
device_code_unknown_error: string;
|
|
32
|
+
no_account_in_silent_request: string;
|
|
33
|
+
invalid_cache_record: string;
|
|
34
|
+
invalid_cache_environment: string;
|
|
35
|
+
no_account_found: string;
|
|
36
|
+
no_crypto_object: string;
|
|
37
|
+
unexpected_credential_type: string;
|
|
38
|
+
invalid_assertion: string;
|
|
39
|
+
invalid_client_credential: string;
|
|
40
|
+
token_refresh_required: string;
|
|
41
|
+
user_timeout_reached: string;
|
|
42
|
+
token_claims_cnf_required_for_signedjwt: string;
|
|
43
|
+
authorization_code_missing_from_server_response: string;
|
|
44
|
+
binding_key_not_removed: string;
|
|
45
|
+
end_session_endpoint_not_supported: string;
|
|
46
|
+
key_id_missing: string;
|
|
47
|
+
no_network_connectivity: string;
|
|
48
|
+
user_canceled: string;
|
|
49
|
+
missing_tenant_id_error: string;
|
|
50
|
+
method_not_implemented: string;
|
|
51
|
+
nested_app_auth_bridge_disabled: string;
|
|
52
|
+
};
|
|
53
|
+
/**
|
|
54
|
+
* String constants used by error codes and messages.
|
|
55
|
+
* @deprecated Use ClientAuthErrorCodes instead
|
|
56
|
+
*/
|
|
57
|
+
export declare const ClientAuthErrorMessage: {
|
|
58
|
+
clientInfoDecodingError: {
|
|
59
|
+
code: string;
|
|
60
|
+
desc: string;
|
|
61
|
+
};
|
|
62
|
+
clientInfoEmptyError: {
|
|
63
|
+
code: string;
|
|
64
|
+
desc: string;
|
|
65
|
+
};
|
|
66
|
+
tokenParsingError: {
|
|
67
|
+
code: string;
|
|
68
|
+
desc: string;
|
|
69
|
+
};
|
|
70
|
+
nullOrEmptyToken: {
|
|
71
|
+
code: string;
|
|
72
|
+
desc: string;
|
|
73
|
+
};
|
|
74
|
+
endpointResolutionError: {
|
|
75
|
+
code: string;
|
|
76
|
+
desc: string;
|
|
77
|
+
};
|
|
78
|
+
networkError: {
|
|
79
|
+
code: string;
|
|
80
|
+
desc: string;
|
|
81
|
+
};
|
|
82
|
+
unableToGetOpenidConfigError: {
|
|
83
|
+
code: string;
|
|
84
|
+
desc: string;
|
|
85
|
+
};
|
|
86
|
+
hashNotDeserialized: {
|
|
87
|
+
code: string;
|
|
88
|
+
desc: string;
|
|
89
|
+
};
|
|
90
|
+
invalidStateError: {
|
|
91
|
+
code: string;
|
|
92
|
+
desc: string;
|
|
93
|
+
};
|
|
94
|
+
stateMismatchError: {
|
|
95
|
+
code: string;
|
|
96
|
+
desc: string;
|
|
97
|
+
};
|
|
98
|
+
stateNotFoundError: {
|
|
99
|
+
code: string;
|
|
100
|
+
desc: string;
|
|
101
|
+
};
|
|
102
|
+
nonceMismatchError: {
|
|
103
|
+
code: string;
|
|
104
|
+
desc: string;
|
|
105
|
+
};
|
|
106
|
+
authTimeNotFoundError: {
|
|
107
|
+
code: string;
|
|
108
|
+
desc: string;
|
|
109
|
+
};
|
|
110
|
+
maxAgeTranspired: {
|
|
111
|
+
code: string;
|
|
112
|
+
desc: string;
|
|
113
|
+
};
|
|
114
|
+
multipleMatchingTokens: {
|
|
115
|
+
code: string;
|
|
116
|
+
desc: string;
|
|
117
|
+
};
|
|
118
|
+
multipleMatchingAccounts: {
|
|
119
|
+
code: string;
|
|
120
|
+
desc: string;
|
|
121
|
+
};
|
|
122
|
+
multipleMatchingAppMetadata: {
|
|
123
|
+
code: string;
|
|
124
|
+
desc: string;
|
|
125
|
+
};
|
|
126
|
+
tokenRequestCannotBeMade: {
|
|
127
|
+
code: string;
|
|
128
|
+
desc: string;
|
|
129
|
+
};
|
|
130
|
+
removeEmptyScopeError: {
|
|
131
|
+
code: string;
|
|
132
|
+
desc: string;
|
|
133
|
+
};
|
|
134
|
+
appendScopeSetError: {
|
|
135
|
+
code: string;
|
|
136
|
+
desc: string;
|
|
137
|
+
};
|
|
138
|
+
emptyInputScopeSetError: {
|
|
139
|
+
code: string;
|
|
140
|
+
desc: string;
|
|
141
|
+
};
|
|
142
|
+
DeviceCodePollingCancelled: {
|
|
143
|
+
code: string;
|
|
144
|
+
desc: string;
|
|
145
|
+
};
|
|
146
|
+
DeviceCodeExpired: {
|
|
147
|
+
code: string;
|
|
148
|
+
desc: string;
|
|
149
|
+
};
|
|
150
|
+
DeviceCodeUnknownError: {
|
|
151
|
+
code: string;
|
|
152
|
+
desc: string;
|
|
153
|
+
};
|
|
154
|
+
NoAccountInSilentRequest: {
|
|
155
|
+
code: string;
|
|
156
|
+
desc: string;
|
|
157
|
+
};
|
|
158
|
+
invalidCacheRecord: {
|
|
159
|
+
code: string;
|
|
160
|
+
desc: string;
|
|
161
|
+
};
|
|
162
|
+
invalidCacheEnvironment: {
|
|
163
|
+
code: string;
|
|
164
|
+
desc: string;
|
|
165
|
+
};
|
|
166
|
+
noAccountFound: {
|
|
167
|
+
code: string;
|
|
168
|
+
desc: string;
|
|
169
|
+
};
|
|
170
|
+
noCryptoObj: {
|
|
171
|
+
code: string;
|
|
172
|
+
desc: string;
|
|
173
|
+
};
|
|
174
|
+
unexpectedCredentialType: {
|
|
175
|
+
code: string;
|
|
176
|
+
desc: string;
|
|
177
|
+
};
|
|
178
|
+
invalidAssertion: {
|
|
179
|
+
code: string;
|
|
180
|
+
desc: string;
|
|
181
|
+
};
|
|
182
|
+
invalidClientCredential: {
|
|
183
|
+
code: string;
|
|
184
|
+
desc: string;
|
|
185
|
+
};
|
|
186
|
+
tokenRefreshRequired: {
|
|
187
|
+
code: string;
|
|
188
|
+
desc: string;
|
|
189
|
+
};
|
|
190
|
+
userTimeoutReached: {
|
|
191
|
+
code: string;
|
|
192
|
+
desc: string;
|
|
193
|
+
};
|
|
194
|
+
tokenClaimsRequired: {
|
|
195
|
+
code: string;
|
|
196
|
+
desc: string;
|
|
197
|
+
};
|
|
198
|
+
noAuthorizationCodeFromServer: {
|
|
199
|
+
code: string;
|
|
200
|
+
desc: string;
|
|
201
|
+
};
|
|
202
|
+
bindingKeyNotRemovedError: {
|
|
203
|
+
code: string;
|
|
204
|
+
desc: string;
|
|
205
|
+
};
|
|
206
|
+
logoutNotSupported: {
|
|
207
|
+
code: string;
|
|
208
|
+
desc: string;
|
|
209
|
+
};
|
|
210
|
+
keyIdMissing: {
|
|
211
|
+
code: string;
|
|
212
|
+
desc: string;
|
|
213
|
+
};
|
|
214
|
+
noNetworkConnectivity: {
|
|
215
|
+
code: string;
|
|
216
|
+
desc: string;
|
|
217
|
+
};
|
|
218
|
+
userCanceledError: {
|
|
219
|
+
code: string;
|
|
220
|
+
desc: string;
|
|
221
|
+
};
|
|
222
|
+
missingTenantIdError: {
|
|
223
|
+
code: string;
|
|
224
|
+
desc: string;
|
|
225
|
+
};
|
|
226
|
+
nestedAppAuthBridgeDisabled: {
|
|
227
|
+
code: string;
|
|
228
|
+
desc: string;
|
|
229
|
+
};
|
|
230
|
+
};
|
|
231
|
+
/**
|
|
232
|
+
* Error thrown when there is an error in the client code running on the browser.
|
|
233
|
+
*/
|
|
234
|
+
export declare class ClientAuthError extends AuthError {
|
|
235
|
+
constructor(errorCode: string, additionalMessage?: string);
|
|
236
|
+
}
|
|
237
|
+
export declare function createClientAuthError(errorCode: string, additionalMessage?: string): ClientAuthError;
|
|
238
|
+
//# sourceMappingURL=ClientAuthError.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ClientAuthError.d.ts","sourceRoot":"","sources":["../../../src/error/ClientAuthError.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,KAAK,oBAAoB,MAAM,2BAA2B,CAAC;AAClE,OAAO,EAAE,oBAAoB,EAAE,CAAC;AAEhC;;GAEG;AAEH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgFnC,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyNlC,CAAC;AAEF;;GAEG;AACH,qBAAa,eAAgB,SAAQ,SAAS;gBAC9B,SAAS,EAAE,MAAM,EAAE,iBAAiB,CAAC,EAAE,MAAM;CAW5D;AAED,wBAAgB,qBAAqB,CACjC,SAAS,EAAE,MAAM,EACjB,iBAAiB,CAAC,EAAE,MAAM,GAC3B,eAAe,CAEjB"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
export declare const clientInfoDecodingError = "client_info_decoding_error";
|
|
2
|
+
export declare const clientInfoEmptyError = "client_info_empty_error";
|
|
3
|
+
export declare const tokenParsingError = "token_parsing_error";
|
|
4
|
+
export declare const nullOrEmptyToken = "null_or_empty_token";
|
|
5
|
+
export declare const endpointResolutionError = "endpoints_resolution_error";
|
|
6
|
+
export declare const networkError = "network_error";
|
|
7
|
+
export declare const openIdConfigError = "openid_config_error";
|
|
8
|
+
export declare const hashNotDeserialized = "hash_not_deserialized";
|
|
9
|
+
export declare const invalidState = "invalid_state";
|
|
10
|
+
export declare const stateMismatch = "state_mismatch";
|
|
11
|
+
export declare const stateNotFound = "state_not_found";
|
|
12
|
+
export declare const nonceMismatch = "nonce_mismatch";
|
|
13
|
+
export declare const authTimeNotFound = "auth_time_not_found";
|
|
14
|
+
export declare const maxAgeTranspired = "max_age_transpired";
|
|
15
|
+
export declare const multipleMatchingTokens = "multiple_matching_tokens";
|
|
16
|
+
export declare const multipleMatchingAccounts = "multiple_matching_accounts";
|
|
17
|
+
export declare const multipleMatchingAppMetadata = "multiple_matching_appMetadata";
|
|
18
|
+
export declare const requestCannotBeMade = "request_cannot_be_made";
|
|
19
|
+
export declare const cannotRemoveEmptyScope = "cannot_remove_empty_scope";
|
|
20
|
+
export declare const cannotAppendScopeSet = "cannot_append_scopeset";
|
|
21
|
+
export declare const emptyInputScopeSet = "empty_input_scopeset";
|
|
22
|
+
export declare const deviceCodePollingCancelled = "device_code_polling_cancelled";
|
|
23
|
+
export declare const deviceCodeExpired = "device_code_expired";
|
|
24
|
+
export declare const deviceCodeUnknownError = "device_code_unknown_error";
|
|
25
|
+
export declare const noAccountInSilentRequest = "no_account_in_silent_request";
|
|
26
|
+
export declare const invalidCacheRecord = "invalid_cache_record";
|
|
27
|
+
export declare const invalidCacheEnvironment = "invalid_cache_environment";
|
|
28
|
+
export declare const noAccountFound = "no_account_found";
|
|
29
|
+
export declare const noCryptoObject = "no_crypto_object";
|
|
30
|
+
export declare const unexpectedCredentialType = "unexpected_credential_type";
|
|
31
|
+
export declare const invalidAssertion = "invalid_assertion";
|
|
32
|
+
export declare const invalidClientCredential = "invalid_client_credential";
|
|
33
|
+
export declare const tokenRefreshRequired = "token_refresh_required";
|
|
34
|
+
export declare const userTimeoutReached = "user_timeout_reached";
|
|
35
|
+
export declare const tokenClaimsCnfRequiredForSignedJwt = "token_claims_cnf_required_for_signedjwt";
|
|
36
|
+
export declare const authorizationCodeMissingFromServerResponse = "authorization_code_missing_from_server_response";
|
|
37
|
+
export declare const bindingKeyNotRemoved = "binding_key_not_removed";
|
|
38
|
+
export declare const endSessionEndpointNotSupported = "end_session_endpoint_not_supported";
|
|
39
|
+
export declare const keyIdMissing = "key_id_missing";
|
|
40
|
+
export declare const noNetworkConnectivity = "no_network_connectivity";
|
|
41
|
+
export declare const userCanceled = "user_canceled";
|
|
42
|
+
export declare const missingTenantIdError = "missing_tenant_id_error";
|
|
43
|
+
export declare const methodNotImplemented = "method_not_implemented";
|
|
44
|
+
export declare const nestedAppAuthBridgeDisabled = "nested_app_auth_bridge_disabled";
|
|
45
|
+
//# sourceMappingURL=ClientAuthErrorCodes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ClientAuthErrorCodes.d.ts","sourceRoot":"","sources":["../../../src/error/ClientAuthErrorCodes.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,uBAAuB,+BAA+B,CAAC;AACpE,eAAO,MAAM,oBAAoB,4BAA4B,CAAC;AAC9D,eAAO,MAAM,iBAAiB,wBAAwB,CAAC;AACvD,eAAO,MAAM,gBAAgB,wBAAwB,CAAC;AACtD,eAAO,MAAM,uBAAuB,+BAA+B,CAAC;AACpE,eAAO,MAAM,YAAY,kBAAkB,CAAC;AAC5C,eAAO,MAAM,iBAAiB,wBAAwB,CAAC;AACvD,eAAO,MAAM,mBAAmB,0BAA0B,CAAC;AAC3D,eAAO,MAAM,YAAY,kBAAkB,CAAC;AAC5C,eAAO,MAAM,aAAa,mBAAmB,CAAC;AAC9C,eAAO,MAAM,aAAa,oBAAoB,CAAC;AAC/C,eAAO,MAAM,aAAa,mBAAmB,CAAC;AAC9C,eAAO,MAAM,gBAAgB,wBAAwB,CAAC;AACtD,eAAO,MAAM,gBAAgB,uBAAuB,CAAC;AACrD,eAAO,MAAM,sBAAsB,6BAA6B,CAAC;AACjE,eAAO,MAAM,wBAAwB,+BAA+B,CAAC;AACrE,eAAO,MAAM,2BAA2B,kCAAkC,CAAC;AAC3E,eAAO,MAAM,mBAAmB,2BAA2B,CAAC;AAC5D,eAAO,MAAM,sBAAsB,8BAA8B,CAAC;AAClE,eAAO,MAAM,oBAAoB,2BAA2B,CAAC;AAC7D,eAAO,MAAM,kBAAkB,yBAAyB,CAAC;AACzD,eAAO,MAAM,0BAA0B,kCAAkC,CAAC;AAC1E,eAAO,MAAM,iBAAiB,wBAAwB,CAAC;AACvD,eAAO,MAAM,sBAAsB,8BAA8B,CAAC;AAClE,eAAO,MAAM,wBAAwB,iCAAiC,CAAC;AACvE,eAAO,MAAM,kBAAkB,yBAAyB,CAAC;AACzD,eAAO,MAAM,uBAAuB,8BAA8B,CAAC;AACnE,eAAO,MAAM,cAAc,qBAAqB,CAAC;AACjD,eAAO,MAAM,cAAc,qBAAqB,CAAC;AACjD,eAAO,MAAM,wBAAwB,+BAA+B,CAAC;AACrE,eAAO,MAAM,gBAAgB,sBAAsB,CAAC;AACpD,eAAO,MAAM,uBAAuB,8BAA8B,CAAC;AACnE,eAAO,MAAM,oBAAoB,2BAA2B,CAAC;AAC7D,eAAO,MAAM,kBAAkB,yBAAyB,CAAC;AACzD,eAAO,MAAM,kCAAkC,4CACF,CAAC;AAC9C,eAAO,MAAM,0CAA0C,oDACF,CAAC;AACtD,eAAO,MAAM,oBAAoB,4BAA4B,CAAC;AAC9D,eAAO,MAAM,8BAA8B,uCACH,CAAC;AACzC,eAAO,MAAM,YAAY,mBAAmB,CAAC;AAC7C,eAAO,MAAM,qBAAqB,4BAA4B,CAAC;AAC/D,eAAO,MAAM,YAAY,kBAAkB,CAAC;AAC5C,eAAO,MAAM,oBAAoB,4BAA4B,CAAC;AAC9D,eAAO,MAAM,oBAAoB,2BAA2B,CAAC;AAC7D,eAAO,MAAM,2BAA2B,oCAAoC,CAAC"}
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
import { AuthError } from "./AuthError.js";
|
|
2
|
+
import * as ClientConfigurationErrorCodes from "./ClientConfigurationErrorCodes.js";
|
|
3
|
+
export { ClientConfigurationErrorCodes };
|
|
4
|
+
export declare const ClientConfigurationErrorMessages: {
|
|
5
|
+
redirect_uri_empty: string;
|
|
6
|
+
claims_request_parsing_error: string;
|
|
7
|
+
authority_uri_insecure: string;
|
|
8
|
+
url_parse_error: string;
|
|
9
|
+
empty_url_error: string;
|
|
10
|
+
empty_input_scopes_error: string;
|
|
11
|
+
invalid_prompt_value: string;
|
|
12
|
+
invalid_claims: string;
|
|
13
|
+
token_request_empty: string;
|
|
14
|
+
logout_request_empty: string;
|
|
15
|
+
invalid_code_challenge_method: string;
|
|
16
|
+
pkce_params_missing: string;
|
|
17
|
+
invalid_cloud_discovery_metadata: string;
|
|
18
|
+
invalid_authority_metadata: string;
|
|
19
|
+
untrusted_authority: string;
|
|
20
|
+
missing_ssh_jwk: string;
|
|
21
|
+
missing_ssh_kid: string;
|
|
22
|
+
missing_nonce_authentication_header: string;
|
|
23
|
+
invalid_authentication_header: string;
|
|
24
|
+
cannot_set_OIDCOptions: string;
|
|
25
|
+
cannot_allow_native_broker: string;
|
|
26
|
+
authority_mismatch: string;
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* ClientConfigurationErrorMessage class containing string constants used by error codes and messages.
|
|
30
|
+
* @deprecated Use ClientConfigurationErrorCodes instead
|
|
31
|
+
*/
|
|
32
|
+
export declare const ClientConfigurationErrorMessage: {
|
|
33
|
+
redirectUriNotSet: {
|
|
34
|
+
code: string;
|
|
35
|
+
desc: string;
|
|
36
|
+
};
|
|
37
|
+
claimsRequestParsingError: {
|
|
38
|
+
code: string;
|
|
39
|
+
desc: string;
|
|
40
|
+
};
|
|
41
|
+
authorityUriInsecure: {
|
|
42
|
+
code: string;
|
|
43
|
+
desc: string;
|
|
44
|
+
};
|
|
45
|
+
urlParseError: {
|
|
46
|
+
code: string;
|
|
47
|
+
desc: string;
|
|
48
|
+
};
|
|
49
|
+
urlEmptyError: {
|
|
50
|
+
code: string;
|
|
51
|
+
desc: string;
|
|
52
|
+
};
|
|
53
|
+
emptyScopesError: {
|
|
54
|
+
code: string;
|
|
55
|
+
desc: string;
|
|
56
|
+
};
|
|
57
|
+
invalidPrompt: {
|
|
58
|
+
code: string;
|
|
59
|
+
desc: string;
|
|
60
|
+
};
|
|
61
|
+
invalidClaimsRequest: {
|
|
62
|
+
code: string;
|
|
63
|
+
desc: string;
|
|
64
|
+
};
|
|
65
|
+
tokenRequestEmptyError: {
|
|
66
|
+
code: string;
|
|
67
|
+
desc: string;
|
|
68
|
+
};
|
|
69
|
+
logoutRequestEmptyError: {
|
|
70
|
+
code: string;
|
|
71
|
+
desc: string;
|
|
72
|
+
};
|
|
73
|
+
invalidCodeChallengeMethod: {
|
|
74
|
+
code: string;
|
|
75
|
+
desc: string;
|
|
76
|
+
};
|
|
77
|
+
invalidCodeChallengeParams: {
|
|
78
|
+
code: string;
|
|
79
|
+
desc: string;
|
|
80
|
+
};
|
|
81
|
+
invalidCloudDiscoveryMetadata: {
|
|
82
|
+
code: string;
|
|
83
|
+
desc: string;
|
|
84
|
+
};
|
|
85
|
+
invalidAuthorityMetadata: {
|
|
86
|
+
code: string;
|
|
87
|
+
desc: string;
|
|
88
|
+
};
|
|
89
|
+
untrustedAuthority: {
|
|
90
|
+
code: string;
|
|
91
|
+
desc: string;
|
|
92
|
+
};
|
|
93
|
+
missingSshJwk: {
|
|
94
|
+
code: string;
|
|
95
|
+
desc: string;
|
|
96
|
+
};
|
|
97
|
+
missingSshKid: {
|
|
98
|
+
code: string;
|
|
99
|
+
desc: string;
|
|
100
|
+
};
|
|
101
|
+
missingNonceAuthenticationHeader: {
|
|
102
|
+
code: string;
|
|
103
|
+
desc: string;
|
|
104
|
+
};
|
|
105
|
+
invalidAuthenticationHeader: {
|
|
106
|
+
code: string;
|
|
107
|
+
desc: string;
|
|
108
|
+
};
|
|
109
|
+
cannotSetOIDCOptions: {
|
|
110
|
+
code: string;
|
|
111
|
+
desc: string;
|
|
112
|
+
};
|
|
113
|
+
cannotAllowNativeBroker: {
|
|
114
|
+
code: string;
|
|
115
|
+
desc: string;
|
|
116
|
+
};
|
|
117
|
+
authorityMismatch: {
|
|
118
|
+
code: string;
|
|
119
|
+
desc: string;
|
|
120
|
+
};
|
|
121
|
+
};
|
|
122
|
+
/**
|
|
123
|
+
* Error thrown when there is an error in configuration of the MSAL.js library.
|
|
124
|
+
*/
|
|
125
|
+
export declare class ClientConfigurationError extends AuthError {
|
|
126
|
+
constructor(errorCode: string);
|
|
127
|
+
}
|
|
128
|
+
export declare function createClientConfigurationError(errorCode: string): ClientConfigurationError;
|
|
129
|
+
//# sourceMappingURL=ClientConfigurationError.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ClientConfigurationError.d.ts","sourceRoot":"","sources":["../../../src/error/ClientConfigurationError.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,KAAK,6BAA6B,MAAM,oCAAoC,CAAC;AACpF,OAAO,EAAE,6BAA6B,EAAE,CAAC;AAEzC,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;;;;;;;;;CA4C5C,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqI3C,CAAC;AAEF;;GAEG;AACH,qBAAa,wBAAyB,SAAQ,SAAS;gBACvC,SAAS,EAAE,MAAM;CAKhC;AAED,wBAAgB,8BAA8B,CAC1C,SAAS,EAAE,MAAM,GAClB,wBAAwB,CAE1B"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export declare const redirectUriEmpty = "redirect_uri_empty";
|
|
2
|
+
export declare const claimsRequestParsingError = "claims_request_parsing_error";
|
|
3
|
+
export declare const authorityUriInsecure = "authority_uri_insecure";
|
|
4
|
+
export declare const urlParseError = "url_parse_error";
|
|
5
|
+
export declare const urlEmptyError = "empty_url_error";
|
|
6
|
+
export declare const emptyInputScopesError = "empty_input_scopes_error";
|
|
7
|
+
export declare const invalidPromptValue = "invalid_prompt_value";
|
|
8
|
+
export declare const invalidClaims = "invalid_claims";
|
|
9
|
+
export declare const tokenRequestEmpty = "token_request_empty";
|
|
10
|
+
export declare const logoutRequestEmpty = "logout_request_empty";
|
|
11
|
+
export declare const invalidCodeChallengeMethod = "invalid_code_challenge_method";
|
|
12
|
+
export declare const pkceParamsMissing = "pkce_params_missing";
|
|
13
|
+
export declare const invalidCloudDiscoveryMetadata = "invalid_cloud_discovery_metadata";
|
|
14
|
+
export declare const invalidAuthorityMetadata = "invalid_authority_metadata";
|
|
15
|
+
export declare const untrustedAuthority = "untrusted_authority";
|
|
16
|
+
export declare const missingSshJwk = "missing_ssh_jwk";
|
|
17
|
+
export declare const missingSshKid = "missing_ssh_kid";
|
|
18
|
+
export declare const missingNonceAuthenticationHeader = "missing_nonce_authentication_header";
|
|
19
|
+
export declare const invalidAuthenticationHeader = "invalid_authentication_header";
|
|
20
|
+
export declare const cannotSetOIDCOptions = "cannot_set_OIDCOptions";
|
|
21
|
+
export declare const cannotAllowNativeBroker = "cannot_allow_native_broker";
|
|
22
|
+
export declare const authorityMismatch = "authority_mismatch";
|
|
23
|
+
//# sourceMappingURL=ClientConfigurationErrorCodes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ClientConfigurationErrorCodes.d.ts","sourceRoot":"","sources":["../../../src/error/ClientConfigurationErrorCodes.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,gBAAgB,uBAAuB,CAAC;AACrD,eAAO,MAAM,yBAAyB,iCAAiC,CAAC;AACxE,eAAO,MAAM,oBAAoB,2BAA2B,CAAC;AAC7D,eAAO,MAAM,aAAa,oBAAoB,CAAC;AAC/C,eAAO,MAAM,aAAa,oBAAoB,CAAC;AAC/C,eAAO,MAAM,qBAAqB,6BAA6B,CAAC;AAChE,eAAO,MAAM,kBAAkB,yBAAyB,CAAC;AACzD,eAAO,MAAM,aAAa,mBAAmB,CAAC;AAC9C,eAAO,MAAM,iBAAiB,wBAAwB,CAAC;AACvD,eAAO,MAAM,kBAAkB,yBAAyB,CAAC;AACzD,eAAO,MAAM,0BAA0B,kCAAkC,CAAC;AAC1E,eAAO,MAAM,iBAAiB,wBAAwB,CAAC;AACvD,eAAO,MAAM,6BAA6B,qCAAqC,CAAC;AAChF,eAAO,MAAM,wBAAwB,+BAA+B,CAAC;AACrE,eAAO,MAAM,kBAAkB,wBAAwB,CAAC;AACxD,eAAO,MAAM,aAAa,oBAAoB,CAAC;AAC/C,eAAO,MAAM,aAAa,oBAAoB,CAAC;AAC/C,eAAO,MAAM,gCAAgC,wCACJ,CAAC;AAC1C,eAAO,MAAM,2BAA2B,kCAAkC,CAAC;AAC3E,eAAO,MAAM,oBAAoB,2BAA2B,CAAC;AAC7D,eAAO,MAAM,uBAAuB,+BAA+B,CAAC;AACpE,eAAO,MAAM,iBAAiB,uBAAuB,CAAC"}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { AuthError } from "./AuthError.js";
|
|
2
|
+
import * as InteractionRequiredAuthErrorCodes from "./InteractionRequiredAuthErrorCodes.js";
|
|
3
|
+
export { InteractionRequiredAuthErrorCodes };
|
|
4
|
+
/**
|
|
5
|
+
* InteractionRequiredServerErrorMessage contains string constants used by error codes and messages returned by the server indicating interaction is required
|
|
6
|
+
*/
|
|
7
|
+
export declare const InteractionRequiredServerErrorMessage: string[];
|
|
8
|
+
export declare const InteractionRequiredAuthSubErrorMessage: string[];
|
|
9
|
+
/**
|
|
10
|
+
* Interaction required errors defined by the SDK
|
|
11
|
+
* @deprecated Use InteractionRequiredAuthErrorCodes instead
|
|
12
|
+
*/
|
|
13
|
+
export declare const InteractionRequiredAuthErrorMessage: {
|
|
14
|
+
noTokensFoundError: {
|
|
15
|
+
code: string;
|
|
16
|
+
desc: string;
|
|
17
|
+
};
|
|
18
|
+
native_account_unavailable: {
|
|
19
|
+
code: string;
|
|
20
|
+
desc: string;
|
|
21
|
+
};
|
|
22
|
+
bad_token: {
|
|
23
|
+
code: string;
|
|
24
|
+
desc: string;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
/**
|
|
28
|
+
* Error thrown when user interaction is required.
|
|
29
|
+
*/
|
|
30
|
+
export declare class InteractionRequiredAuthError extends AuthError {
|
|
31
|
+
/**
|
|
32
|
+
* The time the error occured at
|
|
33
|
+
*/
|
|
34
|
+
timestamp: string;
|
|
35
|
+
/**
|
|
36
|
+
* TraceId associated with the error
|
|
37
|
+
*/
|
|
38
|
+
traceId: string;
|
|
39
|
+
/**
|
|
40
|
+
* https://github.com/AzureAD/microsoft-authentication-library-for-js/blob/dev/lib/msal-common/docs/claims-challenge.md
|
|
41
|
+
*
|
|
42
|
+
* A string with extra claims needed for the token request to succeed
|
|
43
|
+
* web site: redirect the user to the authorization page and set the extra claims
|
|
44
|
+
* web api: include the claims in the WWW-Authenticate header that are sent back to the client so that it knows to request a token with the extra claims
|
|
45
|
+
* desktop application or browser context: include the claims when acquiring the token interactively
|
|
46
|
+
* app to app context (client_credentials): include the claims in the AcquireTokenByClientCredential request
|
|
47
|
+
*/
|
|
48
|
+
claims: string;
|
|
49
|
+
/**
|
|
50
|
+
* Server error number;
|
|
51
|
+
*/
|
|
52
|
+
readonly errorNo?: string;
|
|
53
|
+
constructor(errorCode?: string, errorMessage?: string, subError?: string, timestamp?: string, traceId?: string, correlationId?: string, claims?: string, errorNo?: string);
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Helper function used to determine if an error thrown by the server requires interaction to resolve
|
|
57
|
+
* @param errorCode
|
|
58
|
+
* @param errorString
|
|
59
|
+
* @param subError
|
|
60
|
+
*/
|
|
61
|
+
export declare function isInteractionRequiredError(errorCode?: string, errorString?: string, subError?: string): boolean;
|
|
62
|
+
/**
|
|
63
|
+
* Creates an InteractionRequiredAuthError
|
|
64
|
+
*/
|
|
65
|
+
export declare function createInteractionRequiredAuthError(errorCode: string): InteractionRequiredAuthError;
|
|
66
|
+
//# sourceMappingURL=InteractionRequiredAuthError.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InteractionRequiredAuthError.d.ts","sourceRoot":"","sources":["../../../src/error/InteractionRequiredAuthError.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,KAAK,iCAAiC,MAAM,wCAAwC,CAAC;AAC5F,OAAO,EAAE,iCAAiC,EAAE,CAAC;AAE7C;;GAEG;AACH,eAAO,MAAM,qCAAqC,UAKjD,CAAC;AAEF,eAAO,MAAM,sCAAsC,UAOlD,CAAC;AAaF;;;GAGG;AACH,eAAO,MAAM,mCAAmC;;;;;;;;;;;;;CAmB/C,CAAC;AAEF;;GAEG;AACH,qBAAa,4BAA6B,SAAQ,SAAS;IACvD;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;;;;;;;OAQG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;gBAGtB,SAAS,CAAC,EAAE,MAAM,EAClB,YAAY,CAAC,EAAE,MAAM,EACrB,QAAQ,CAAC,EAAE,MAAM,EACjB,SAAS,CAAC,EAAE,MAAM,EAClB,OAAO,CAAC,EAAE,MAAM,EAChB,aAAa,CAAC,EAAE,MAAM,EACtB,MAAM,CAAC,EAAE,MAAM,EACf,OAAO,CAAC,EAAE,MAAM;CAYvB;AAED;;;;;GAKG;AACH,wBAAgB,0BAA0B,CACtC,SAAS,CAAC,EAAE,MAAM,EAClB,WAAW,CAAC,EAAE,MAAM,EACpB,QAAQ,CAAC,EAAE,MAAM,GAClB,OAAO,CAkBT;AAED;;GAEG;AACH,wBAAgB,kCAAkC,CAC9C,SAAS,EAAE,MAAM,GAClB,4BAA4B,CAK9B"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare const noTokensFound = "no_tokens_found";
|
|
2
|
+
export declare const nativeAccountUnavailable = "native_account_unavailable";
|
|
3
|
+
export declare const refreshTokenExpired = "refresh_token_expired";
|
|
4
|
+
export declare const interactionRequired = "interaction_required";
|
|
5
|
+
export declare const consentRequired = "consent_required";
|
|
6
|
+
export declare const loginRequired = "login_required";
|
|
7
|
+
export declare const badToken = "bad_token";
|
|
8
|
+
//# sourceMappingURL=InteractionRequiredAuthErrorCodes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InteractionRequiredAuthErrorCodes.d.ts","sourceRoot":"","sources":["../../../src/error/InteractionRequiredAuthErrorCodes.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,aAAa,oBAAoB,CAAC;AAC/C,eAAO,MAAM,wBAAwB,+BAA+B,CAAC;AACrE,eAAO,MAAM,mBAAmB,0BAA0B,CAAC;AAG3D,eAAO,MAAM,mBAAmB,yBAAyB,CAAC;AAC1D,eAAO,MAAM,eAAe,qBAAqB,CAAC;AAClD,eAAO,MAAM,aAAa,mBAAmB,CAAC;AAC9C,eAAO,MAAM,QAAQ,cAAc,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { AuthError } from "./AuthError.js";
|
|
2
|
+
import * as JoseHeaderErrorCodes from "./JoseHeaderErrorCodes.js";
|
|
3
|
+
export { JoseHeaderErrorCodes };
|
|
4
|
+
export declare const JoseHeaderErrorMessages: {
|
|
5
|
+
missing_kid_error: string;
|
|
6
|
+
missing_alg_error: string;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Error thrown when there is an error in the client code running on the browser.
|
|
10
|
+
*/
|
|
11
|
+
export declare class JoseHeaderError extends AuthError {
|
|
12
|
+
constructor(errorCode: string, errorMessage?: string);
|
|
13
|
+
}
|
|
14
|
+
/** Returns JoseHeaderError object */
|
|
15
|
+
export declare function createJoseHeaderError(code: string): JoseHeaderError;
|
|
16
|
+
//# sourceMappingURL=JoseHeaderError.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"JoseHeaderError.d.ts","sourceRoot":"","sources":["../../../src/error/JoseHeaderError.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,KAAK,oBAAoB,MAAM,2BAA2B,CAAC;AAClE,OAAO,EAAE,oBAAoB,EAAE,CAAC;AAEhC,eAAO,MAAM,uBAAuB;;;CAKnC,CAAC;AAEF;;GAEG;AACH,qBAAa,eAAgB,SAAQ,SAAS;gBAC9B,SAAS,EAAE,MAAM,EAAE,YAAY,CAAC,EAAE,MAAM;CAMvD;AAED,qCAAqC;AACrC,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,MAAM,GAAG,eAAe,CAEnE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"JoseHeaderErrorCodes.d.ts","sourceRoot":"","sources":["../../../src/error/JoseHeaderErrorCodes.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,eAAe,sBAAsB,CAAC;AACnD,eAAO,MAAM,eAAe,sBAAsB,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { AuthError } from "./AuthError.js";
|
|
2
|
+
/**
|
|
3
|
+
* Error thrown when there is an error with the server code, for example, unavailability.
|
|
4
|
+
*/
|
|
5
|
+
export declare class ServerError extends AuthError {
|
|
6
|
+
/**
|
|
7
|
+
* Server error number;
|
|
8
|
+
*/
|
|
9
|
+
readonly errorNo?: string;
|
|
10
|
+
/**
|
|
11
|
+
* Http status number;
|
|
12
|
+
*/
|
|
13
|
+
readonly status?: number;
|
|
14
|
+
constructor(errorCode?: string, errorMessage?: string, subError?: string, errorNo?: string, status?: number);
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=ServerError.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ServerError.d.ts","sourceRoot":"","sources":["../../../src/error/ServerError.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAE3C;;GAEG;AACH,qBAAa,WAAY,SAAQ,SAAS;IACtC;;OAEG;IACH,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAE1B;;OAEG;IACH,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;gBAGrB,SAAS,CAAC,EAAE,MAAM,EAClB,YAAY,CAAC,EAAE,MAAM,EACrB,QAAQ,CAAC,EAAE,MAAM,EACjB,OAAO,CAAC,EAAE,MAAM,EAChB,MAAM,CAAC,EAAE,MAAM;CAStB"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export { SignedHttpRequest, ShrOptions } from "./crypto/SignedHttpRequest.js";
|
|
2
|
+
export { JoseHeader } from "./crypto/JoseHeader.js";
|
|
3
|
+
export { ExternalTokenResponse } from "./response/ExternalTokenResponse.js";
|
|
4
|
+
export { IPerformanceClient, PerformanceCallbackFunction, InProgressPerformanceEvent, QueueMeasurement, } from "./telemetry/performance/IPerformanceClient.js";
|
|
5
|
+
export { IntFields, PerformanceEvent, PerformanceEvents, PerformanceEventStatus, SubMeasurement, } from "./telemetry/performance/PerformanceEvent.js";
|
|
6
|
+
export { IPerformanceMeasurement } from "./telemetry/performance/IPerformanceMeasurement.js";
|
|
7
|
+
export { PerformanceClient, PreQueueEvent, } from "./telemetry/performance/PerformanceClient.js";
|
|
8
|
+
export { StubPerformanceClient } from "./telemetry/performance/StubPerformanceClient.js";
|
|
9
|
+
export { PopTokenGenerator } from "./crypto/PopTokenGenerator.js";
|
|
10
|
+
//# sourceMappingURL=exports-browser-only.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"exports-browser-only.d.ts","sourceRoot":"","sources":["../../src/exports-browser-only.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,iBAAiB,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAC9E,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACpD,OAAO,EAAE,qBAAqB,EAAE,MAAM,qCAAqC,CAAC;AAC5E,OAAO,EACH,kBAAkB,EAClB,2BAA2B,EAC3B,0BAA0B,EAC1B,gBAAgB,GACnB,MAAM,+CAA+C,CAAC;AACvD,OAAO,EACH,SAAS,EACT,gBAAgB,EAChB,iBAAiB,EACjB,sBAAsB,EACtB,cAAc,GACjB,MAAM,6CAA6C,CAAC;AACrD,OAAO,EAAE,uBAAuB,EAAE,MAAM,oDAAoD,CAAC;AAC7F,OAAO,EACH,iBAAiB,EACjB,aAAa,GAChB,MAAM,8CAA8C,CAAC;AACtD,OAAO,EAAE,qBAAqB,EAAE,MAAM,kDAAkD,CAAC;AAEzF,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC"}
|