@azure/msal-common 15.13.3 → 16.0.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/account/AccountInfo.d.ts +0 -1
- package/dist/account/AccountInfo.d.ts.map +1 -1
- package/dist/account/AccountInfo.mjs +1 -1
- package/dist/account/AccountInfo.mjs.map +1 -1
- package/dist/account/AuthToken.d.ts.map +1 -1
- package/dist/account/AuthToken.mjs +2 -3
- package/dist/account/AuthToken.mjs.map +1 -1
- package/dist/account/CcsCredential.mjs +1 -1
- package/dist/account/ClientInfo.d.ts.map +1 -1
- package/dist/account/ClientInfo.mjs +4 -6
- package/dist/account/ClientInfo.mjs.map +1 -1
- package/dist/account/TokenClaims.mjs +1 -1
- package/dist/authority/Authority.d.ts +2 -2
- package/dist/authority/Authority.d.ts.map +1 -1
- package/dist/authority/Authority.mjs +89 -105
- package/dist/authority/Authority.mjs.map +1 -1
- package/dist/authority/AuthorityFactory.d.ts +6 -2
- package/dist/authority/AuthorityFactory.d.ts.map +1 -1
- package/dist/authority/AuthorityFactory.mjs +8 -5
- package/dist/authority/AuthorityFactory.mjs.map +1 -1
- package/dist/authority/AuthorityMetadata.d.ts +2 -2
- package/dist/authority/AuthorityMetadata.d.ts.map +1 -1
- package/dist/authority/AuthorityMetadata.mjs +34 -31
- package/dist/authority/AuthorityMetadata.mjs.map +1 -1
- package/dist/authority/AuthorityOptions.d.ts +0 -1
- package/dist/authority/AuthorityOptions.d.ts.map +1 -1
- package/dist/authority/AuthorityOptions.mjs +1 -1
- package/dist/authority/AuthorityOptions.mjs.map +1 -1
- package/dist/authority/AuthorityType.mjs +1 -1
- package/dist/authority/CloudInstanceDiscoveryErrorResponse.mjs +1 -1
- package/dist/authority/CloudInstanceDiscoveryResponse.mjs +1 -1
- package/dist/authority/OIDCOptions.d.ts +2 -2
- package/dist/authority/OIDCOptions.d.ts.map +1 -1
- package/dist/authority/OpenIdConfigResponse.mjs +1 -1
- package/dist/authority/ProtocolMode.mjs +1 -1
- package/dist/authority/RegionDiscovery.d.ts +3 -3
- package/dist/authority/RegionDiscovery.d.ts.map +1 -1
- package/dist/authority/RegionDiscovery.mjs +14 -15
- package/dist/authority/RegionDiscovery.mjs.map +1 -1
- package/dist/cache/CacheManager.d.ts +26 -19
- package/dist/cache/CacheManager.d.ts.map +1 -1
- package/dist/cache/CacheManager.mjs +70 -83
- package/dist/cache/CacheManager.mjs.map +1 -1
- package/dist/cache/entities/AccessTokenEntity.d.ts +0 -4
- package/dist/cache/entities/AccessTokenEntity.d.ts.map +1 -1
- package/dist/cache/entities/AccountEntity.d.ts +4 -56
- package/dist/cache/entities/AccountEntity.d.ts.map +1 -1
- package/dist/cache/entities/CredentialEntity.d.ts +0 -2
- package/dist/cache/entities/CredentialEntity.d.ts.map +1 -1
- package/dist/cache/interface/ICacheManager.d.ts +35 -17
- package/dist/cache/interface/ICacheManager.d.ts.map +1 -1
- package/dist/cache/persistence/TokenCacheContext.mjs +1 -1
- package/dist/cache/utils/AccountEntityUtils.d.ts +53 -0
- package/dist/cache/utils/AccountEntityUtils.d.ts.map +1 -0
- package/dist/cache/utils/AccountEntityUtils.mjs +192 -0
- package/dist/cache/utils/AccountEntityUtils.mjs.map +1 -0
- package/dist/cache/utils/CacheHelpers.d.ts +2 -2
- package/dist/cache/utils/CacheHelpers.d.ts.map +1 -1
- package/dist/cache/utils/CacheHelpers.mjs +10 -13
- package/dist/cache/utils/CacheHelpers.mjs.map +1 -1
- package/dist/cache/utils/CacheTypes.d.ts +0 -1
- package/dist/cache/utils/CacheTypes.d.ts.map +1 -1
- package/dist/client/AuthorizationCodeClient.d.ts +23 -4
- package/dist/client/AuthorizationCodeClient.d.ts.map +1 -1
- package/dist/client/AuthorizationCodeClient.mjs +63 -35
- package/dist/client/AuthorizationCodeClient.mjs.map +1 -1
- package/dist/client/RefreshTokenClient.d.ts +17 -4
- package/dist/client/RefreshTokenClient.d.ts.map +1 -1
- package/dist/client/RefreshTokenClient.mjs +51 -37
- package/dist/client/RefreshTokenClient.mjs.map +1 -1
- package/dist/client/SilentFlowClient.d.ts +17 -4
- package/dist/client/SilentFlowClient.d.ts.map +1 -1
- package/dist/client/SilentFlowClient.mjs +28 -15
- package/dist/client/SilentFlowClient.mjs.map +1 -1
- package/dist/config/ClientConfiguration.d.ts +2 -22
- package/dist/config/ClientConfiguration.d.ts.map +1 -1
- package/dist/config/ClientConfiguration.mjs +9 -15
- package/dist/config/ClientConfiguration.mjs.map +1 -1
- package/dist/constants/AADServerParamKeys.mjs +1 -1
- package/dist/crypto/ICrypto.d.ts +5 -3
- package/dist/crypto/ICrypto.d.ts.map +1 -1
- package/dist/crypto/ICrypto.mjs +1 -1
- package/dist/crypto/ICrypto.mjs.map +1 -1
- package/dist/crypto/JoseHeader.mjs +1 -1
- package/dist/crypto/PopTokenGenerator.d.ts +2 -2
- package/dist/crypto/PopTokenGenerator.d.ts.map +1 -1
- package/dist/crypto/PopTokenGenerator.mjs +3 -5
- package/dist/crypto/PopTokenGenerator.mjs.map +1 -1
- package/dist/error/AuthError.d.ts +1 -18
- package/dist/error/AuthError.d.ts.map +1 -1
- package/dist/error/AuthError.mjs +12 -34
- package/dist/error/AuthError.mjs.map +1 -1
- package/dist/error/AuthErrorCodes.mjs +1 -1
- package/dist/error/CacheError.d.ts +1 -6
- package/dist/error/CacheError.d.ts.map +1 -1
- package/dist/error/CacheError.mjs +6 -13
- package/dist/error/CacheError.mjs.map +1 -1
- package/dist/error/CacheErrorCodes.mjs +1 -1
- package/dist/error/ClientAuthError.d.ts +0 -229
- package/dist/error/ClientAuthError.d.ts.map +1 -1
- package/dist/error/ClientAuthError.mjs +3 -240
- package/dist/error/ClientAuthError.mjs.map +1 -1
- package/dist/error/ClientAuthErrorCodes.d.ts +0 -8
- package/dist/error/ClientAuthErrorCodes.d.ts.map +1 -1
- package/dist/error/ClientAuthErrorCodes.mjs +2 -10
- package/dist/error/ClientAuthErrorCodes.mjs.map +1 -1
- package/dist/error/ClientConfigurationError.d.ts +0 -128
- package/dist/error/ClientConfigurationError.d.ts.map +1 -1
- package/dist/error/ClientConfigurationError.mjs +3 -134
- package/dist/error/ClientConfigurationError.mjs.map +1 -1
- package/dist/error/ClientConfigurationErrorCodes.d.ts +0 -2
- package/dist/error/ClientConfigurationErrorCodes.d.ts.map +1 -1
- package/dist/error/ClientConfigurationErrorCodes.mjs +3 -5
- package/dist/error/ClientConfigurationErrorCodes.mjs.map +1 -1
- package/dist/error/InteractionRequiredAuthError.d.ts +1 -19
- package/dist/error/InteractionRequiredAuthError.d.ts.map +1 -1
- package/dist/error/InteractionRequiredAuthError.mjs +10 -35
- package/dist/error/InteractionRequiredAuthError.mjs.map +1 -1
- package/dist/error/InteractionRequiredAuthErrorCodes.mjs +1 -1
- package/dist/error/JoseHeaderError.d.ts +0 -4
- package/dist/error/JoseHeaderError.d.ts.map +1 -1
- package/dist/error/JoseHeaderError.mjs +3 -8
- package/dist/error/JoseHeaderError.mjs.map +1 -1
- package/dist/error/JoseHeaderErrorCodes.mjs +1 -1
- package/dist/error/NetworkError.mjs +1 -1
- package/dist/error/PlatformBrokerError.d.ts.map +1 -1
- package/dist/error/PlatformBrokerError.mjs +3 -2
- package/dist/error/PlatformBrokerError.mjs.map +1 -1
- package/dist/error/ServerError.mjs +1 -1
- package/dist/exports-browser-only.d.ts +4 -3
- package/dist/exports-browser-only.d.ts.map +1 -1
- package/dist/exports-common.d.ts +11 -8
- package/dist/exports-common.d.ts.map +1 -1
- package/dist/exports-node-only.d.ts +2 -4
- package/dist/exports-node-only.d.ts.map +1 -1
- package/dist/index-node.mjs +15 -10
- package/dist/index-node.mjs.map +1 -1
- package/dist/index.mjs +17 -11
- package/dist/index.mjs.map +1 -1
- package/dist/logger/Logger.d.ts +36 -13
- package/dist/logger/Logger.d.ts.map +1 -1
- package/dist/logger/Logger.mjs +105 -22
- package/dist/logger/Logger.mjs.map +1 -1
- package/dist/network/INetworkModule.mjs +1 -1
- package/dist/network/RequestThumbprint.mjs +2 -2
- package/dist/network/RequestThumbprint.mjs.map +1 -1
- package/dist/network/ThrottlingUtils.d.ts.map +1 -1
- package/dist/network/ThrottlingUtils.mjs +6 -7
- package/dist/network/ThrottlingUtils.mjs.map +1 -1
- package/dist/packageMetadata.d.ts +1 -1
- package/dist/packageMetadata.d.ts.map +1 -1
- package/dist/packageMetadata.mjs +2 -2
- package/dist/protocol/Authorize.d.ts +1 -2
- package/dist/protocol/Authorize.d.ts.map +1 -1
- package/dist/protocol/Authorize.mjs +14 -14
- package/dist/protocol/Authorize.mjs.map +1 -1
- package/dist/protocol/Token.d.ts +40 -0
- package/dist/protocol/Token.d.ts.map +1 -0
- package/dist/protocol/Token.mjs +129 -0
- package/dist/protocol/Token.mjs.map +1 -0
- package/dist/request/AuthenticationHeaderParser.d.ts.map +1 -1
- package/dist/request/AuthenticationHeaderParser.mjs +3 -3
- package/dist/request/AuthenticationHeaderParser.mjs.map +1 -1
- package/dist/request/BaseAuthRequest.d.ts +4 -8
- package/dist/request/BaseAuthRequest.d.ts.map +1 -1
- package/dist/request/CommonAuthorizationCodeRequest.d.ts +2 -1
- package/dist/request/CommonAuthorizationCodeRequest.d.ts.map +1 -1
- package/dist/request/CommonAuthorizationUrlRequest.d.ts +2 -4
- package/dist/request/CommonAuthorizationUrlRequest.d.ts.map +1 -1
- package/dist/request/CommonRefreshTokenRequest.d.ts +2 -1
- package/dist/request/CommonRefreshTokenRequest.d.ts.map +1 -1
- package/dist/request/CommonSilentFlowRequest.d.ts +2 -1
- package/dist/request/CommonSilentFlowRequest.d.ts.map +1 -1
- package/dist/request/RequestParameterBuilder.d.ts +6 -12
- package/dist/request/RequestParameterBuilder.d.ts.map +1 -1
- package/dist/request/RequestParameterBuilder.mjs +11 -24
- package/dist/request/RequestParameterBuilder.mjs.map +1 -1
- package/dist/request/ScopeSet.mjs +5 -5
- package/dist/request/ScopeSet.mjs.map +1 -1
- package/dist/response/AuthenticationResult.d.ts +1 -1
- package/dist/response/AuthenticationResult.d.ts.map +1 -1
- package/dist/response/ResponseHandler.d.ts +7 -6
- package/dist/response/ResponseHandler.d.ts.map +1 -1
- package/dist/response/ResponseHandler.mjs +41 -43
- package/dist/response/ResponseHandler.mjs.map +1 -1
- package/dist/telemetry/performance/IPerformanceClient.d.ts +0 -29
- package/dist/telemetry/performance/IPerformanceClient.d.ts.map +1 -1
- package/dist/telemetry/performance/PerformanceClient.d.ts +5 -81
- package/dist/telemetry/performance/PerformanceClient.d.ts.map +1 -1
- package/dist/telemetry/performance/PerformanceClient.mjs +24 -170
- package/dist/telemetry/performance/PerformanceClient.mjs.map +1 -1
- package/dist/telemetry/performance/PerformanceEvent.d.ts +1 -280
- package/dist/telemetry/performance/PerformanceEvent.d.ts.map +1 -1
- package/dist/telemetry/performance/PerformanceEvent.mjs +2 -483
- package/dist/telemetry/performance/PerformanceEvent.mjs.map +1 -1
- package/dist/telemetry/performance/PerformanceEvents.d.ts +66 -0
- package/dist/telemetry/performance/PerformanceEvents.d.ts.map +1 -0
- package/dist/telemetry/performance/PerformanceEvents.mjs +74 -0
- package/dist/telemetry/performance/PerformanceEvents.mjs.map +1 -0
- package/dist/telemetry/performance/StubPerformanceClient.d.ts +0 -4
- package/dist/telemetry/performance/StubPerformanceClient.d.ts.map +1 -1
- package/dist/telemetry/performance/StubPerformanceClient.mjs +2 -26
- package/dist/telemetry/performance/StubPerformanceClient.mjs.map +1 -1
- package/dist/telemetry/server/ServerTelemetryManager.d.ts +2 -2
- package/dist/telemetry/server/ServerTelemetryManager.d.ts.map +1 -1
- package/dist/telemetry/server/ServerTelemetryManager.mjs +28 -30
- package/dist/telemetry/server/ServerTelemetryManager.mjs.map +1 -1
- package/dist/url/UrlString.d.ts +0 -5
- package/dist/url/UrlString.d.ts.map +1 -1
- package/dist/url/UrlString.mjs +5 -13
- package/dist/url/UrlString.mjs.map +1 -1
- package/dist/utils/ClientAssertionUtils.mjs +1 -1
- package/dist/utils/Constants.d.ts +81 -112
- package/dist/utils/Constants.d.ts.map +1 -1
- package/dist/utils/Constants.mjs +100 -127
- package/dist/utils/Constants.mjs.map +1 -1
- package/dist/utils/FunctionWrappers.d.ts +2 -2
- package/dist/utils/FunctionWrappers.d.ts.map +1 -1
- package/dist/utils/FunctionWrappers.mjs +19 -20
- package/dist/utils/FunctionWrappers.mjs.map +1 -1
- package/dist/utils/ProtocolUtils.d.ts +14 -35
- package/dist/utils/ProtocolUtils.d.ts.map +1 -1
- package/dist/utils/ProtocolUtils.mjs +57 -61
- package/dist/utils/ProtocolUtils.mjs.map +1 -1
- package/dist/utils/StateTypes.d.ts +15 -0
- package/dist/utils/StateTypes.d.ts.map +1 -0
- package/dist/utils/StringUtils.mjs +1 -1
- package/dist/utils/TimeUtils.mjs +1 -1
- package/dist/utils/UrlUtils.d.ts +1 -2
- package/dist/utils/UrlUtils.d.ts.map +1 -1
- package/dist/utils/UrlUtils.mjs +3 -10
- package/dist/utils/UrlUtils.mjs.map +1 -1
- package/lib/index-browser.cjs +26 -206
- package/lib/index-browser.cjs.map +1 -1
- package/lib/{index-node-4Jss3kYh.js → index-node-B7mR4APO.js} +3494 -4270
- package/lib/index-node-B7mR4APO.js.map +1 -0
- package/lib/index-node.cjs +6 -34
- package/lib/index-node.cjs.map +1 -1
- package/lib/index.cjs +5 -34
- package/lib/index.cjs.map +1 -1
- package/lib/types/account/AccountInfo.d.ts +0 -1
- package/lib/types/account/AccountInfo.d.ts.map +1 -1
- package/lib/types/account/AuthToken.d.ts.map +1 -1
- package/lib/types/account/ClientInfo.d.ts.map +1 -1
- package/lib/types/authority/Authority.d.ts +2 -2
- package/lib/types/authority/Authority.d.ts.map +1 -1
- package/lib/types/authority/AuthorityFactory.d.ts +6 -2
- package/lib/types/authority/AuthorityFactory.d.ts.map +1 -1
- package/lib/types/authority/AuthorityMetadata.d.ts +2 -2
- package/lib/types/authority/AuthorityMetadata.d.ts.map +1 -1
- package/lib/types/authority/AuthorityOptions.d.ts +0 -1
- package/lib/types/authority/AuthorityOptions.d.ts.map +1 -1
- package/lib/types/authority/OIDCOptions.d.ts +2 -2
- package/lib/types/authority/OIDCOptions.d.ts.map +1 -1
- package/lib/types/authority/RegionDiscovery.d.ts +3 -3
- package/lib/types/authority/RegionDiscovery.d.ts.map +1 -1
- package/lib/types/cache/CacheManager.d.ts +26 -19
- package/lib/types/cache/CacheManager.d.ts.map +1 -1
- package/lib/types/cache/entities/AccessTokenEntity.d.ts +0 -4
- package/lib/types/cache/entities/AccessTokenEntity.d.ts.map +1 -1
- package/lib/types/cache/entities/AccountEntity.d.ts +4 -56
- package/lib/types/cache/entities/AccountEntity.d.ts.map +1 -1
- package/lib/types/cache/entities/CredentialEntity.d.ts +0 -2
- package/lib/types/cache/entities/CredentialEntity.d.ts.map +1 -1
- package/lib/types/cache/interface/ICacheManager.d.ts +35 -17
- package/lib/types/cache/interface/ICacheManager.d.ts.map +1 -1
- package/lib/types/cache/utils/AccountEntityUtils.d.ts +53 -0
- package/lib/types/cache/utils/AccountEntityUtils.d.ts.map +1 -0
- package/lib/types/cache/utils/CacheHelpers.d.ts +2 -2
- package/lib/types/cache/utils/CacheHelpers.d.ts.map +1 -1
- package/lib/types/cache/utils/CacheTypes.d.ts +0 -1
- package/lib/types/cache/utils/CacheTypes.d.ts.map +1 -1
- package/lib/types/client/AuthorizationCodeClient.d.ts +23 -4
- package/lib/types/client/AuthorizationCodeClient.d.ts.map +1 -1
- package/lib/types/client/RefreshTokenClient.d.ts +17 -4
- package/lib/types/client/RefreshTokenClient.d.ts.map +1 -1
- package/lib/types/client/SilentFlowClient.d.ts +17 -4
- package/lib/types/client/SilentFlowClient.d.ts.map +1 -1
- package/lib/types/config/ClientConfiguration.d.ts +2 -22
- package/lib/types/config/ClientConfiguration.d.ts.map +1 -1
- package/lib/types/crypto/ICrypto.d.ts +5 -3
- package/lib/types/crypto/ICrypto.d.ts.map +1 -1
- package/lib/types/crypto/PopTokenGenerator.d.ts +2 -2
- package/lib/types/crypto/PopTokenGenerator.d.ts.map +1 -1
- package/lib/types/error/AuthError.d.ts +1 -18
- package/lib/types/error/AuthError.d.ts.map +1 -1
- package/lib/types/error/CacheError.d.ts +1 -6
- package/lib/types/error/CacheError.d.ts.map +1 -1
- package/lib/types/error/ClientAuthError.d.ts +0 -229
- package/lib/types/error/ClientAuthError.d.ts.map +1 -1
- package/lib/types/error/ClientAuthErrorCodes.d.ts +0 -8
- package/lib/types/error/ClientAuthErrorCodes.d.ts.map +1 -1
- package/lib/types/error/ClientConfigurationError.d.ts +0 -128
- package/lib/types/error/ClientConfigurationError.d.ts.map +1 -1
- package/lib/types/error/ClientConfigurationErrorCodes.d.ts +0 -2
- package/lib/types/error/ClientConfigurationErrorCodes.d.ts.map +1 -1
- package/lib/types/error/InteractionRequiredAuthError.d.ts +1 -19
- package/lib/types/error/InteractionRequiredAuthError.d.ts.map +1 -1
- package/lib/types/error/JoseHeaderError.d.ts +0 -4
- package/lib/types/error/JoseHeaderError.d.ts.map +1 -1
- package/lib/types/error/PlatformBrokerError.d.ts.map +1 -1
- package/lib/types/exports-browser-only.d.ts +4 -3
- package/lib/types/exports-browser-only.d.ts.map +1 -1
- package/lib/types/exports-common.d.ts +11 -8
- package/lib/types/exports-common.d.ts.map +1 -1
- package/lib/types/exports-node-only.d.ts +2 -4
- package/lib/types/exports-node-only.d.ts.map +1 -1
- package/lib/types/logger/Logger.d.ts +36 -13
- package/lib/types/logger/Logger.d.ts.map +1 -1
- package/lib/types/network/ThrottlingUtils.d.ts.map +1 -1
- package/lib/types/packageMetadata.d.ts +1 -1
- package/lib/types/packageMetadata.d.ts.map +1 -1
- package/lib/types/protocol/Authorize.d.ts +1 -2
- package/lib/types/protocol/Authorize.d.ts.map +1 -1
- package/lib/types/protocol/Token.d.ts +40 -0
- package/lib/types/protocol/Token.d.ts.map +1 -0
- package/lib/types/request/AuthenticationHeaderParser.d.ts.map +1 -1
- package/lib/types/request/BaseAuthRequest.d.ts +4 -8
- package/lib/types/request/BaseAuthRequest.d.ts.map +1 -1
- package/lib/types/request/CommonAuthorizationCodeRequest.d.ts +2 -1
- package/lib/types/request/CommonAuthorizationCodeRequest.d.ts.map +1 -1
- package/lib/types/request/CommonAuthorizationUrlRequest.d.ts +2 -4
- package/lib/types/request/CommonAuthorizationUrlRequest.d.ts.map +1 -1
- package/lib/types/request/CommonRefreshTokenRequest.d.ts +2 -1
- package/lib/types/request/CommonRefreshTokenRequest.d.ts.map +1 -1
- package/lib/types/request/CommonSilentFlowRequest.d.ts +2 -1
- package/lib/types/request/CommonSilentFlowRequest.d.ts.map +1 -1
- package/lib/types/request/RequestParameterBuilder.d.ts +6 -12
- package/lib/types/request/RequestParameterBuilder.d.ts.map +1 -1
- package/lib/types/response/AuthenticationResult.d.ts +1 -1
- package/lib/types/response/AuthenticationResult.d.ts.map +1 -1
- package/lib/types/response/ResponseHandler.d.ts +7 -6
- package/lib/types/response/ResponseHandler.d.ts.map +1 -1
- package/lib/types/telemetry/performance/IPerformanceClient.d.ts +0 -29
- package/lib/types/telemetry/performance/IPerformanceClient.d.ts.map +1 -1
- package/lib/types/telemetry/performance/PerformanceClient.d.ts +5 -81
- package/lib/types/telemetry/performance/PerformanceClient.d.ts.map +1 -1
- package/lib/types/telemetry/performance/PerformanceEvent.d.ts +1 -280
- package/lib/types/telemetry/performance/PerformanceEvent.d.ts.map +1 -1
- package/lib/types/telemetry/performance/PerformanceEvents.d.ts +66 -0
- package/lib/types/telemetry/performance/PerformanceEvents.d.ts.map +1 -0
- package/lib/types/telemetry/performance/StubPerformanceClient.d.ts +0 -4
- package/lib/types/telemetry/performance/StubPerformanceClient.d.ts.map +1 -1
- package/lib/types/telemetry/server/ServerTelemetryManager.d.ts +2 -2
- package/lib/types/telemetry/server/ServerTelemetryManager.d.ts.map +1 -1
- package/lib/types/url/UrlString.d.ts +0 -5
- package/lib/types/url/UrlString.d.ts.map +1 -1
- package/lib/types/utils/Constants.d.ts +81 -112
- package/lib/types/utils/Constants.d.ts.map +1 -1
- package/lib/types/utils/FunctionWrappers.d.ts +2 -2
- package/lib/types/utils/FunctionWrappers.d.ts.map +1 -1
- package/lib/types/utils/ProtocolUtils.d.ts +14 -35
- package/lib/types/utils/ProtocolUtils.d.ts.map +1 -1
- package/lib/types/utils/StateTypes.d.ts +15 -0
- package/lib/types/utils/StateTypes.d.ts.map +1 -0
- package/lib/types/utils/UrlUtils.d.ts +1 -2
- package/lib/types/utils/UrlUtils.d.ts.map +1 -1
- package/package.json +7 -7
- package/src/account/AccountInfo.ts +0 -1
- package/src/account/AuthToken.ts +1 -2
- package/src/account/ClientInfo.ts +3 -6
- package/src/authority/Authority.ts +145 -146
- package/src/authority/AuthorityFactory.ts +7 -7
- package/src/authority/AuthorityMetadata.ts +54 -47
- package/src/authority/AuthorityOptions.ts +0 -1
- package/src/authority/OIDCOptions.ts +2 -2
- package/src/authority/RegionDiscovery.ts +20 -33
- package/src/cache/CacheManager.ts +177 -128
- package/src/cache/entities/AccessTokenEntity.ts +0 -4
- package/src/cache/entities/AccountEntity.ts +4 -292
- package/src/cache/entities/CredentialEntity.ts +0 -2
- package/src/cache/interface/ICacheManager.ts +55 -20
- package/src/cache/utils/AccountEntityUtils.ts +258 -0
- package/src/cache/utils/CacheHelpers.ts +23 -37
- package/src/cache/utils/CacheTypes.ts +0 -1
- package/src/client/AuthorizationCodeClient.ts +146 -58
- package/src/client/RefreshTokenClient.ts +108 -65
- package/src/client/SilentFlowClient.ts +74 -25
- package/src/config/ClientConfiguration.ts +9 -37
- package/src/crypto/ICrypto.ts +5 -3
- package/src/crypto/PopTokenGenerator.ts +3 -13
- package/src/error/AuthError.ts +11 -30
- package/src/error/CacheError.ts +4 -15
- package/src/error/ClientAuthError.ts +1 -317
- package/src/error/ClientAuthErrorCodes.ts +0 -8
- package/src/error/ClientConfigurationError.ts +1 -202
- package/src/error/ClientConfigurationErrorCodes.ts +0 -4
- package/src/error/InteractionRequiredAuthError.ts +8 -48
- package/src/error/JoseHeaderError.ts +1 -8
- package/src/error/PlatformBrokerError.ts +2 -1
- package/src/exports-browser-only.ts +2 -6
- package/src/exports-common.ts +8 -40
- package/src/exports-node-only.ts +5 -4
- package/src/logger/Logger.ts +174 -39
- package/src/network/RequestThumbprint.ts +1 -1
- package/src/network/ThrottlingUtils.ts +12 -15
- package/src/packageMetadata.ts +1 -1
- package/src/protocol/Authorize.ts +24 -20
- package/src/protocol/Token.ts +230 -0
- package/src/request/AuthenticationHeaderParser.ts +2 -4
- package/src/request/BaseAuthRequest.ts +4 -8
- package/src/request/CommonAuthorizationCodeRequest.ts +2 -1
- package/src/request/CommonAuthorizationUrlRequest.ts +2 -4
- package/src/request/CommonRefreshTokenRequest.ts +2 -1
- package/src/request/CommonSilentFlowRequest.ts +2 -1
- package/src/request/RequestParameterBuilder.ts +35 -50
- package/src/request/ScopeSet.ts +4 -4
- package/src/response/AuthenticationResult.ts +1 -1
- package/src/response/ResponseHandler.ts +56 -60
- package/src/telemetry/performance/IPerformanceClient.ts +0 -40
- package/src/telemetry/performance/PerformanceClient.ts +26 -295
- package/src/telemetry/performance/PerformanceEvent.ts +3 -582
- package/src/telemetry/performance/PerformanceEvents.ts +98 -0
- package/src/telemetry/performance/StubPerformanceClient.ts +0 -16
- package/src/telemetry/server/ServerTelemetryManager.ts +33 -44
- package/src/url/UrlString.ts +3 -12
- package/src/utils/Constants.ts +103 -140
- package/src/utils/FunctionWrappers.ts +28 -29
- package/src/utils/ProtocolUtils.ts +67 -93
- package/src/utils/StateTypes.ts +20 -0
- package/src/utils/UrlUtils.ts +2 -15
- package/dist/cache/entities/AccountEntity.mjs +0 -232
- package/dist/cache/entities/AccountEntity.mjs.map +0 -1
- package/dist/client/BaseClient.d.ts +0 -59
- package/dist/client/BaseClient.d.ts.map +0 -1
- package/dist/client/BaseClient.mjs +0 -167
- package/dist/client/BaseClient.mjs.map +0 -1
- package/dist/index-browser.mjs +0 -72
- package/dist/index-browser.mjs.map +0 -1
- package/dist/request/CommonClientCredentialRequest.d.ts +0 -18
- package/dist/request/CommonClientCredentialRequest.d.ts.map +0 -1
- package/dist/request/CommonDeviceCodeRequest.d.ts +0 -22
- package/dist/request/CommonDeviceCodeRequest.d.ts.map +0 -1
- package/dist/request/CommonOnBehalfOfRequest.d.ts +0 -14
- package/dist/request/CommonOnBehalfOfRequest.d.ts.map +0 -1
- package/dist/request/CommonUsernamePasswordRequest.d.ts +0 -18
- package/dist/request/CommonUsernamePasswordRequest.d.ts.map +0 -1
- package/lib/index-node-4Jss3kYh.js.map +0 -1
- package/lib/types/client/BaseClient.d.ts +0 -59
- package/lib/types/client/BaseClient.d.ts.map +0 -1
- package/lib/types/request/CommonClientCredentialRequest.d.ts +0 -18
- package/lib/types/request/CommonClientCredentialRequest.d.ts.map +0 -1
- package/lib/types/request/CommonDeviceCodeRequest.d.ts +0 -22
- package/lib/types/request/CommonDeviceCodeRequest.d.ts.map +0 -1
- package/lib/types/request/CommonOnBehalfOfRequest.d.ts +0 -14
- package/lib/types/request/CommonOnBehalfOfRequest.d.ts.map +0 -1
- package/lib/types/request/CommonUsernamePasswordRequest.d.ts +0 -18
- package/lib/types/request/CommonUsernamePasswordRequest.d.ts.map +0 -1
- package/src/client/BaseClient.ts +0 -320
- package/src/request/CommonClientCredentialRequest.ts +0 -23
- package/src/request/CommonDeviceCodeRequest.ts +0 -31
- package/src/request/CommonOnBehalfOfRequest.ts +0 -19
- package/src/request/CommonUsernamePasswordRequest.ts +0 -23
|
@@ -7,213 +7,12 @@ import { AuthError } from "./AuthError.js";
|
|
|
7
7
|
import * as ClientConfigurationErrorCodes from "./ClientConfigurationErrorCodes.js";
|
|
8
8
|
export { ClientConfigurationErrorCodes };
|
|
9
9
|
|
|
10
|
-
export const ClientConfigurationErrorMessages = {
|
|
11
|
-
[ClientConfigurationErrorCodes.redirectUriEmpty]:
|
|
12
|
-
"A redirect URI is required for all calls, and none has been set.",
|
|
13
|
-
[ClientConfigurationErrorCodes.claimsRequestParsingError]:
|
|
14
|
-
"Could not parse the given claims request object.",
|
|
15
|
-
[ClientConfigurationErrorCodes.authorityUriInsecure]:
|
|
16
|
-
"Authority URIs must use https. Please see here for valid authority configuration options: https://docs.microsoft.com/en-us/azure/active-directory/develop/msal-js-initializing-client-applications#configuration-options",
|
|
17
|
-
[ClientConfigurationErrorCodes.urlParseError]:
|
|
18
|
-
"URL could not be parsed into appropriate segments.",
|
|
19
|
-
[ClientConfigurationErrorCodes.urlEmptyError]: "URL was empty or null.",
|
|
20
|
-
[ClientConfigurationErrorCodes.emptyInputScopesError]:
|
|
21
|
-
"Scopes cannot be passed as null, undefined or empty array because they are required to obtain an access token.",
|
|
22
|
-
[ClientConfigurationErrorCodes.invalidClaims]:
|
|
23
|
-
"Given claims parameter must be a stringified JSON object.",
|
|
24
|
-
[ClientConfigurationErrorCodes.tokenRequestEmpty]:
|
|
25
|
-
"Token request was empty and not found in cache.",
|
|
26
|
-
[ClientConfigurationErrorCodes.logoutRequestEmpty]:
|
|
27
|
-
"The logout request was null or undefined.",
|
|
28
|
-
[ClientConfigurationErrorCodes.invalidCodeChallengeMethod]:
|
|
29
|
-
'code_challenge_method passed is invalid. Valid values are "plain" and "S256".',
|
|
30
|
-
[ClientConfigurationErrorCodes.pkceParamsMissing]:
|
|
31
|
-
"Both params: code_challenge and code_challenge_method are to be passed if to be sent in the request",
|
|
32
|
-
[ClientConfigurationErrorCodes.invalidCloudDiscoveryMetadata]:
|
|
33
|
-
"Invalid cloudDiscoveryMetadata provided. Must be a stringified JSON object containing tenant_discovery_endpoint and metadata fields",
|
|
34
|
-
[ClientConfigurationErrorCodes.invalidAuthorityMetadata]:
|
|
35
|
-
"Invalid authorityMetadata provided. Must by a stringified JSON object containing authorization_endpoint, token_endpoint, issuer fields.",
|
|
36
|
-
[ClientConfigurationErrorCodes.untrustedAuthority]:
|
|
37
|
-
"The provided authority is not a trusted authority. Please include this authority in the knownAuthorities config parameter.",
|
|
38
|
-
[ClientConfigurationErrorCodes.missingSshJwk]:
|
|
39
|
-
"Missing sshJwk in SSH certificate request. A stringified JSON Web Key is required when using the SSH authentication scheme.",
|
|
40
|
-
[ClientConfigurationErrorCodes.missingSshKid]:
|
|
41
|
-
"Missing sshKid in SSH certificate request. A string that uniquely identifies the public SSH key is required when using the SSH authentication scheme.",
|
|
42
|
-
[ClientConfigurationErrorCodes.missingNonceAuthenticationHeader]:
|
|
43
|
-
"Unable to find an authentication header containing server nonce. Either the Authentication-Info or WWW-Authenticate headers must be present in order to obtain a server nonce.",
|
|
44
|
-
[ClientConfigurationErrorCodes.invalidAuthenticationHeader]:
|
|
45
|
-
"Invalid authentication header provided",
|
|
46
|
-
[ClientConfigurationErrorCodes.cannotSetOIDCOptions]:
|
|
47
|
-
"Cannot set OIDCOptions parameter. Please change the protocol mode to OIDC or use a non-Microsoft authority.",
|
|
48
|
-
[ClientConfigurationErrorCodes.cannotAllowPlatformBroker]:
|
|
49
|
-
"Cannot set allowPlatformBroker parameter to true when not in AAD protocol mode.",
|
|
50
|
-
[ClientConfigurationErrorCodes.authorityMismatch]:
|
|
51
|
-
"Authority mismatch error. Authority provided in login request or PublicClientApplication config does not match the environment of the provided account. Please use a matching account or make an interactive request to login to this authority.",
|
|
52
|
-
[ClientConfigurationErrorCodes.invalidAuthorizePostBodyParameters]:
|
|
53
|
-
"Invalid authorize post body parameters provided. If you are using authorizePostBodyParameters, the request method must be POST. Please check the request method and parameters.",
|
|
54
|
-
[ClientConfigurationErrorCodes.invalidRequestMethodForEAR]:
|
|
55
|
-
"Invalid request method for EAR protocol mode. The request method cannot be GET when using EAR protocol mode. Please change the request method to POST.",
|
|
56
|
-
[ClientConfigurationErrorCodes.invalidPlatformBrokerConfiguration]:
|
|
57
|
-
"Invalid platform broker configuration. `allowPlatformBrokerWithDOM` can only be enabled when `allowPlatformBroker` is enabled.",
|
|
58
|
-
};
|
|
59
|
-
|
|
60
|
-
/**
|
|
61
|
-
* ClientConfigurationErrorMessage class containing string constants used by error codes and messages.
|
|
62
|
-
* @deprecated Use ClientConfigurationErrorCodes instead
|
|
63
|
-
*/
|
|
64
|
-
export const ClientConfigurationErrorMessage = {
|
|
65
|
-
redirectUriNotSet: {
|
|
66
|
-
code: ClientConfigurationErrorCodes.redirectUriEmpty,
|
|
67
|
-
desc: ClientConfigurationErrorMessages[
|
|
68
|
-
ClientConfigurationErrorCodes.redirectUriEmpty
|
|
69
|
-
],
|
|
70
|
-
},
|
|
71
|
-
claimsRequestParsingError: {
|
|
72
|
-
code: ClientConfigurationErrorCodes.claimsRequestParsingError,
|
|
73
|
-
desc: ClientConfigurationErrorMessages[
|
|
74
|
-
ClientConfigurationErrorCodes.claimsRequestParsingError
|
|
75
|
-
],
|
|
76
|
-
},
|
|
77
|
-
authorityUriInsecure: {
|
|
78
|
-
code: ClientConfigurationErrorCodes.authorityUriInsecure,
|
|
79
|
-
desc: ClientConfigurationErrorMessages[
|
|
80
|
-
ClientConfigurationErrorCodes.authorityUriInsecure
|
|
81
|
-
],
|
|
82
|
-
},
|
|
83
|
-
urlParseError: {
|
|
84
|
-
code: ClientConfigurationErrorCodes.urlParseError,
|
|
85
|
-
desc: ClientConfigurationErrorMessages[
|
|
86
|
-
ClientConfigurationErrorCodes.urlParseError
|
|
87
|
-
],
|
|
88
|
-
},
|
|
89
|
-
urlEmptyError: {
|
|
90
|
-
code: ClientConfigurationErrorCodes.urlEmptyError,
|
|
91
|
-
desc: ClientConfigurationErrorMessages[
|
|
92
|
-
ClientConfigurationErrorCodes.urlEmptyError
|
|
93
|
-
],
|
|
94
|
-
},
|
|
95
|
-
emptyScopesError: {
|
|
96
|
-
code: ClientConfigurationErrorCodes.emptyInputScopesError,
|
|
97
|
-
desc: ClientConfigurationErrorMessages[
|
|
98
|
-
ClientConfigurationErrorCodes.emptyInputScopesError
|
|
99
|
-
],
|
|
100
|
-
},
|
|
101
|
-
invalidClaimsRequest: {
|
|
102
|
-
code: ClientConfigurationErrorCodes.invalidClaims,
|
|
103
|
-
desc: ClientConfigurationErrorMessages[
|
|
104
|
-
ClientConfigurationErrorCodes.invalidClaims
|
|
105
|
-
],
|
|
106
|
-
},
|
|
107
|
-
tokenRequestEmptyError: {
|
|
108
|
-
code: ClientConfigurationErrorCodes.tokenRequestEmpty,
|
|
109
|
-
desc: ClientConfigurationErrorMessages[
|
|
110
|
-
ClientConfigurationErrorCodes.tokenRequestEmpty
|
|
111
|
-
],
|
|
112
|
-
},
|
|
113
|
-
logoutRequestEmptyError: {
|
|
114
|
-
code: ClientConfigurationErrorCodes.logoutRequestEmpty,
|
|
115
|
-
desc: ClientConfigurationErrorMessages[
|
|
116
|
-
ClientConfigurationErrorCodes.logoutRequestEmpty
|
|
117
|
-
],
|
|
118
|
-
},
|
|
119
|
-
invalidCodeChallengeMethod: {
|
|
120
|
-
code: ClientConfigurationErrorCodes.invalidCodeChallengeMethod,
|
|
121
|
-
desc: ClientConfigurationErrorMessages[
|
|
122
|
-
ClientConfigurationErrorCodes.invalidCodeChallengeMethod
|
|
123
|
-
],
|
|
124
|
-
},
|
|
125
|
-
invalidCodeChallengeParams: {
|
|
126
|
-
code: ClientConfigurationErrorCodes.pkceParamsMissing,
|
|
127
|
-
desc: ClientConfigurationErrorMessages[
|
|
128
|
-
ClientConfigurationErrorCodes.pkceParamsMissing
|
|
129
|
-
],
|
|
130
|
-
},
|
|
131
|
-
invalidCloudDiscoveryMetadata: {
|
|
132
|
-
code: ClientConfigurationErrorCodes.invalidCloudDiscoveryMetadata,
|
|
133
|
-
desc: ClientConfigurationErrorMessages[
|
|
134
|
-
ClientConfigurationErrorCodes.invalidCloudDiscoveryMetadata
|
|
135
|
-
],
|
|
136
|
-
},
|
|
137
|
-
invalidAuthorityMetadata: {
|
|
138
|
-
code: ClientConfigurationErrorCodes.invalidAuthorityMetadata,
|
|
139
|
-
desc: ClientConfigurationErrorMessages[
|
|
140
|
-
ClientConfigurationErrorCodes.invalidAuthorityMetadata
|
|
141
|
-
],
|
|
142
|
-
},
|
|
143
|
-
untrustedAuthority: {
|
|
144
|
-
code: ClientConfigurationErrorCodes.untrustedAuthority,
|
|
145
|
-
desc: ClientConfigurationErrorMessages[
|
|
146
|
-
ClientConfigurationErrorCodes.untrustedAuthority
|
|
147
|
-
],
|
|
148
|
-
},
|
|
149
|
-
missingSshJwk: {
|
|
150
|
-
code: ClientConfigurationErrorCodes.missingSshJwk,
|
|
151
|
-
desc: ClientConfigurationErrorMessages[
|
|
152
|
-
ClientConfigurationErrorCodes.missingSshJwk
|
|
153
|
-
],
|
|
154
|
-
},
|
|
155
|
-
missingSshKid: {
|
|
156
|
-
code: ClientConfigurationErrorCodes.missingSshKid,
|
|
157
|
-
desc: ClientConfigurationErrorMessages[
|
|
158
|
-
ClientConfigurationErrorCodes.missingSshKid
|
|
159
|
-
],
|
|
160
|
-
},
|
|
161
|
-
missingNonceAuthenticationHeader: {
|
|
162
|
-
code: ClientConfigurationErrorCodes.missingNonceAuthenticationHeader,
|
|
163
|
-
desc: ClientConfigurationErrorMessages[
|
|
164
|
-
ClientConfigurationErrorCodes.missingNonceAuthenticationHeader
|
|
165
|
-
],
|
|
166
|
-
},
|
|
167
|
-
invalidAuthenticationHeader: {
|
|
168
|
-
code: ClientConfigurationErrorCodes.invalidAuthenticationHeader,
|
|
169
|
-
desc: ClientConfigurationErrorMessages[
|
|
170
|
-
ClientConfigurationErrorCodes.invalidAuthenticationHeader
|
|
171
|
-
],
|
|
172
|
-
},
|
|
173
|
-
cannotSetOIDCOptions: {
|
|
174
|
-
code: ClientConfigurationErrorCodes.cannotSetOIDCOptions,
|
|
175
|
-
desc: ClientConfigurationErrorMessages[
|
|
176
|
-
ClientConfigurationErrorCodes.cannotSetOIDCOptions
|
|
177
|
-
],
|
|
178
|
-
},
|
|
179
|
-
cannotAllowPlatformBroker: {
|
|
180
|
-
code: ClientConfigurationErrorCodes.cannotAllowPlatformBroker,
|
|
181
|
-
desc: ClientConfigurationErrorMessages[
|
|
182
|
-
ClientConfigurationErrorCodes.cannotAllowPlatformBroker
|
|
183
|
-
],
|
|
184
|
-
},
|
|
185
|
-
authorityMismatch: {
|
|
186
|
-
code: ClientConfigurationErrorCodes.authorityMismatch,
|
|
187
|
-
desc: ClientConfigurationErrorMessages[
|
|
188
|
-
ClientConfigurationErrorCodes.authorityMismatch
|
|
189
|
-
],
|
|
190
|
-
},
|
|
191
|
-
invalidAuthorizePostBodyParameters: {
|
|
192
|
-
code: ClientConfigurationErrorCodes.invalidAuthorizePostBodyParameters,
|
|
193
|
-
desc: ClientConfigurationErrorMessages[
|
|
194
|
-
ClientConfigurationErrorCodes.invalidAuthorizePostBodyParameters
|
|
195
|
-
],
|
|
196
|
-
},
|
|
197
|
-
invalidRequestMethodForEAR: {
|
|
198
|
-
code: ClientConfigurationErrorCodes.invalidRequestMethodForEAR,
|
|
199
|
-
desc: ClientConfigurationErrorMessages[
|
|
200
|
-
ClientConfigurationErrorCodes.invalidRequestMethodForEAR
|
|
201
|
-
],
|
|
202
|
-
},
|
|
203
|
-
invalidPlatformBrokerConfiguration: {
|
|
204
|
-
code: ClientConfigurationErrorCodes.invalidPlatformBrokerConfiguration,
|
|
205
|
-
desc: ClientConfigurationErrorMessages[
|
|
206
|
-
ClientConfigurationErrorCodes.invalidPlatformBrokerConfiguration
|
|
207
|
-
],
|
|
208
|
-
},
|
|
209
|
-
};
|
|
210
|
-
|
|
211
10
|
/**
|
|
212
11
|
* Error thrown when there is an error in configuration of the MSAL.js library.
|
|
213
12
|
*/
|
|
214
13
|
export class ClientConfigurationError extends AuthError {
|
|
215
14
|
constructor(errorCode: string) {
|
|
216
|
-
super(errorCode
|
|
15
|
+
super(errorCode);
|
|
217
16
|
this.name = "ClientConfigurationError";
|
|
218
17
|
Object.setPrototypeOf(this, ClientConfigurationError.prototype);
|
|
219
18
|
}
|
|
@@ -26,7 +26,3 @@ export const cannotSetOIDCOptions = "cannot_set_OIDCOptions";
|
|
|
26
26
|
export const cannotAllowPlatformBroker = "cannot_allow_platform_broker";
|
|
27
27
|
export const authorityMismatch = "authority_mismatch";
|
|
28
28
|
export const invalidRequestMethodForEAR = "invalid_request_method_for_EAR";
|
|
29
|
-
export const invalidAuthorizePostBodyParameters =
|
|
30
|
-
"invalid_authorize_post_body_parameters";
|
|
31
|
-
export const invalidPlatformBrokerConfiguration =
|
|
32
|
-
"invalid_platform_broker_configuration";
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import { Constants } from "../utils/Constants.js";
|
|
7
6
|
import { AuthError } from "./AuthError.js";
|
|
8
7
|
import * as InteractionRequiredAuthErrorCodes from "./InteractionRequiredAuthErrorCodes.js";
|
|
9
8
|
export { InteractionRequiredAuthErrorCodes };
|
|
@@ -26,46 +25,9 @@ export const InteractionRequiredAuthSubErrorMessage = [
|
|
|
26
25
|
"user_password_expired",
|
|
27
26
|
"consent_required",
|
|
28
27
|
"bad_token",
|
|
28
|
+
"ux_not_allowed",
|
|
29
29
|
];
|
|
30
30
|
|
|
31
|
-
const InteractionRequiredAuthErrorMessages = {
|
|
32
|
-
[InteractionRequiredAuthErrorCodes.noTokensFound]:
|
|
33
|
-
"No refresh token found in the cache. Please sign-in.",
|
|
34
|
-
[InteractionRequiredAuthErrorCodes.nativeAccountUnavailable]:
|
|
35
|
-
"The requested account is not available in the native broker. It may have been deleted or logged out. Please sign-in again using an interactive API.",
|
|
36
|
-
[InteractionRequiredAuthErrorCodes.refreshTokenExpired]:
|
|
37
|
-
"Refresh token has expired.",
|
|
38
|
-
[InteractionRequiredAuthErrorCodes.badToken]:
|
|
39
|
-
"Identity provider returned bad_token due to an expired or invalid refresh token. Please invoke an interactive API to resolve.",
|
|
40
|
-
[InteractionRequiredAuthErrorCodes.uxNotAllowed]:
|
|
41
|
-
"`canShowUI` flag in Edge was set to false. User interaction required on web page. Please invoke an interactive API to resolve.",
|
|
42
|
-
};
|
|
43
|
-
|
|
44
|
-
/**
|
|
45
|
-
* Interaction required errors defined by the SDK
|
|
46
|
-
* @deprecated Use InteractionRequiredAuthErrorCodes instead
|
|
47
|
-
*/
|
|
48
|
-
export const InteractionRequiredAuthErrorMessage = {
|
|
49
|
-
noTokensFoundError: {
|
|
50
|
-
code: InteractionRequiredAuthErrorCodes.noTokensFound,
|
|
51
|
-
desc: InteractionRequiredAuthErrorMessages[
|
|
52
|
-
InteractionRequiredAuthErrorCodes.noTokensFound
|
|
53
|
-
],
|
|
54
|
-
},
|
|
55
|
-
native_account_unavailable: {
|
|
56
|
-
code: InteractionRequiredAuthErrorCodes.nativeAccountUnavailable,
|
|
57
|
-
desc: InteractionRequiredAuthErrorMessages[
|
|
58
|
-
InteractionRequiredAuthErrorCodes.nativeAccountUnavailable
|
|
59
|
-
],
|
|
60
|
-
},
|
|
61
|
-
bad_token: {
|
|
62
|
-
code: InteractionRequiredAuthErrorCodes.badToken,
|
|
63
|
-
desc: InteractionRequiredAuthErrorMessages[
|
|
64
|
-
InteractionRequiredAuthErrorCodes.badToken
|
|
65
|
-
],
|
|
66
|
-
},
|
|
67
|
-
};
|
|
68
|
-
|
|
69
31
|
/**
|
|
70
32
|
* Error thrown when user interaction is required.
|
|
71
33
|
*/
|
|
@@ -109,10 +71,10 @@ export class InteractionRequiredAuthError extends AuthError {
|
|
|
109
71
|
super(errorCode, errorMessage, subError);
|
|
110
72
|
Object.setPrototypeOf(this, InteractionRequiredAuthError.prototype);
|
|
111
73
|
|
|
112
|
-
this.timestamp = timestamp ||
|
|
113
|
-
this.traceId = traceId ||
|
|
114
|
-
this.correlationId = correlationId ||
|
|
115
|
-
this.claims = claims ||
|
|
74
|
+
this.timestamp = timestamp || "";
|
|
75
|
+
this.traceId = traceId || "";
|
|
76
|
+
this.correlationId = correlationId || "";
|
|
77
|
+
this.claims = claims || "";
|
|
116
78
|
this.name = "InteractionRequiredAuthError";
|
|
117
79
|
this.errorNo = errorNo;
|
|
118
80
|
}
|
|
@@ -152,10 +114,8 @@ export function isInteractionRequiredError(
|
|
|
152
114
|
* Creates an InteractionRequiredAuthError
|
|
153
115
|
*/
|
|
154
116
|
export function createInteractionRequiredAuthError(
|
|
155
|
-
errorCode: string
|
|
117
|
+
errorCode: string,
|
|
118
|
+
errorMessage?: string
|
|
156
119
|
): InteractionRequiredAuthError {
|
|
157
|
-
return new InteractionRequiredAuthError(
|
|
158
|
-
errorCode,
|
|
159
|
-
InteractionRequiredAuthErrorMessages[errorCode]
|
|
160
|
-
);
|
|
120
|
+
return new InteractionRequiredAuthError(errorCode, errorMessage);
|
|
161
121
|
}
|
|
@@ -7,13 +7,6 @@ import { AuthError } from "./AuthError.js";
|
|
|
7
7
|
import * as JoseHeaderErrorCodes from "./JoseHeaderErrorCodes.js";
|
|
8
8
|
export { JoseHeaderErrorCodes };
|
|
9
9
|
|
|
10
|
-
export const JoseHeaderErrorMessages = {
|
|
11
|
-
[JoseHeaderErrorCodes.missingKidError]:
|
|
12
|
-
"The JOSE Header for the requested JWT, JWS or JWK object requires a keyId to be configured as the 'kid' header claim. No 'kid' value was provided.",
|
|
13
|
-
[JoseHeaderErrorCodes.missingAlgError]:
|
|
14
|
-
"The JOSE Header for the requested JWT, JWS or JWK object requires an algorithm to be specified as the 'alg' header claim. No 'alg' value was provided.",
|
|
15
|
-
};
|
|
16
|
-
|
|
17
10
|
/**
|
|
18
11
|
* Error thrown when there is an error in the client code running on the browser.
|
|
19
12
|
*/
|
|
@@ -28,5 +21,5 @@ export class JoseHeaderError extends AuthError {
|
|
|
28
21
|
|
|
29
22
|
/** Returns JoseHeaderError object */
|
|
30
23
|
export function createJoseHeaderError(code: string): JoseHeaderError {
|
|
31
|
-
return new JoseHeaderError(code
|
|
24
|
+
return new JoseHeaderError(code);
|
|
32
25
|
}
|
|
@@ -6,7 +6,8 @@
|
|
|
6
6
|
import { AuthError } from "./AuthError.js";
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
|
-
* Converts a numeric tag to a string representation
|
|
9
|
+
* Converts a numeric tag from MSAL Runtime to a 5-character string representation.
|
|
10
|
+
* Tags are encoded as 30-bit values (6 bits per character) using a custom symbol space.
|
|
10
11
|
* @param tag - The numeric tag to convert
|
|
11
12
|
* @returns The string representation of the tag
|
|
12
13
|
*/
|
|
@@ -10,20 +10,16 @@ export {
|
|
|
10
10
|
IPerformanceClient,
|
|
11
11
|
PerformanceCallbackFunction,
|
|
12
12
|
InProgressPerformanceEvent,
|
|
13
|
-
QueueMeasurement,
|
|
14
13
|
} from "./telemetry/performance/IPerformanceClient.js";
|
|
15
14
|
export {
|
|
16
15
|
IntFields,
|
|
17
16
|
PerformanceEvent,
|
|
18
|
-
PerformanceEvents,
|
|
19
17
|
PerformanceEventStatus,
|
|
20
18
|
SubMeasurement,
|
|
21
19
|
} from "./telemetry/performance/PerformanceEvent.js";
|
|
20
|
+
export * as PerformanceEvents from "./telemetry/performance/PerformanceEvents.js";
|
|
22
21
|
export { IPerformanceMeasurement } from "./telemetry/performance/IPerformanceMeasurement.js";
|
|
23
|
-
export {
|
|
24
|
-
PerformanceClient,
|
|
25
|
-
PreQueueEvent,
|
|
26
|
-
} from "./telemetry/performance/PerformanceClient.js";
|
|
22
|
+
export { PerformanceClient } from "./telemetry/performance/PerformanceClient.js";
|
|
27
23
|
export { StubPerformanceClient } from "./telemetry/performance/StubPerformanceClient.js";
|
|
28
24
|
|
|
29
25
|
export { PopTokenGenerator } from "./crypto/PopTokenGenerator.js";
|
package/src/exports-common.ts
CHANGED
|
@@ -9,6 +9,7 @@ import * as CacheHelpers from "./cache/utils/CacheHelpers.js";
|
|
|
9
9
|
import * as TimeUtils from "./utils/TimeUtils.js";
|
|
10
10
|
import * as UrlUtils from "./utils/UrlUtils.js";
|
|
11
11
|
import * as AADServerParamKeys from "./constants/AADServerParamKeys.js";
|
|
12
|
+
import * as AccountEntityUtils from "./cache/utils/AccountEntityUtils.js";
|
|
12
13
|
|
|
13
14
|
export { AuthToken };
|
|
14
15
|
export { AuthorityFactory };
|
|
@@ -16,16 +17,15 @@ export { CacheHelpers };
|
|
|
16
17
|
export { TimeUtils };
|
|
17
18
|
export { UrlUtils };
|
|
18
19
|
export { AADServerParamKeys };
|
|
20
|
+
export { AccountEntityUtils };
|
|
19
21
|
|
|
20
22
|
export { AuthorizationCodeClient } from "./client/AuthorizationCodeClient.js";
|
|
21
23
|
export { RefreshTokenClient } from "./client/RefreshTokenClient.js";
|
|
22
24
|
export { SilentFlowClient } from "./client/SilentFlowClient.js";
|
|
23
|
-
export { BaseClient } from "./client/BaseClient.js";
|
|
24
25
|
export {
|
|
25
26
|
AuthOptions,
|
|
26
27
|
SystemOptions,
|
|
27
28
|
LoggerOptions,
|
|
28
|
-
CacheOptions,
|
|
29
29
|
DEFAULT_SYSTEM_OPTIONS,
|
|
30
30
|
AzureCloudOptions,
|
|
31
31
|
ApplicationTelemetry,
|
|
@@ -107,6 +107,8 @@ export {
|
|
|
107
107
|
} from "./crypto/ICrypto.js";
|
|
108
108
|
|
|
109
109
|
export * as AuthorizeProtocol from "./protocol/Authorize.js";
|
|
110
|
+
export * as TokenProtocol from "./protocol/Token.js";
|
|
111
|
+
|
|
110
112
|
export { BaseAuthRequest } from "./request/BaseAuthRequest.js";
|
|
111
113
|
export { CommonAuthorizationUrlRequest } from "./request/CommonAuthorizationUrlRequest.js";
|
|
112
114
|
export { CommonAuthorizationCodeRequest } from "./request/CommonAuthorizationCodeRequest.js";
|
|
@@ -131,12 +133,10 @@ export { ILoggerCallback, LogLevel, Logger } from "./logger/Logger.js";
|
|
|
131
133
|
export {
|
|
132
134
|
InteractionRequiredAuthError,
|
|
133
135
|
InteractionRequiredAuthErrorCodes,
|
|
134
|
-
InteractionRequiredAuthErrorMessage,
|
|
135
136
|
createInteractionRequiredAuthError,
|
|
136
137
|
} from "./error/InteractionRequiredAuthError.js";
|
|
137
138
|
export {
|
|
138
139
|
AuthError,
|
|
139
|
-
AuthErrorMessage,
|
|
140
140
|
AuthErrorCodes,
|
|
141
141
|
createAuthError,
|
|
142
142
|
} from "./error/AuthError.js";
|
|
@@ -150,52 +150,20 @@ export {
|
|
|
150
150
|
} from "./error/CacheError.js";
|
|
151
151
|
export {
|
|
152
152
|
ClientAuthError,
|
|
153
|
-
ClientAuthErrorMessage,
|
|
154
153
|
ClientAuthErrorCodes,
|
|
155
154
|
createClientAuthError,
|
|
156
155
|
} from "./error/ClientAuthError.js";
|
|
157
156
|
export {
|
|
158
157
|
ClientConfigurationError,
|
|
159
|
-
ClientConfigurationErrorMessage,
|
|
160
158
|
ClientConfigurationErrorCodes,
|
|
161
159
|
createClientConfigurationError,
|
|
162
160
|
} from "./error/ClientConfigurationError.js";
|
|
163
|
-
export
|
|
164
|
-
|
|
165
|
-
OIDC_DEFAULT_SCOPES,
|
|
166
|
-
PromptValue,
|
|
167
|
-
PersistentCacheKeys,
|
|
168
|
-
OAuthResponseType,
|
|
169
|
-
ServerResponseType,
|
|
170
|
-
ResponseMode,
|
|
171
|
-
CacheOutcome,
|
|
172
|
-
CredentialType,
|
|
173
|
-
CacheType,
|
|
174
|
-
CacheAccountType,
|
|
175
|
-
AuthenticationScheme,
|
|
176
|
-
CodeChallengeMethodValues,
|
|
177
|
-
PasswordGrantConstants,
|
|
178
|
-
ThrottlingConstants,
|
|
179
|
-
ClaimsRequestKeys,
|
|
180
|
-
HeaderNames,
|
|
181
|
-
Errors,
|
|
182
|
-
THE_FAMILY_ID,
|
|
183
|
-
ONE_DAY_IN_MS,
|
|
184
|
-
GrantType,
|
|
185
|
-
AADAuthorityConstants,
|
|
186
|
-
HttpStatus,
|
|
187
|
-
HttpMethod,
|
|
188
|
-
DEFAULT_TOKEN_RENEWAL_OFFSET_SEC,
|
|
189
|
-
JsonWebTokenTypes,
|
|
190
|
-
EncodingTypes,
|
|
191
|
-
} from "./utils/Constants.js";
|
|
161
|
+
export * as Constants from "./utils/Constants.js";
|
|
162
|
+
|
|
192
163
|
export { StringUtils } from "./utils/StringUtils.js";
|
|
193
164
|
export { StringDict } from "./utils/MsalTypes.js";
|
|
194
|
-
export {
|
|
195
|
-
|
|
196
|
-
RequestStateObject,
|
|
197
|
-
LibraryStateObject,
|
|
198
|
-
} from "./utils/ProtocolUtils.js";
|
|
165
|
+
export { RequestStateObject, LibraryStateObject } from "./utils/StateTypes.js";
|
|
166
|
+
export * as ProtocolUtils from "./utils/ProtocolUtils.js";
|
|
199
167
|
export * from "./utils/FunctionWrappers.js";
|
|
200
168
|
export { ServerTelemetryManager } from "./telemetry/server/ServerTelemetryManager.js";
|
|
201
169
|
export { ServerTelemetryRequest } from "./telemetry/server/ServerTelemetryRequest.js";
|
package/src/exports-node-only.ts
CHANGED
|
@@ -16,10 +16,6 @@ export { INativeBrokerPlugin } from "./broker/nativeBroker/INativeBrokerPlugin.j
|
|
|
16
16
|
export { ICachePlugin } from "./cache/interface/ICachePlugin.js";
|
|
17
17
|
export { TokenCacheContext } from "./cache/persistence/TokenCacheContext.js";
|
|
18
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
19
|
export { NativeRequest } from "./request/NativeRequest.js";
|
|
24
20
|
export { NativeSignOutRequest } from "./request/NativeSignOutRequest.js";
|
|
25
21
|
export {
|
|
@@ -33,3 +29,8 @@ export {
|
|
|
33
29
|
} from "./response/DeviceCodeResponse.js";
|
|
34
30
|
export { getClientAssertion } from "./utils/ClientAssertionUtils.js";
|
|
35
31
|
export { IGuidGenerator } from "./crypto/IGuidGenerator.js";
|
|
32
|
+
export { StubPerformanceClient } from "./telemetry/performance/StubPerformanceClient.js";
|
|
33
|
+
export {
|
|
34
|
+
buildClientConfiguration,
|
|
35
|
+
CommonClientConfiguration,
|
|
36
|
+
} from "./config/ClientConfiguration.js";
|