@azure/msal-common 15.13.0 → 16.0.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/account/AccountInfo.d.ts +0 -4
- package/dist/account/AccountInfo.d.ts.map +1 -1
- package/dist/account/AccountInfo.mjs +1 -1
- package/dist/account/AccountInfo.mjs.map +1 -1
- package/dist/account/AuthToken.mjs +1 -1
- package/dist/account/AuthToken.mjs.map +1 -1
- package/dist/account/CcsCredential.mjs +1 -1
- package/dist/account/CcsCredential.mjs.map +1 -1
- package/dist/account/ClientInfo.d.ts +1 -5
- package/dist/account/ClientInfo.d.ts.map +1 -1
- package/dist/account/ClientInfo.mjs +4 -6
- package/dist/account/ClientInfo.mjs.map +1 -1
- package/dist/account/TokenClaims.mjs +1 -1
- package/dist/account/TokenClaims.mjs.map +1 -1
- package/dist/authority/Authority.d.ts +2 -2
- package/dist/authority/Authority.d.ts.map +1 -1
- package/dist/authority/Authority.mjs +89 -105
- package/dist/authority/Authority.mjs.map +1 -1
- package/dist/authority/AuthorityFactory.d.ts +6 -2
- package/dist/authority/AuthorityFactory.d.ts.map +1 -1
- package/dist/authority/AuthorityFactory.mjs +8 -5
- package/dist/authority/AuthorityFactory.mjs.map +1 -1
- package/dist/authority/AuthorityMetadata.d.ts +2 -2
- package/dist/authority/AuthorityMetadata.d.ts.map +1 -1
- package/dist/authority/AuthorityMetadata.mjs +8 -8
- package/dist/authority/AuthorityMetadata.mjs.map +1 -1
- package/dist/authority/AuthorityOptions.d.ts +0 -1
- package/dist/authority/AuthorityOptions.d.ts.map +1 -1
- package/dist/authority/AuthorityOptions.mjs +1 -1
- package/dist/authority/AuthorityOptions.mjs.map +1 -1
- package/dist/authority/AuthorityType.mjs +1 -1
- package/dist/authority/AuthorityType.mjs.map +1 -1
- package/dist/authority/CloudInstanceDiscoveryErrorResponse.mjs +1 -1
- package/dist/authority/CloudInstanceDiscoveryResponse.mjs +1 -1
- package/dist/authority/OIDCOptions.d.ts +2 -2
- package/dist/authority/OIDCOptions.d.ts.map +1 -1
- package/dist/authority/OpenIdConfigResponse.mjs +1 -1
- package/dist/authority/ProtocolMode.mjs +1 -1
- package/dist/authority/ProtocolMode.mjs.map +1 -1
- package/dist/authority/RegionDiscovery.d.ts +3 -3
- package/dist/authority/RegionDiscovery.d.ts.map +1 -1
- package/dist/authority/RegionDiscovery.mjs +14 -15
- package/dist/authority/RegionDiscovery.mjs.map +1 -1
- package/dist/cache/CacheManager.d.ts +25 -17
- package/dist/cache/CacheManager.d.ts.map +1 -1
- package/dist/cache/CacheManager.mjs +69 -80
- package/dist/cache/CacheManager.mjs.map +1 -1
- package/dist/cache/entities/AccessTokenEntity.d.ts +0 -4
- package/dist/cache/entities/AccessTokenEntity.d.ts.map +1 -1
- package/dist/cache/entities/AccountEntity.d.ts +4 -57
- package/dist/cache/entities/AccountEntity.d.ts.map +1 -1
- package/dist/cache/entities/CredentialEntity.d.ts +0 -2
- package/dist/cache/entities/CredentialEntity.d.ts.map +1 -1
- package/dist/cache/interface/ICacheManager.d.ts +41 -12
- package/dist/cache/interface/ICacheManager.d.ts.map +1 -1
- package/dist/cache/persistence/TokenCacheContext.mjs +1 -1
- package/dist/cache/persistence/TokenCacheContext.mjs.map +1 -1
- package/dist/cache/utils/AccountEntityUtils.d.ts +60 -0
- package/dist/cache/utils/AccountEntityUtils.d.ts.map +1 -0
- package/dist/cache/utils/AccountEntityUtils.mjs +212 -0
- package/dist/cache/utils/AccountEntityUtils.mjs.map +1 -0
- package/dist/cache/utils/CacheHelpers.d.ts +2 -2
- package/dist/cache/utils/CacheHelpers.d.ts.map +1 -1
- package/dist/cache/utils/CacheHelpers.mjs +10 -13
- package/dist/cache/utils/CacheHelpers.mjs.map +1 -1
- package/dist/cache/utils/CacheTypes.d.ts +0 -1
- package/dist/cache/utils/CacheTypes.d.ts.map +1 -1
- package/dist/client/AuthorizationCodeClient.d.ts +1 -1
- package/dist/client/AuthorizationCodeClient.d.ts.map +1 -1
- package/dist/client/AuthorizationCodeClient.mjs +16 -20
- package/dist/client/AuthorizationCodeClient.mjs.map +1 -1
- package/dist/client/BaseClient.d.ts +3 -3
- package/dist/client/BaseClient.d.ts.map +1 -1
- package/dist/client/BaseClient.mjs +7 -12
- package/dist/client/BaseClient.mjs.map +1 -1
- package/dist/client/RefreshTokenClient.d.ts +1 -1
- package/dist/client/RefreshTokenClient.d.ts.map +1 -1
- package/dist/client/RefreshTokenClient.mjs +22 -27
- package/dist/client/RefreshTokenClient.mjs.map +1 -1
- package/dist/client/SilentFlowClient.d.ts +1 -1
- package/dist/client/SilentFlowClient.d.ts.map +1 -1
- package/dist/client/SilentFlowClient.mjs +8 -12
- package/dist/client/SilentFlowClient.mjs.map +1 -1
- package/dist/config/ClientConfiguration.d.ts +2 -22
- package/dist/config/ClientConfiguration.d.ts.map +1 -1
- package/dist/config/ClientConfiguration.mjs +9 -15
- package/dist/config/ClientConfiguration.mjs.map +1 -1
- package/dist/constants/AADServerParamKeys.mjs +1 -1
- package/dist/crypto/ICrypto.d.ts +5 -3
- package/dist/crypto/ICrypto.d.ts.map +1 -1
- package/dist/crypto/ICrypto.mjs +1 -1
- package/dist/crypto/ICrypto.mjs.map +1 -1
- package/dist/crypto/JoseHeader.mjs +1 -1
- package/dist/crypto/JoseHeader.mjs.map +1 -1
- package/dist/crypto/PopTokenGenerator.d.ts +2 -2
- package/dist/crypto/PopTokenGenerator.d.ts.map +1 -1
- package/dist/crypto/PopTokenGenerator.mjs +3 -5
- package/dist/crypto/PopTokenGenerator.mjs.map +1 -1
- package/dist/error/AuthError.d.ts +1 -18
- package/dist/error/AuthError.d.ts.map +1 -1
- package/dist/error/AuthError.mjs +12 -34
- package/dist/error/AuthError.mjs.map +1 -1
- package/dist/error/AuthErrorCodes.mjs +1 -1
- package/dist/error/CacheError.d.ts +1 -6
- package/dist/error/CacheError.d.ts.map +1 -1
- package/dist/error/CacheError.mjs +6 -13
- package/dist/error/CacheError.mjs.map +1 -1
- package/dist/error/CacheErrorCodes.mjs +1 -1
- package/dist/error/ClientAuthError.d.ts +0 -224
- package/dist/error/ClientAuthError.d.ts.map +1 -1
- package/dist/error/ClientAuthError.mjs +3 -235
- package/dist/error/ClientAuthError.mjs.map +1 -1
- package/dist/error/ClientAuthErrorCodes.d.ts +0 -8
- package/dist/error/ClientAuthErrorCodes.d.ts.map +1 -1
- package/dist/error/ClientAuthErrorCodes.mjs +2 -10
- package/dist/error/ClientAuthErrorCodes.mjs.map +1 -1
- package/dist/error/ClientConfigurationError.d.ts +0 -123
- package/dist/error/ClientConfigurationError.d.ts.map +1 -1
- package/dist/error/ClientConfigurationError.mjs +3 -129
- package/dist/error/ClientConfigurationError.mjs.map +1 -1
- package/dist/error/ClientConfigurationErrorCodes.d.ts +0 -2
- package/dist/error/ClientConfigurationErrorCodes.d.ts.map +1 -1
- package/dist/error/ClientConfigurationErrorCodes.mjs +3 -5
- package/dist/error/ClientConfigurationErrorCodes.mjs.map +1 -1
- package/dist/error/InteractionRequiredAuthError.d.ts +1 -19
- package/dist/error/InteractionRequiredAuthError.d.ts.map +1 -1
- package/dist/error/InteractionRequiredAuthError.mjs +10 -35
- package/dist/error/InteractionRequiredAuthError.mjs.map +1 -1
- package/dist/error/InteractionRequiredAuthErrorCodes.mjs +1 -1
- package/dist/error/JoseHeaderError.d.ts +0 -4
- package/dist/error/JoseHeaderError.d.ts.map +1 -1
- package/dist/error/JoseHeaderError.mjs +3 -8
- package/dist/error/JoseHeaderError.mjs.map +1 -1
- package/dist/error/JoseHeaderErrorCodes.mjs +1 -1
- package/dist/error/NetworkError.mjs +1 -1
- package/dist/error/NetworkError.mjs.map +1 -1
- package/dist/error/ServerError.mjs +1 -1
- package/dist/error/ServerError.mjs.map +1 -1
- package/dist/exports-browser-only.d.ts +4 -3
- package/dist/exports-browser-only.d.ts.map +1 -1
- package/dist/exports-common.d.ts +8 -6
- package/dist/exports-common.d.ts.map +1 -1
- package/dist/exports-node-only.d.ts +1 -4
- package/dist/exports-node-only.d.ts.map +1 -1
- package/dist/index-browser.mjs +12 -8
- package/dist/index-browser.mjs.map +1 -1
- package/dist/index-node.mjs +10 -7
- package/dist/index-node.mjs.map +1 -1
- package/dist/index.mjs +12 -8
- package/dist/index.mjs.map +1 -1
- package/dist/logger/Logger.d.ts +12 -13
- package/dist/logger/Logger.d.ts.map +1 -1
- package/dist/logger/Logger.mjs +16 -21
- package/dist/logger/Logger.mjs.map +1 -1
- package/dist/network/INetworkModule.mjs +1 -1
- package/dist/network/INetworkModule.mjs.map +1 -1
- package/dist/network/RequestThumbprint.mjs +1 -1
- package/dist/network/ThrottlingUtils.d.ts.map +1 -1
- package/dist/network/ThrottlingUtils.mjs +6 -7
- package/dist/network/ThrottlingUtils.mjs.map +1 -1
- package/dist/packageMetadata.d.ts +1 -1
- package/dist/packageMetadata.d.ts.map +1 -1
- package/dist/packageMetadata.mjs +2 -2
- package/dist/protocol/Authorize.d.ts +1 -2
- package/dist/protocol/Authorize.d.ts.map +1 -1
- package/dist/protocol/Authorize.mjs +14 -14
- package/dist/protocol/Authorize.mjs.map +1 -1
- package/dist/request/AuthenticationHeaderParser.d.ts.map +1 -1
- package/dist/request/AuthenticationHeaderParser.mjs +3 -3
- package/dist/request/AuthenticationHeaderParser.mjs.map +1 -1
- package/dist/request/BaseAuthRequest.d.ts +1 -7
- package/dist/request/BaseAuthRequest.d.ts.map +1 -1
- package/dist/request/RequestParameterBuilder.d.ts +3 -9
- package/dist/request/RequestParameterBuilder.d.ts.map +1 -1
- package/dist/request/RequestParameterBuilder.mjs +7 -20
- package/dist/request/RequestParameterBuilder.mjs.map +1 -1
- package/dist/request/ScopeSet.mjs +5 -5
- package/dist/request/ScopeSet.mjs.map +1 -1
- package/dist/response/AuthenticationResult.d.ts +1 -1
- package/dist/response/AuthenticationResult.d.ts.map +1 -1
- package/dist/response/ResponseHandler.d.ts +6 -5
- package/dist/response/ResponseHandler.d.ts.map +1 -1
- package/dist/response/ResponseHandler.mjs +39 -41
- package/dist/response/ResponseHandler.mjs.map +1 -1
- package/dist/telemetry/performance/IPerformanceClient.d.ts +1 -31
- package/dist/telemetry/performance/IPerformanceClient.d.ts.map +1 -1
- package/dist/telemetry/performance/PerformanceClient.d.ts +6 -85
- package/dist/telemetry/performance/PerformanceClient.d.ts.map +1 -1
- package/dist/telemetry/performance/PerformanceClient.mjs +28 -188
- package/dist/telemetry/performance/PerformanceClient.mjs.map +1 -1
- package/dist/telemetry/performance/PerformanceEvent.d.ts +0 -282
- package/dist/telemetry/performance/PerformanceEvent.d.ts.map +1 -1
- package/dist/telemetry/performance/PerformanceEvent.mjs +2 -483
- package/dist/telemetry/performance/PerformanceEvent.mjs.map +1 -1
- package/dist/telemetry/performance/PerformanceEvents.d.ts +65 -0
- package/dist/telemetry/performance/PerformanceEvents.d.ts.map +1 -0
- package/dist/telemetry/performance/PerformanceEvents.mjs +73 -0
- package/dist/telemetry/performance/PerformanceEvents.mjs.map +1 -0
- package/dist/telemetry/performance/StubPerformanceClient.d.ts +0 -4
- package/dist/telemetry/performance/StubPerformanceClient.d.ts.map +1 -1
- package/dist/telemetry/performance/StubPerformanceClient.mjs +2 -26
- package/dist/telemetry/performance/StubPerformanceClient.mjs.map +1 -1
- package/dist/telemetry/server/ServerTelemetryManager.d.ts +2 -2
- package/dist/telemetry/server/ServerTelemetryManager.d.ts.map +1 -1
- package/dist/telemetry/server/ServerTelemetryManager.mjs +28 -30
- package/dist/telemetry/server/ServerTelemetryManager.mjs.map +1 -1
- package/dist/url/UrlString.d.ts +0 -5
- package/dist/url/UrlString.d.ts.map +1 -1
- package/dist/url/UrlString.mjs +5 -13
- package/dist/url/UrlString.mjs.map +1 -1
- package/dist/utils/ClientAssertionUtils.mjs +1 -1
- package/dist/utils/ClientAssertionUtils.mjs.map +1 -1
- package/dist/utils/Constants.d.ts +81 -117
- package/dist/utils/Constants.d.ts.map +1 -1
- package/dist/utils/Constants.mjs +100 -131
- package/dist/utils/Constants.mjs.map +1 -1
- package/dist/utils/FunctionWrappers.d.ts +2 -2
- package/dist/utils/FunctionWrappers.d.ts.map +1 -1
- package/dist/utils/FunctionWrappers.mjs +19 -20
- package/dist/utils/FunctionWrappers.mjs.map +1 -1
- package/dist/utils/ProtocolUtils.mjs +7 -7
- package/dist/utils/ProtocolUtils.mjs.map +1 -1
- package/dist/utils/StringUtils.mjs +1 -1
- package/dist/utils/StringUtils.mjs.map +1 -1
- package/dist/utils/TimeUtils.mjs +1 -1
- package/dist/utils/TimeUtils.mjs.map +1 -1
- package/dist/utils/UrlUtils.d.ts +1 -2
- package/dist/utils/UrlUtils.d.ts.map +1 -1
- package/dist/utils/UrlUtils.mjs +3 -10
- package/dist/utils/UrlUtils.mjs.map +1 -1
- package/lib/index-browser.cjs +29 -222
- package/lib/index-browser.cjs.map +1 -1
- package/lib/{index-node-D8Iaiqq3.js → index-node-FrCFfFuh.js} +1606 -2493
- package/lib/index-node-FrCFfFuh.js.map +1 -0
- package/lib/index-node.cjs +4 -33
- package/lib/index-node.cjs.map +1 -1
- package/lib/index.cjs +3 -33
- package/lib/index.cjs.map +1 -1
- package/lib/types/account/AccountInfo.d.ts +0 -4
- package/lib/types/account/AccountInfo.d.ts.map +1 -1
- package/lib/types/account/ClientInfo.d.ts +1 -5
- package/lib/types/account/ClientInfo.d.ts.map +1 -1
- package/lib/types/authority/Authority.d.ts +2 -2
- package/lib/types/authority/Authority.d.ts.map +1 -1
- package/lib/types/authority/AuthorityFactory.d.ts +6 -2
- package/lib/types/authority/AuthorityFactory.d.ts.map +1 -1
- package/lib/types/authority/AuthorityMetadata.d.ts +2 -2
- package/lib/types/authority/AuthorityMetadata.d.ts.map +1 -1
- package/lib/types/authority/AuthorityOptions.d.ts +0 -1
- package/lib/types/authority/AuthorityOptions.d.ts.map +1 -1
- package/lib/types/authority/OIDCOptions.d.ts +2 -2
- package/lib/types/authority/OIDCOptions.d.ts.map +1 -1
- package/lib/types/authority/RegionDiscovery.d.ts +3 -3
- package/lib/types/authority/RegionDiscovery.d.ts.map +1 -1
- package/lib/types/cache/CacheManager.d.ts +25 -17
- package/lib/types/cache/CacheManager.d.ts.map +1 -1
- package/lib/types/cache/entities/AccessTokenEntity.d.ts +0 -4
- package/lib/types/cache/entities/AccessTokenEntity.d.ts.map +1 -1
- package/lib/types/cache/entities/AccountEntity.d.ts +4 -57
- package/lib/types/cache/entities/AccountEntity.d.ts.map +1 -1
- package/lib/types/cache/entities/CredentialEntity.d.ts +0 -2
- package/lib/types/cache/entities/CredentialEntity.d.ts.map +1 -1
- package/lib/types/cache/interface/ICacheManager.d.ts +41 -12
- package/lib/types/cache/interface/ICacheManager.d.ts.map +1 -1
- package/lib/types/cache/utils/AccountEntityUtils.d.ts +60 -0
- package/lib/types/cache/utils/AccountEntityUtils.d.ts.map +1 -0
- package/lib/types/cache/utils/CacheHelpers.d.ts +2 -2
- package/lib/types/cache/utils/CacheHelpers.d.ts.map +1 -1
- package/lib/types/cache/utils/CacheTypes.d.ts +0 -1
- package/lib/types/cache/utils/CacheTypes.d.ts.map +1 -1
- package/lib/types/client/AuthorizationCodeClient.d.ts +1 -1
- package/lib/types/client/AuthorizationCodeClient.d.ts.map +1 -1
- package/lib/types/client/BaseClient.d.ts +3 -3
- package/lib/types/client/BaseClient.d.ts.map +1 -1
- package/lib/types/client/RefreshTokenClient.d.ts +1 -1
- package/lib/types/client/RefreshTokenClient.d.ts.map +1 -1
- package/lib/types/client/SilentFlowClient.d.ts +1 -1
- package/lib/types/client/SilentFlowClient.d.ts.map +1 -1
- package/lib/types/config/ClientConfiguration.d.ts +2 -22
- package/lib/types/config/ClientConfiguration.d.ts.map +1 -1
- package/lib/types/crypto/ICrypto.d.ts +5 -3
- package/lib/types/crypto/ICrypto.d.ts.map +1 -1
- package/lib/types/crypto/PopTokenGenerator.d.ts +2 -2
- package/lib/types/crypto/PopTokenGenerator.d.ts.map +1 -1
- package/lib/types/error/AuthError.d.ts +1 -18
- package/lib/types/error/AuthError.d.ts.map +1 -1
- package/lib/types/error/CacheError.d.ts +1 -6
- package/lib/types/error/CacheError.d.ts.map +1 -1
- package/lib/types/error/ClientAuthError.d.ts +0 -224
- package/lib/types/error/ClientAuthError.d.ts.map +1 -1
- package/lib/types/error/ClientAuthErrorCodes.d.ts +0 -8
- package/lib/types/error/ClientAuthErrorCodes.d.ts.map +1 -1
- package/lib/types/error/ClientConfigurationError.d.ts +0 -123
- package/lib/types/error/ClientConfigurationError.d.ts.map +1 -1
- package/lib/types/error/ClientConfigurationErrorCodes.d.ts +0 -2
- package/lib/types/error/ClientConfigurationErrorCodes.d.ts.map +1 -1
- package/lib/types/error/InteractionRequiredAuthError.d.ts +1 -19
- package/lib/types/error/InteractionRequiredAuthError.d.ts.map +1 -1
- package/lib/types/error/JoseHeaderError.d.ts +0 -4
- package/lib/types/error/JoseHeaderError.d.ts.map +1 -1
- package/lib/types/exports-browser-only.d.ts +4 -3
- package/lib/types/exports-browser-only.d.ts.map +1 -1
- package/lib/types/exports-common.d.ts +8 -6
- package/lib/types/exports-common.d.ts.map +1 -1
- package/lib/types/exports-node-only.d.ts +1 -4
- package/lib/types/exports-node-only.d.ts.map +1 -1
- package/lib/types/logger/Logger.d.ts +12 -13
- package/lib/types/logger/Logger.d.ts.map +1 -1
- package/lib/types/network/ThrottlingUtils.d.ts.map +1 -1
- package/lib/types/packageMetadata.d.ts +1 -1
- package/lib/types/packageMetadata.d.ts.map +1 -1
- package/lib/types/protocol/Authorize.d.ts +1 -2
- package/lib/types/protocol/Authorize.d.ts.map +1 -1
- package/lib/types/request/AuthenticationHeaderParser.d.ts.map +1 -1
- package/lib/types/request/BaseAuthRequest.d.ts +1 -7
- package/lib/types/request/BaseAuthRequest.d.ts.map +1 -1
- package/lib/types/request/RequestParameterBuilder.d.ts +3 -9
- package/lib/types/request/RequestParameterBuilder.d.ts.map +1 -1
- package/lib/types/response/AuthenticationResult.d.ts +1 -1
- package/lib/types/response/AuthenticationResult.d.ts.map +1 -1
- package/lib/types/response/ResponseHandler.d.ts +6 -5
- package/lib/types/response/ResponseHandler.d.ts.map +1 -1
- package/lib/types/telemetry/performance/IPerformanceClient.d.ts +1 -31
- package/lib/types/telemetry/performance/IPerformanceClient.d.ts.map +1 -1
- package/lib/types/telemetry/performance/PerformanceClient.d.ts +6 -85
- package/lib/types/telemetry/performance/PerformanceClient.d.ts.map +1 -1
- package/lib/types/telemetry/performance/PerformanceEvent.d.ts +0 -282
- package/lib/types/telemetry/performance/PerformanceEvent.d.ts.map +1 -1
- package/lib/types/telemetry/performance/PerformanceEvents.d.ts +65 -0
- package/lib/types/telemetry/performance/PerformanceEvents.d.ts.map +1 -0
- package/lib/types/telemetry/performance/StubPerformanceClient.d.ts +0 -4
- package/lib/types/telemetry/performance/StubPerformanceClient.d.ts.map +1 -1
- package/lib/types/telemetry/server/ServerTelemetryManager.d.ts +2 -2
- package/lib/types/telemetry/server/ServerTelemetryManager.d.ts.map +1 -1
- package/lib/types/url/UrlString.d.ts +0 -5
- package/lib/types/url/UrlString.d.ts.map +1 -1
- package/lib/types/utils/Constants.d.ts +81 -117
- package/lib/types/utils/Constants.d.ts.map +1 -1
- package/lib/types/utils/FunctionWrappers.d.ts +2 -2
- package/lib/types/utils/FunctionWrappers.d.ts.map +1 -1
- package/lib/types/utils/UrlUtils.d.ts +1 -2
- package/lib/types/utils/UrlUtils.d.ts.map +1 -1
- package/package.json +120 -122
- package/src/account/AccountInfo.ts +0 -6
- package/src/account/ClientInfo.ts +4 -11
- package/src/authority/Authority.ts +145 -146
- package/src/authority/AuthorityFactory.ts +7 -7
- package/src/authority/AuthorityMetadata.ts +21 -12
- package/src/authority/AuthorityOptions.ts +0 -1
- package/src/authority/OIDCOptions.ts +2 -2
- package/src/authority/RegionDiscovery.ts +20 -33
- package/src/cache/CacheManager.ts +176 -126
- package/src/cache/entities/AccessTokenEntity.ts +0 -4
- package/src/cache/entities/AccountEntity.ts +4 -293
- package/src/cache/entities/CredentialEntity.ts +0 -2
- package/src/cache/interface/ICacheManager.ts +61 -15
- package/src/cache/utils/AccountEntityUtils.ts +287 -0
- package/src/cache/utils/CacheHelpers.ts +23 -37
- package/src/cache/utils/CacheTypes.ts +0 -1
- package/src/client/AuthorizationCodeClient.ts +28 -49
- package/src/client/BaseClient.ts +8 -20
- package/src/client/RefreshTokenClient.ts +29 -61
- package/src/client/SilentFlowClient.ts +11 -20
- package/src/config/ClientConfiguration.ts +9 -37
- package/src/crypto/ICrypto.ts +5 -3
- package/src/crypto/PopTokenGenerator.ts +3 -13
- package/src/error/AuthError.ts +11 -30
- package/src/error/CacheError.ts +4 -15
- package/src/error/ClientAuthError.ts +1 -311
- package/src/error/ClientAuthErrorCodes.ts +0 -8
- package/src/error/ClientConfigurationError.ts +1 -194
- package/src/error/ClientConfigurationErrorCodes.ts +0 -3
- package/src/error/InteractionRequiredAuthError.ts +8 -48
- package/src/error/JoseHeaderError.ts +1 -8
- package/src/exports-browser-only.ts +2 -6
- package/src/exports-common.ts +4 -34
- package/src/exports-node-only.ts +1 -4
- package/src/logger/Logger.ts +26 -39
- package/src/network/ThrottlingUtils.ts +12 -15
- package/src/packageMetadata.ts +1 -1
- package/src/protocol/Authorize.ts +24 -20
- package/src/request/AuthenticationHeaderParser.ts +2 -4
- package/src/request/BaseAuthRequest.ts +1 -7
- package/src/request/RequestParameterBuilder.ts +30 -45
- package/src/request/ScopeSet.ts +4 -4
- package/src/response/AuthenticationResult.ts +1 -1
- package/src/response/ResponseHandler.ts +53 -58
- package/src/telemetry/performance/IPerformanceClient.ts +1 -43
- package/src/telemetry/performance/PerformanceClient.ts +32 -295
- package/src/telemetry/performance/PerformanceEvent.ts +0 -586
- package/src/telemetry/performance/PerformanceEvents.ts +97 -0
- package/src/telemetry/performance/StubPerformanceClient.ts +0 -16
- package/src/telemetry/server/ServerTelemetryManager.ts +33 -44
- package/src/url/UrlString.ts +3 -12
- package/src/utils/Constants.ts +103 -146
- package/src/utils/FunctionWrappers.ts +28 -29
- package/src/utils/ProtocolUtils.ts +6 -6
- package/src/utils/UrlUtils.ts +2 -15
- package/dist/cache/entities/AccountEntity.mjs +0 -232
- package/dist/cache/entities/AccountEntity.mjs.map +0 -1
- package/dist/request/CommonClientCredentialRequest.d.ts +0 -18
- package/dist/request/CommonClientCredentialRequest.d.ts.map +0 -1
- package/dist/request/CommonDeviceCodeRequest.d.ts +0 -22
- package/dist/request/CommonDeviceCodeRequest.d.ts.map +0 -1
- package/dist/request/CommonOnBehalfOfRequest.d.ts +0 -14
- package/dist/request/CommonOnBehalfOfRequest.d.ts.map +0 -1
- package/dist/request/CommonUsernamePasswordRequest.d.ts +0 -18
- package/dist/request/CommonUsernamePasswordRequest.d.ts.map +0 -1
- package/lib/index-node-D8Iaiqq3.js.map +0 -1
- package/lib/types/request/CommonClientCredentialRequest.d.ts +0 -18
- package/lib/types/request/CommonClientCredentialRequest.d.ts.map +0 -1
- package/lib/types/request/CommonDeviceCodeRequest.d.ts +0 -22
- package/lib/types/request/CommonDeviceCodeRequest.d.ts.map +0 -1
- package/lib/types/request/CommonOnBehalfOfRequest.d.ts +0 -14
- package/lib/types/request/CommonOnBehalfOfRequest.d.ts.map +0 -1
- package/lib/types/request/CommonUsernamePasswordRequest.d.ts +0 -18
- package/lib/types/request/CommonUsernamePasswordRequest.d.ts.map +0 -1
- package/src/request/CommonClientCredentialRequest.ts +0 -23
- package/src/request/CommonDeviceCodeRequest.ts +0 -31
- package/src/request/CommonOnBehalfOfRequest.ts +0 -19
- package/src/request/CommonUsernamePasswordRequest.ts +0 -23
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
/*! @azure/msal-common
|
|
1
|
+
/*! @azure/msal-common v16.0.0-alpha.0 2025-10-02 */
|
|
2
2
|
'use strict';
|
|
3
3
|
import { AuthError } from './AuthError.mjs';
|
|
4
|
-
import { nestedAppAuthBridgeDisabled, missingTenantIdError, userCanceled, noNetworkConnectivity, keyIdMissing, endSessionEndpointNotSupported, bindingKeyNotRemoved, authorizationCodeMissingFromServerResponse, tokenClaimsCnfRequiredForSignedJwt, userTimeoutReached, tokenRefreshRequired, invalidClientCredential, invalidAssertion, unexpectedCredentialType, noCryptoObject, noAccountFound, invalidCacheEnvironment, invalidCacheRecord, noAccountInSilentRequest, deviceCodeUnknownError, deviceCodeExpired, deviceCodePollingCancelled, emptyInputScopeSet, cannotAppendScopeSet, cannotRemoveEmptyScope, requestCannotBeMade, multipleMatchingAppMetadata, multipleMatchingAccounts, multipleMatchingTokens, maxAgeTranspired, authTimeNotFound, nonceMismatch, stateNotFound, stateMismatch, invalidState, hashNotDeserialized, openIdConfigError, networkError, endpointResolutionError, nullOrEmptyToken, tokenParsingError, clientInfoEmptyError, clientInfoDecodingError, methodNotImplemented } from './ClientAuthErrorCodes.mjs';
|
|
5
|
-
import * as ClientAuthErrorCodes from './ClientAuthErrorCodes.mjs';
|
|
6
|
-
export { ClientAuthErrorCodes };
|
|
7
4
|
|
|
8
5
|
/*
|
|
9
6
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -12,241 +9,12 @@ export { ClientAuthErrorCodes };
|
|
|
12
9
|
/**
|
|
13
10
|
* ClientAuthErrorMessage class containing string constants used by error codes and messages.
|
|
14
11
|
*/
|
|
15
|
-
const ClientAuthErrorMessages = {
|
|
16
|
-
[clientInfoDecodingError]: "The client info could not be parsed/decoded correctly",
|
|
17
|
-
[clientInfoEmptyError]: "The client info was empty",
|
|
18
|
-
[tokenParsingError]: "Token cannot be parsed",
|
|
19
|
-
[nullOrEmptyToken]: "The token is null or empty",
|
|
20
|
-
[endpointResolutionError]: "Endpoints cannot be resolved",
|
|
21
|
-
[networkError]: "Network request failed",
|
|
22
|
-
[openIdConfigError]: "Could not retrieve endpoints. Check your authority and verify the .well-known/openid-configuration endpoint returns the required endpoints.",
|
|
23
|
-
[hashNotDeserialized]: "The hash parameters could not be deserialized",
|
|
24
|
-
[invalidState]: "State was not the expected format",
|
|
25
|
-
[stateMismatch]: "State mismatch error",
|
|
26
|
-
[stateNotFound]: "State not found",
|
|
27
|
-
[nonceMismatch]: "Nonce mismatch error",
|
|
28
|
-
[authTimeNotFound]: "Max Age was requested and the ID token is missing the auth_time variable." +
|
|
29
|
-
" auth_time is an optional claim and is not enabled by default - it must be enabled." +
|
|
30
|
-
" See https://aka.ms/msaljs/optional-claims for more information.",
|
|
31
|
-
[maxAgeTranspired]: "Max Age is set to 0, or too much time has elapsed since the last end-user authentication.",
|
|
32
|
-
[multipleMatchingTokens]: "The cache contains multiple tokens satisfying the requirements. " +
|
|
33
|
-
"Call AcquireToken again providing more requirements such as authority or account.",
|
|
34
|
-
[multipleMatchingAccounts]: "The cache contains multiple accounts satisfying the given parameters. Please pass more info to obtain the correct account",
|
|
35
|
-
[multipleMatchingAppMetadata]: "The cache contains multiple appMetadata satisfying the given parameters. Please pass more info to obtain the correct appMetadata",
|
|
36
|
-
[requestCannotBeMade]: "Token request cannot be made without authorization code or refresh token.",
|
|
37
|
-
[cannotRemoveEmptyScope]: "Cannot remove null or empty scope from ScopeSet",
|
|
38
|
-
[cannotAppendScopeSet]: "Cannot append ScopeSet",
|
|
39
|
-
[emptyInputScopeSet]: "Empty input ScopeSet cannot be processed",
|
|
40
|
-
[deviceCodePollingCancelled]: "Caller has cancelled token endpoint polling during device code flow by setting DeviceCodeRequest.cancel = true.",
|
|
41
|
-
[deviceCodeExpired]: "Device code is expired.",
|
|
42
|
-
[deviceCodeUnknownError]: "Device code stopped polling for unknown reasons.",
|
|
43
|
-
[noAccountInSilentRequest]: "Please pass an account object, silent flow is not supported without account information",
|
|
44
|
-
[invalidCacheRecord]: "Cache record object was null or undefined.",
|
|
45
|
-
[invalidCacheEnvironment]: "Invalid environment when attempting to create cache entry",
|
|
46
|
-
[noAccountFound]: "No account found in cache for given key.",
|
|
47
|
-
[noCryptoObject]: "No crypto object detected.",
|
|
48
|
-
[unexpectedCredentialType]: "Unexpected credential type.",
|
|
49
|
-
[invalidAssertion]: "Client assertion must meet requirements described in https://tools.ietf.org/html/rfc7515",
|
|
50
|
-
[invalidClientCredential]: "Client credential (secret, certificate, or assertion) must not be empty when creating a confidential client. An application should at most have one credential",
|
|
51
|
-
[tokenRefreshRequired]: "Cannot return token from cache because it must be refreshed. This may be due to one of the following reasons: forceRefresh parameter is set to true, claims have been requested, there is no cached access token or it is expired.",
|
|
52
|
-
[userTimeoutReached]: "User defined timeout for device code polling reached",
|
|
53
|
-
[tokenClaimsCnfRequiredForSignedJwt]: "Cannot generate a POP jwt if the token_claims are not populated",
|
|
54
|
-
[authorizationCodeMissingFromServerResponse]: "Server response does not contain an authorization code to proceed",
|
|
55
|
-
[bindingKeyNotRemoved]: "Could not remove the credential's binding key from storage.",
|
|
56
|
-
[endSessionEndpointNotSupported]: "The provided authority does not support logout",
|
|
57
|
-
[keyIdMissing]: "A keyId value is missing from the requested bound token's cache record and is required to match the token to it's stored binding key.",
|
|
58
|
-
[noNetworkConnectivity]: "No network connectivity. Check your internet connection.",
|
|
59
|
-
[userCanceled]: "User cancelled the flow.",
|
|
60
|
-
[missingTenantIdError]: "A tenant id - not common, organizations, or consumers - must be specified when using the client_credentials flow.",
|
|
61
|
-
[methodNotImplemented]: "This method has not been implemented",
|
|
62
|
-
[nestedAppAuthBridgeDisabled]: "The nested app auth bridge is disabled",
|
|
63
|
-
};
|
|
64
|
-
/**
|
|
65
|
-
* String constants used by error codes and messages.
|
|
66
|
-
* @deprecated Use ClientAuthErrorCodes instead
|
|
67
|
-
*/
|
|
68
|
-
const ClientAuthErrorMessage = {
|
|
69
|
-
clientInfoDecodingError: {
|
|
70
|
-
code: clientInfoDecodingError,
|
|
71
|
-
desc: ClientAuthErrorMessages[clientInfoDecodingError],
|
|
72
|
-
},
|
|
73
|
-
clientInfoEmptyError: {
|
|
74
|
-
code: clientInfoEmptyError,
|
|
75
|
-
desc: ClientAuthErrorMessages[clientInfoEmptyError],
|
|
76
|
-
},
|
|
77
|
-
tokenParsingError: {
|
|
78
|
-
code: tokenParsingError,
|
|
79
|
-
desc: ClientAuthErrorMessages[tokenParsingError],
|
|
80
|
-
},
|
|
81
|
-
nullOrEmptyToken: {
|
|
82
|
-
code: nullOrEmptyToken,
|
|
83
|
-
desc: ClientAuthErrorMessages[nullOrEmptyToken],
|
|
84
|
-
},
|
|
85
|
-
endpointResolutionError: {
|
|
86
|
-
code: endpointResolutionError,
|
|
87
|
-
desc: ClientAuthErrorMessages[endpointResolutionError],
|
|
88
|
-
},
|
|
89
|
-
networkError: {
|
|
90
|
-
code: networkError,
|
|
91
|
-
desc: ClientAuthErrorMessages[networkError],
|
|
92
|
-
},
|
|
93
|
-
unableToGetOpenidConfigError: {
|
|
94
|
-
code: openIdConfigError,
|
|
95
|
-
desc: ClientAuthErrorMessages[openIdConfigError],
|
|
96
|
-
},
|
|
97
|
-
hashNotDeserialized: {
|
|
98
|
-
code: hashNotDeserialized,
|
|
99
|
-
desc: ClientAuthErrorMessages[hashNotDeserialized],
|
|
100
|
-
},
|
|
101
|
-
invalidStateError: {
|
|
102
|
-
code: invalidState,
|
|
103
|
-
desc: ClientAuthErrorMessages[invalidState],
|
|
104
|
-
},
|
|
105
|
-
stateMismatchError: {
|
|
106
|
-
code: stateMismatch,
|
|
107
|
-
desc: ClientAuthErrorMessages[stateMismatch],
|
|
108
|
-
},
|
|
109
|
-
stateNotFoundError: {
|
|
110
|
-
code: stateNotFound,
|
|
111
|
-
desc: ClientAuthErrorMessages[stateNotFound],
|
|
112
|
-
},
|
|
113
|
-
nonceMismatchError: {
|
|
114
|
-
code: nonceMismatch,
|
|
115
|
-
desc: ClientAuthErrorMessages[nonceMismatch],
|
|
116
|
-
},
|
|
117
|
-
authTimeNotFoundError: {
|
|
118
|
-
code: authTimeNotFound,
|
|
119
|
-
desc: ClientAuthErrorMessages[authTimeNotFound],
|
|
120
|
-
},
|
|
121
|
-
maxAgeTranspired: {
|
|
122
|
-
code: maxAgeTranspired,
|
|
123
|
-
desc: ClientAuthErrorMessages[maxAgeTranspired],
|
|
124
|
-
},
|
|
125
|
-
multipleMatchingTokens: {
|
|
126
|
-
code: multipleMatchingTokens,
|
|
127
|
-
desc: ClientAuthErrorMessages[multipleMatchingTokens],
|
|
128
|
-
},
|
|
129
|
-
multipleMatchingAccounts: {
|
|
130
|
-
code: multipleMatchingAccounts,
|
|
131
|
-
desc: ClientAuthErrorMessages[multipleMatchingAccounts],
|
|
132
|
-
},
|
|
133
|
-
multipleMatchingAppMetadata: {
|
|
134
|
-
code: multipleMatchingAppMetadata,
|
|
135
|
-
desc: ClientAuthErrorMessages[multipleMatchingAppMetadata],
|
|
136
|
-
},
|
|
137
|
-
tokenRequestCannotBeMade: {
|
|
138
|
-
code: requestCannotBeMade,
|
|
139
|
-
desc: ClientAuthErrorMessages[requestCannotBeMade],
|
|
140
|
-
},
|
|
141
|
-
removeEmptyScopeError: {
|
|
142
|
-
code: cannotRemoveEmptyScope,
|
|
143
|
-
desc: ClientAuthErrorMessages[cannotRemoveEmptyScope],
|
|
144
|
-
},
|
|
145
|
-
appendScopeSetError: {
|
|
146
|
-
code: cannotAppendScopeSet,
|
|
147
|
-
desc: ClientAuthErrorMessages[cannotAppendScopeSet],
|
|
148
|
-
},
|
|
149
|
-
emptyInputScopeSetError: {
|
|
150
|
-
code: emptyInputScopeSet,
|
|
151
|
-
desc: ClientAuthErrorMessages[emptyInputScopeSet],
|
|
152
|
-
},
|
|
153
|
-
DeviceCodePollingCancelled: {
|
|
154
|
-
code: deviceCodePollingCancelled,
|
|
155
|
-
desc: ClientAuthErrorMessages[deviceCodePollingCancelled],
|
|
156
|
-
},
|
|
157
|
-
DeviceCodeExpired: {
|
|
158
|
-
code: deviceCodeExpired,
|
|
159
|
-
desc: ClientAuthErrorMessages[deviceCodeExpired],
|
|
160
|
-
},
|
|
161
|
-
DeviceCodeUnknownError: {
|
|
162
|
-
code: deviceCodeUnknownError,
|
|
163
|
-
desc: ClientAuthErrorMessages[deviceCodeUnknownError],
|
|
164
|
-
},
|
|
165
|
-
NoAccountInSilentRequest: {
|
|
166
|
-
code: noAccountInSilentRequest,
|
|
167
|
-
desc: ClientAuthErrorMessages[noAccountInSilentRequest],
|
|
168
|
-
},
|
|
169
|
-
invalidCacheRecord: {
|
|
170
|
-
code: invalidCacheRecord,
|
|
171
|
-
desc: ClientAuthErrorMessages[invalidCacheRecord],
|
|
172
|
-
},
|
|
173
|
-
invalidCacheEnvironment: {
|
|
174
|
-
code: invalidCacheEnvironment,
|
|
175
|
-
desc: ClientAuthErrorMessages[invalidCacheEnvironment],
|
|
176
|
-
},
|
|
177
|
-
noAccountFound: {
|
|
178
|
-
code: noAccountFound,
|
|
179
|
-
desc: ClientAuthErrorMessages[noAccountFound],
|
|
180
|
-
},
|
|
181
|
-
noCryptoObj: {
|
|
182
|
-
code: noCryptoObject,
|
|
183
|
-
desc: ClientAuthErrorMessages[noCryptoObject],
|
|
184
|
-
},
|
|
185
|
-
unexpectedCredentialType: {
|
|
186
|
-
code: unexpectedCredentialType,
|
|
187
|
-
desc: ClientAuthErrorMessages[unexpectedCredentialType],
|
|
188
|
-
},
|
|
189
|
-
invalidAssertion: {
|
|
190
|
-
code: invalidAssertion,
|
|
191
|
-
desc: ClientAuthErrorMessages[invalidAssertion],
|
|
192
|
-
},
|
|
193
|
-
invalidClientCredential: {
|
|
194
|
-
code: invalidClientCredential,
|
|
195
|
-
desc: ClientAuthErrorMessages[invalidClientCredential],
|
|
196
|
-
},
|
|
197
|
-
tokenRefreshRequired: {
|
|
198
|
-
code: tokenRefreshRequired,
|
|
199
|
-
desc: ClientAuthErrorMessages[tokenRefreshRequired],
|
|
200
|
-
},
|
|
201
|
-
userTimeoutReached: {
|
|
202
|
-
code: userTimeoutReached,
|
|
203
|
-
desc: ClientAuthErrorMessages[userTimeoutReached],
|
|
204
|
-
},
|
|
205
|
-
tokenClaimsRequired: {
|
|
206
|
-
code: tokenClaimsCnfRequiredForSignedJwt,
|
|
207
|
-
desc: ClientAuthErrorMessages[tokenClaimsCnfRequiredForSignedJwt],
|
|
208
|
-
},
|
|
209
|
-
noAuthorizationCodeFromServer: {
|
|
210
|
-
code: authorizationCodeMissingFromServerResponse,
|
|
211
|
-
desc: ClientAuthErrorMessages[authorizationCodeMissingFromServerResponse],
|
|
212
|
-
},
|
|
213
|
-
bindingKeyNotRemovedError: {
|
|
214
|
-
code: bindingKeyNotRemoved,
|
|
215
|
-
desc: ClientAuthErrorMessages[bindingKeyNotRemoved],
|
|
216
|
-
},
|
|
217
|
-
logoutNotSupported: {
|
|
218
|
-
code: endSessionEndpointNotSupported,
|
|
219
|
-
desc: ClientAuthErrorMessages[endSessionEndpointNotSupported],
|
|
220
|
-
},
|
|
221
|
-
keyIdMissing: {
|
|
222
|
-
code: keyIdMissing,
|
|
223
|
-
desc: ClientAuthErrorMessages[keyIdMissing],
|
|
224
|
-
},
|
|
225
|
-
noNetworkConnectivity: {
|
|
226
|
-
code: noNetworkConnectivity,
|
|
227
|
-
desc: ClientAuthErrorMessages[noNetworkConnectivity],
|
|
228
|
-
},
|
|
229
|
-
userCanceledError: {
|
|
230
|
-
code: userCanceled,
|
|
231
|
-
desc: ClientAuthErrorMessages[userCanceled],
|
|
232
|
-
},
|
|
233
|
-
missingTenantIdError: {
|
|
234
|
-
code: missingTenantIdError,
|
|
235
|
-
desc: ClientAuthErrorMessages[missingTenantIdError],
|
|
236
|
-
},
|
|
237
|
-
nestedAppAuthBridgeDisabled: {
|
|
238
|
-
code: nestedAppAuthBridgeDisabled,
|
|
239
|
-
desc: ClientAuthErrorMessages[nestedAppAuthBridgeDisabled],
|
|
240
|
-
},
|
|
241
|
-
};
|
|
242
12
|
/**
|
|
243
13
|
* Error thrown when there is an error in the client code running on the browser.
|
|
244
14
|
*/
|
|
245
15
|
class ClientAuthError extends AuthError {
|
|
246
16
|
constructor(errorCode, additionalMessage) {
|
|
247
|
-
super(errorCode, additionalMessage
|
|
248
|
-
? `${ClientAuthErrorMessages[errorCode]}: ${additionalMessage}`
|
|
249
|
-
: ClientAuthErrorMessages[errorCode]);
|
|
17
|
+
super(errorCode, additionalMessage);
|
|
250
18
|
this.name = "ClientAuthError";
|
|
251
19
|
Object.setPrototypeOf(this, ClientAuthError.prototype);
|
|
252
20
|
}
|
|
@@ -255,5 +23,5 @@ function createClientAuthError(errorCode, additionalMessage) {
|
|
|
255
23
|
return new ClientAuthError(errorCode, additionalMessage);
|
|
256
24
|
}
|
|
257
25
|
|
|
258
|
-
export { ClientAuthError,
|
|
26
|
+
export { ClientAuthError, createClientAuthError };
|
|
259
27
|
//# sourceMappingURL=ClientAuthError.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ClientAuthError.mjs","sources":["../../src/error/ClientAuthError.ts"],"sourcesContent":[null],"names":[
|
|
1
|
+
{"version":3,"file":"ClientAuthError.mjs","sources":["../../src/error/ClientAuthError.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;AAAA;;;AAGG;AAMH;;AAEG;AAEH;;AAEG;AACG,MAAO,eAAgB,SAAQ,SAAS,CAAA;IAC1C,WAAA,CAAY,SAAiB,EAAE,iBAA0B,EAAA;AACrD,QAAA,KAAK,CAAC,SAAS,EAAE,iBAAiB,CAAC,CAAC;AACpC,QAAA,IAAI,CAAC,IAAI,GAAG,iBAAiB,CAAC;QAE9B,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,eAAe,CAAC,SAAS,CAAC,CAAC;IAC3D,CAAC;AACJ,CAAA;AAEK,SAAU,qBAAqB,CACjC,SAAiB,EACjB,iBAA0B,EAAA;AAE1B,IAAA,OAAO,IAAI,eAAe,CAAC,SAAS,EAAE,iBAAiB,CAAC,CAAC;AAC7D;;;;"}
|
|
@@ -13,25 +13,18 @@ export declare const nonceMismatch = "nonce_mismatch";
|
|
|
13
13
|
export declare const authTimeNotFound = "auth_time_not_found";
|
|
14
14
|
export declare const maxAgeTranspired = "max_age_transpired";
|
|
15
15
|
export declare const multipleMatchingTokens = "multiple_matching_tokens";
|
|
16
|
-
export declare const multipleMatchingAccounts = "multiple_matching_accounts";
|
|
17
16
|
export declare const multipleMatchingAppMetadata = "multiple_matching_appMetadata";
|
|
18
17
|
export declare const requestCannotBeMade = "request_cannot_be_made";
|
|
19
18
|
export declare const cannotRemoveEmptyScope = "cannot_remove_empty_scope";
|
|
20
19
|
export declare const cannotAppendScopeSet = "cannot_append_scopeset";
|
|
21
20
|
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
21
|
export declare const noAccountInSilentRequest = "no_account_in_silent_request";
|
|
26
22
|
export declare const invalidCacheRecord = "invalid_cache_record";
|
|
27
23
|
export declare const invalidCacheEnvironment = "invalid_cache_environment";
|
|
28
24
|
export declare const noAccountFound = "no_account_found";
|
|
29
25
|
export declare const noCryptoObject = "no_crypto_object";
|
|
30
26
|
export declare const unexpectedCredentialType = "unexpected_credential_type";
|
|
31
|
-
export declare const invalidAssertion = "invalid_assertion";
|
|
32
|
-
export declare const invalidClientCredential = "invalid_client_credential";
|
|
33
27
|
export declare const tokenRefreshRequired = "token_refresh_required";
|
|
34
|
-
export declare const userTimeoutReached = "user_timeout_reached";
|
|
35
28
|
export declare const tokenClaimsCnfRequiredForSignedJwt = "token_claims_cnf_required_for_signedjwt";
|
|
36
29
|
export declare const authorizationCodeMissingFromServerResponse = "authorization_code_missing_from_server_response";
|
|
37
30
|
export declare const bindingKeyNotRemoved = "binding_key_not_removed";
|
|
@@ -39,7 +32,6 @@ export declare const endSessionEndpointNotSupported = "end_session_endpoint_not_
|
|
|
39
32
|
export declare const keyIdMissing = "key_id_missing";
|
|
40
33
|
export declare const noNetworkConnectivity = "no_network_connectivity";
|
|
41
34
|
export declare const userCanceled = "user_canceled";
|
|
42
|
-
export declare const missingTenantIdError = "missing_tenant_id_error";
|
|
43
35
|
export declare const methodNotImplemented = "method_not_implemented";
|
|
44
36
|
export declare const nestedAppAuthBridgeDisabled = "nested_app_auth_bridge_disabled";
|
|
45
37
|
//# sourceMappingURL=ClientAuthErrorCodes.d.ts.map
|
|
@@ -1 +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,
|
|
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,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,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,oBAAoB,2BAA2B,CAAC;AAC7D,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,2BAA2B,CAAC;AAC7D,eAAO,MAAM,2BAA2B,oCAAoC,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @azure/msal-common
|
|
1
|
+
/*! @azure/msal-common v16.0.0-alpha.0 2025-10-02 */
|
|
2
2
|
'use strict';
|
|
3
3
|
/*
|
|
4
4
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -19,25 +19,18 @@ const nonceMismatch = "nonce_mismatch";
|
|
|
19
19
|
const authTimeNotFound = "auth_time_not_found";
|
|
20
20
|
const maxAgeTranspired = "max_age_transpired";
|
|
21
21
|
const multipleMatchingTokens = "multiple_matching_tokens";
|
|
22
|
-
const multipleMatchingAccounts = "multiple_matching_accounts";
|
|
23
22
|
const multipleMatchingAppMetadata = "multiple_matching_appMetadata";
|
|
24
23
|
const requestCannotBeMade = "request_cannot_be_made";
|
|
25
24
|
const cannotRemoveEmptyScope = "cannot_remove_empty_scope";
|
|
26
25
|
const cannotAppendScopeSet = "cannot_append_scopeset";
|
|
27
26
|
const emptyInputScopeSet = "empty_input_scopeset";
|
|
28
|
-
const deviceCodePollingCancelled = "device_code_polling_cancelled";
|
|
29
|
-
const deviceCodeExpired = "device_code_expired";
|
|
30
|
-
const deviceCodeUnknownError = "device_code_unknown_error";
|
|
31
27
|
const noAccountInSilentRequest = "no_account_in_silent_request";
|
|
32
28
|
const invalidCacheRecord = "invalid_cache_record";
|
|
33
29
|
const invalidCacheEnvironment = "invalid_cache_environment";
|
|
34
30
|
const noAccountFound = "no_account_found";
|
|
35
31
|
const noCryptoObject = "no_crypto_object";
|
|
36
32
|
const unexpectedCredentialType = "unexpected_credential_type";
|
|
37
|
-
const invalidAssertion = "invalid_assertion";
|
|
38
|
-
const invalidClientCredential = "invalid_client_credential";
|
|
39
33
|
const tokenRefreshRequired = "token_refresh_required";
|
|
40
|
-
const userTimeoutReached = "user_timeout_reached";
|
|
41
34
|
const tokenClaimsCnfRequiredForSignedJwt = "token_claims_cnf_required_for_signedjwt";
|
|
42
35
|
const authorizationCodeMissingFromServerResponse = "authorization_code_missing_from_server_response";
|
|
43
36
|
const bindingKeyNotRemoved = "binding_key_not_removed";
|
|
@@ -45,9 +38,8 @@ const endSessionEndpointNotSupported = "end_session_endpoint_not_supported";
|
|
|
45
38
|
const keyIdMissing = "key_id_missing";
|
|
46
39
|
const noNetworkConnectivity = "no_network_connectivity";
|
|
47
40
|
const userCanceled = "user_canceled";
|
|
48
|
-
const missingTenantIdError = "missing_tenant_id_error";
|
|
49
41
|
const methodNotImplemented = "method_not_implemented";
|
|
50
42
|
const nestedAppAuthBridgeDisabled = "nested_app_auth_bridge_disabled";
|
|
51
43
|
|
|
52
|
-
export { authTimeNotFound, authorizationCodeMissingFromServerResponse, bindingKeyNotRemoved, cannotAppendScopeSet, cannotRemoveEmptyScope, clientInfoDecodingError, clientInfoEmptyError,
|
|
44
|
+
export { authTimeNotFound, authorizationCodeMissingFromServerResponse, bindingKeyNotRemoved, cannotAppendScopeSet, cannotRemoveEmptyScope, clientInfoDecodingError, clientInfoEmptyError, emptyInputScopeSet, endSessionEndpointNotSupported, endpointResolutionError, hashNotDeserialized, invalidCacheEnvironment, invalidCacheRecord, invalidState, keyIdMissing, maxAgeTranspired, methodNotImplemented, multipleMatchingAppMetadata, multipleMatchingTokens, nestedAppAuthBridgeDisabled, networkError, noAccountFound, noAccountInSilentRequest, noCryptoObject, noNetworkConnectivity, nonceMismatch, nullOrEmptyToken, openIdConfigError, requestCannotBeMade, stateMismatch, stateNotFound, tokenClaimsCnfRequiredForSignedJwt, tokenParsingError, tokenRefreshRequired, unexpectedCredentialType, userCanceled };
|
|
53
45
|
//# sourceMappingURL=ClientAuthErrorCodes.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ClientAuthErrorCodes.mjs","sources":["../../src/error/ClientAuthErrorCodes.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAAA;;;AAGG;AAEI,MAAM,uBAAuB,GAAG,6BAA6B;AAC7D,MAAM,oBAAoB,GAAG,0BAA0B;AACvD,MAAM,iBAAiB,GAAG,sBAAsB;AAChD,MAAM,gBAAgB,GAAG,sBAAsB;AAC/C,MAAM,uBAAuB,GAAG,6BAA6B;AAC7D,MAAM,YAAY,GAAG,gBAAgB;AACrC,MAAM,iBAAiB,GAAG,sBAAsB;AAChD,MAAM,mBAAmB,GAAG,wBAAwB;AACpD,MAAM,YAAY,GAAG,gBAAgB;AACrC,MAAM,aAAa,GAAG,iBAAiB;AACvC,MAAM,aAAa,GAAG,kBAAkB;AACxC,MAAM,aAAa,GAAG,iBAAiB;AACvC,MAAM,gBAAgB,GAAG,sBAAsB;AAC/C,MAAM,gBAAgB,GAAG,qBAAqB;AAC9C,MAAM,sBAAsB,GAAG,2BAA2B;AAC1D,MAAM,
|
|
1
|
+
{"version":3,"file":"ClientAuthErrorCodes.mjs","sources":["../../src/error/ClientAuthErrorCodes.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAAA;;;AAGG;AAEI,MAAM,uBAAuB,GAAG,6BAA6B;AAC7D,MAAM,oBAAoB,GAAG,0BAA0B;AACvD,MAAM,iBAAiB,GAAG,sBAAsB;AAChD,MAAM,gBAAgB,GAAG,sBAAsB;AAC/C,MAAM,uBAAuB,GAAG,6BAA6B;AAC7D,MAAM,YAAY,GAAG,gBAAgB;AACrC,MAAM,iBAAiB,GAAG,sBAAsB;AAChD,MAAM,mBAAmB,GAAG,wBAAwB;AACpD,MAAM,YAAY,GAAG,gBAAgB;AACrC,MAAM,aAAa,GAAG,iBAAiB;AACvC,MAAM,aAAa,GAAG,kBAAkB;AACxC,MAAM,aAAa,GAAG,iBAAiB;AACvC,MAAM,gBAAgB,GAAG,sBAAsB;AAC/C,MAAM,gBAAgB,GAAG,qBAAqB;AAC9C,MAAM,sBAAsB,GAAG,2BAA2B;AAC1D,MAAM,2BAA2B,GAAG,gCAAgC;AACpE,MAAM,mBAAmB,GAAG,yBAAyB;AACrD,MAAM,sBAAsB,GAAG,4BAA4B;AAC3D,MAAM,oBAAoB,GAAG,yBAAyB;AACtD,MAAM,kBAAkB,GAAG,uBAAuB;AAClD,MAAM,wBAAwB,GAAG,+BAA+B;AAChE,MAAM,kBAAkB,GAAG,uBAAuB;AAClD,MAAM,uBAAuB,GAAG,4BAA4B;AAC5D,MAAM,cAAc,GAAG,mBAAmB;AAC1C,MAAM,cAAc,GAAG,mBAAmB;AAC1C,MAAM,wBAAwB,GAAG,6BAA6B;AAC9D,MAAM,oBAAoB,GAAG,yBAAyB;AACtD,MAAM,kCAAkC,GAC3C,0CAA0C;AACvC,MAAM,0CAA0C,GACnD,kDAAkD;AAC/C,MAAM,oBAAoB,GAAG,0BAA0B;AACvD,MAAM,8BAA8B,GACvC,qCAAqC;AAClC,MAAM,YAAY,GAAG,iBAAiB;AACtC,MAAM,qBAAqB,GAAG,0BAA0B;AACxD,MAAM,YAAY,GAAG,gBAAgB;AACrC,MAAM,oBAAoB,GAAG,yBAAyB;AACtD,MAAM,2BAA2B,GAAG;;;;"}
|
|
@@ -1,129 +1,6 @@
|
|
|
1
1
|
import { AuthError } from "./AuthError.js";
|
|
2
2
|
import * as ClientConfigurationErrorCodes from "./ClientConfigurationErrorCodes.js";
|
|
3
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_claims: string;
|
|
12
|
-
token_request_empty: string;
|
|
13
|
-
logout_request_empty: string;
|
|
14
|
-
invalid_code_challenge_method: string;
|
|
15
|
-
pkce_params_missing: string;
|
|
16
|
-
invalid_cloud_discovery_metadata: string;
|
|
17
|
-
invalid_authority_metadata: string;
|
|
18
|
-
untrusted_authority: string;
|
|
19
|
-
missing_ssh_jwk: string;
|
|
20
|
-
missing_ssh_kid: string;
|
|
21
|
-
missing_nonce_authentication_header: string;
|
|
22
|
-
invalid_authentication_header: string;
|
|
23
|
-
cannot_set_OIDCOptions: string;
|
|
24
|
-
cannot_allow_platform_broker: string;
|
|
25
|
-
authority_mismatch: string;
|
|
26
|
-
invalid_authorize_post_body_parameters: string;
|
|
27
|
-
invalid_request_method_for_EAR: string;
|
|
28
|
-
};
|
|
29
|
-
/**
|
|
30
|
-
* ClientConfigurationErrorMessage class containing string constants used by error codes and messages.
|
|
31
|
-
* @deprecated Use ClientConfigurationErrorCodes instead
|
|
32
|
-
*/
|
|
33
|
-
export declare const ClientConfigurationErrorMessage: {
|
|
34
|
-
redirectUriNotSet: {
|
|
35
|
-
code: string;
|
|
36
|
-
desc: string;
|
|
37
|
-
};
|
|
38
|
-
claimsRequestParsingError: {
|
|
39
|
-
code: string;
|
|
40
|
-
desc: string;
|
|
41
|
-
};
|
|
42
|
-
authorityUriInsecure: {
|
|
43
|
-
code: string;
|
|
44
|
-
desc: string;
|
|
45
|
-
};
|
|
46
|
-
urlParseError: {
|
|
47
|
-
code: string;
|
|
48
|
-
desc: string;
|
|
49
|
-
};
|
|
50
|
-
urlEmptyError: {
|
|
51
|
-
code: string;
|
|
52
|
-
desc: string;
|
|
53
|
-
};
|
|
54
|
-
emptyScopesError: {
|
|
55
|
-
code: string;
|
|
56
|
-
desc: string;
|
|
57
|
-
};
|
|
58
|
-
invalidClaimsRequest: {
|
|
59
|
-
code: string;
|
|
60
|
-
desc: string;
|
|
61
|
-
};
|
|
62
|
-
tokenRequestEmptyError: {
|
|
63
|
-
code: string;
|
|
64
|
-
desc: string;
|
|
65
|
-
};
|
|
66
|
-
logoutRequestEmptyError: {
|
|
67
|
-
code: string;
|
|
68
|
-
desc: string;
|
|
69
|
-
};
|
|
70
|
-
invalidCodeChallengeMethod: {
|
|
71
|
-
code: string;
|
|
72
|
-
desc: string;
|
|
73
|
-
};
|
|
74
|
-
invalidCodeChallengeParams: {
|
|
75
|
-
code: string;
|
|
76
|
-
desc: string;
|
|
77
|
-
};
|
|
78
|
-
invalidCloudDiscoveryMetadata: {
|
|
79
|
-
code: string;
|
|
80
|
-
desc: string;
|
|
81
|
-
};
|
|
82
|
-
invalidAuthorityMetadata: {
|
|
83
|
-
code: string;
|
|
84
|
-
desc: string;
|
|
85
|
-
};
|
|
86
|
-
untrustedAuthority: {
|
|
87
|
-
code: string;
|
|
88
|
-
desc: string;
|
|
89
|
-
};
|
|
90
|
-
missingSshJwk: {
|
|
91
|
-
code: string;
|
|
92
|
-
desc: string;
|
|
93
|
-
};
|
|
94
|
-
missingSshKid: {
|
|
95
|
-
code: string;
|
|
96
|
-
desc: string;
|
|
97
|
-
};
|
|
98
|
-
missingNonceAuthenticationHeader: {
|
|
99
|
-
code: string;
|
|
100
|
-
desc: string;
|
|
101
|
-
};
|
|
102
|
-
invalidAuthenticationHeader: {
|
|
103
|
-
code: string;
|
|
104
|
-
desc: string;
|
|
105
|
-
};
|
|
106
|
-
cannotSetOIDCOptions: {
|
|
107
|
-
code: string;
|
|
108
|
-
desc: string;
|
|
109
|
-
};
|
|
110
|
-
cannotAllowPlatformBroker: {
|
|
111
|
-
code: string;
|
|
112
|
-
desc: string;
|
|
113
|
-
};
|
|
114
|
-
authorityMismatch: {
|
|
115
|
-
code: string;
|
|
116
|
-
desc: string;
|
|
117
|
-
};
|
|
118
|
-
invalidAuthorizePostBodyParameters: {
|
|
119
|
-
code: string;
|
|
120
|
-
desc: string;
|
|
121
|
-
};
|
|
122
|
-
invalidRequestMethodForEAR: {
|
|
123
|
-
code: string;
|
|
124
|
-
desc: string;
|
|
125
|
-
};
|
|
126
|
-
};
|
|
127
4
|
/**
|
|
128
5
|
* Error thrown when there is an error in configuration of the MSAL.js library.
|
|
129
6
|
*/
|
|
@@ -1 +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
|
|
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;;GAEG;AACH,qBAAa,wBAAyB,SAAQ,SAAS;gBACvC,SAAS,EAAE,MAAM;CAKhC;AAED,wBAAgB,8BAA8B,CAC1C,SAAS,EAAE,MAAM,GAClB,wBAAwB,CAE1B"}
|