@azure/msal-common 15.12.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 -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.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.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 -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 +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 +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 -166
- package/dist/telemetry/performance/PerformanceClient.mjs.map +1 -1
- package/dist/telemetry/performance/PerformanceEvent.d.ts +0 -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 +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 +26 -201
- package/lib/index-browser.cjs.map +1 -1
- package/lib/{index-node-C8h2xZEM.js → index-node-FrCFfFuh.js} +1606 -2487
- 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 -1
- package/lib/types/account/AccountInfo.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 +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 -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 +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 +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 +0 -280
- 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 -1
- 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 +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 -285
- 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 +0 -40
- package/src/telemetry/performance/PerformanceClient.ts +29 -266
- package/src/telemetry/performance/PerformanceEvent.ts +0 -582
- 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 -226
- 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-C8h2xZEM.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,68 +1,52 @@
|
|
|
1
|
-
export declare const
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
export declare const
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
readonly GONE: 410;
|
|
51
|
-
readonly TOO_MANY_REQUESTS: 429;
|
|
52
|
-
readonly CLIENT_ERROR_RANGE_END: 499;
|
|
53
|
-
readonly SERVER_ERROR: 500;
|
|
54
|
-
readonly SERVER_ERROR_RANGE_START: 500;
|
|
55
|
-
readonly SERVICE_UNAVAILABLE: 503;
|
|
56
|
-
readonly GATEWAY_TIMEOUT: 504;
|
|
57
|
-
readonly SERVER_ERROR_RANGE_END: 599;
|
|
58
|
-
readonly MULTI_SIDED_ERROR: 600;
|
|
59
|
-
};
|
|
60
|
-
export type HttpStatus = (typeof HttpStatus)[keyof typeof HttpStatus];
|
|
61
|
-
export declare const HttpMethod: {
|
|
62
|
-
readonly GET: "GET";
|
|
63
|
-
readonly POST: "POST";
|
|
64
|
-
};
|
|
65
|
-
export type HttpMethod = (typeof HttpMethod)[keyof typeof HttpMethod];
|
|
1
|
+
export declare const SKU = "msal.js.common";
|
|
2
|
+
export declare const DEFAULT_AUTHORITY = "https://login.microsoftonline.com/common/";
|
|
3
|
+
export declare const DEFAULT_AUTHORITY_HOST = "login.microsoftonline.com";
|
|
4
|
+
export declare const DEFAULT_COMMON_TENANT = "common";
|
|
5
|
+
export declare const ADFS = "adfs";
|
|
6
|
+
export declare const DSTS = "dstsv2";
|
|
7
|
+
export declare const AAD_INSTANCE_DISCOVERY_ENDPT: string;
|
|
8
|
+
export declare const CIAM_AUTH_URL = ".ciamlogin.com";
|
|
9
|
+
export declare const AAD_TENANT_DOMAIN_SUFFIX = ".onmicrosoft.com";
|
|
10
|
+
export declare const RESOURCE_DELIM = "|";
|
|
11
|
+
export declare const CONSUMER_UTID = "9188040d-6c67-4c5b-b112-36a304b66dad";
|
|
12
|
+
export declare const OPENID_SCOPE = "openid";
|
|
13
|
+
export declare const PROFILE_SCOPE = "profile";
|
|
14
|
+
export declare const OFFLINE_ACCESS_SCOPE = "offline_access";
|
|
15
|
+
export declare const EMAIL_SCOPE = "email";
|
|
16
|
+
export declare const CODE_GRANT_TYPE = "authorization_code";
|
|
17
|
+
export declare const S256_CODE_CHALLENGE_METHOD = "S256";
|
|
18
|
+
export declare const URL_FORM_CONTENT_TYPE = "application/x-www-form-urlencoded;charset=utf-8";
|
|
19
|
+
export declare const AUTHORIZATION_PENDING = "authorization_pending";
|
|
20
|
+
export declare const NOT_APPLICABLE = "N/A";
|
|
21
|
+
export declare const NOT_AVAILABLE = "Not Available";
|
|
22
|
+
export declare const FORWARD_SLASH = "/";
|
|
23
|
+
export declare const IMDS_ENDPOINT = "http://169.254.169.254/metadata/instance/compute/location";
|
|
24
|
+
export declare const IMDS_VERSION = "2020-06-01";
|
|
25
|
+
export declare const IMDS_TIMEOUT = 2000;
|
|
26
|
+
export declare const AZURE_REGION_AUTO_DISCOVER_FLAG = "TryAutoDetect";
|
|
27
|
+
export declare const REGIONAL_AUTH_PUBLIC_CLOUD_SUFFIX = "login.microsoft.com";
|
|
28
|
+
export declare const KNOWN_PUBLIC_CLOUDS: string[];
|
|
29
|
+
export declare const SHR_NONCE_VALIDITY = 240;
|
|
30
|
+
export declare const INVALID_INSTANCE = "invalid_instance";
|
|
31
|
+
export declare const HTTP_SUCCESS: number;
|
|
32
|
+
export declare const HTTP_SUCCESS_RANGE_START: number;
|
|
33
|
+
export declare const HTTP_SUCCESS_RANGE_END: number;
|
|
34
|
+
export declare const HTTP_REDIRECT: number;
|
|
35
|
+
export declare const HTTP_CLIENT_ERROR: number;
|
|
36
|
+
export declare const HTTP_CLIENT_ERROR_RANGE_START: number;
|
|
37
|
+
export declare const HTTP_BAD_REQUEST: number;
|
|
38
|
+
export declare const HTTP_UNAUTHORIZED: number;
|
|
39
|
+
export declare const HTTP_NOT_FOUND: number;
|
|
40
|
+
export declare const HTTP_REQUEST_TIMEOUT: number;
|
|
41
|
+
export declare const HTTP_GONE: number;
|
|
42
|
+
export declare const HTTP_TOO_MANY_REQUESTS: number;
|
|
43
|
+
export declare const HTTP_CLIENT_ERROR_RANGE_END: number;
|
|
44
|
+
export declare const HTTP_SERVER_ERROR: number;
|
|
45
|
+
export declare const HTTP_SERVER_ERROR_RANGE_START: number;
|
|
46
|
+
export declare const HTTP_SERVICE_UNAVAILABLE: number;
|
|
47
|
+
export declare const HTTP_GATEWAY_TIMEOUT: number;
|
|
48
|
+
export declare const HTTP_SERVER_ERROR_RANGE_END: number;
|
|
49
|
+
export declare const HTTP_MULTI_SIDED_ERROR: number;
|
|
66
50
|
export declare const OIDC_DEFAULT_SCOPES: string[];
|
|
67
51
|
export declare const OIDC_SCOPES: string[];
|
|
68
52
|
/**
|
|
@@ -89,12 +73,12 @@ export type PersistentCacheKeys = (typeof PersistentCacheKeys)[keyof typeof Pers
|
|
|
89
73
|
/**
|
|
90
74
|
* String constants related to AAD Authority
|
|
91
75
|
*/
|
|
92
|
-
export declare const
|
|
76
|
+
export declare const AADAuthority: {
|
|
93
77
|
readonly COMMON: "common";
|
|
94
78
|
readonly ORGANIZATIONS: "organizations";
|
|
95
79
|
readonly CONSUMERS: "consumers";
|
|
96
80
|
};
|
|
97
|
-
export type
|
|
81
|
+
export type AADAuthority = (typeof AADAuthority)[keyof typeof AADAuthority];
|
|
98
82
|
/**
|
|
99
83
|
* Claims request keys
|
|
100
84
|
*/
|
|
@@ -132,15 +116,6 @@ export declare const OAuthResponseType: {
|
|
|
132
116
|
readonly IDTOKEN_TOKEN_REFRESHTOKEN: "id_token token refresh_token";
|
|
133
117
|
};
|
|
134
118
|
export type OAuthResponseType = (typeof OAuthResponseType)[keyof typeof OAuthResponseType];
|
|
135
|
-
/**
|
|
136
|
-
* allowed values for server response type
|
|
137
|
-
* @deprecated Use ResponseMode instead
|
|
138
|
-
*/
|
|
139
|
-
export declare const ServerResponseType: {
|
|
140
|
-
readonly QUERY: "query";
|
|
141
|
-
readonly FRAGMENT: "fragment";
|
|
142
|
-
};
|
|
143
|
-
export type ServerResponseType = (typeof ServerResponseType)[keyof typeof ServerResponseType];
|
|
144
119
|
/**
|
|
145
120
|
* allowed values for response_mode
|
|
146
121
|
*/
|
|
@@ -166,21 +141,15 @@ export type GrantType = (typeof GrantType)[keyof typeof GrantType];
|
|
|
166
141
|
/**
|
|
167
142
|
* Account types in Cache
|
|
168
143
|
*/
|
|
169
|
-
export declare const
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
readonly GENERIC_ACCOUNT_TYPE: "Generic";
|
|
174
|
-
};
|
|
175
|
-
export type CacheAccountType = (typeof CacheAccountType)[keyof typeof CacheAccountType];
|
|
144
|
+
export declare const CACHE_ACCOUNT_TYPE_MSSTS: string;
|
|
145
|
+
export declare const CACHE_ACCOUNT_TYPE_ADFS: string;
|
|
146
|
+
export declare const CACHE_ACCOUNT_TYPE_MSAV1: string;
|
|
147
|
+
export declare const CACHE_ACCOUNT_TYPE_GENERIC: string;
|
|
176
148
|
/**
|
|
177
149
|
* Separators used in cache
|
|
178
150
|
*/
|
|
179
|
-
export declare const
|
|
180
|
-
|
|
181
|
-
readonly CLIENT_INFO_SEPARATOR: ".";
|
|
182
|
-
};
|
|
183
|
-
export type Separators = (typeof Separators)[keyof typeof Separators];
|
|
151
|
+
export declare const CACHE_KEY_SEPARATOR: string;
|
|
152
|
+
export declare const CLIENT_INFO_SEPARATOR: string;
|
|
184
153
|
/**
|
|
185
154
|
* Credential Type stored in the cache
|
|
186
155
|
*/
|
|
@@ -209,13 +178,11 @@ export type CacheType = (typeof CacheType)[keyof typeof CacheType];
|
|
|
209
178
|
/**
|
|
210
179
|
* More Cache related constants
|
|
211
180
|
*/
|
|
212
|
-
export declare const APP_METADATA
|
|
213
|
-
export declare const CLIENT_INFO
|
|
214
|
-
export declare const THE_FAMILY_ID
|
|
215
|
-
export declare const
|
|
216
|
-
|
|
217
|
-
REFRESH_TIME_SECONDS: number;
|
|
218
|
-
};
|
|
181
|
+
export declare const APP_METADATA: string;
|
|
182
|
+
export declare const CLIENT_INFO: string;
|
|
183
|
+
export declare const THE_FAMILY_ID: string;
|
|
184
|
+
export declare const AUTHORITY_METADATA_CACHE_KEY: string;
|
|
185
|
+
export declare const AUTHORITY_METADATA_REFRESH_TIME_SECONDS: number;
|
|
219
186
|
export declare const AuthorityMetadataSource: {
|
|
220
187
|
readonly CONFIG: "config";
|
|
221
188
|
readonly CACHE: "cache";
|
|
@@ -223,18 +190,16 @@ export declare const AuthorityMetadataSource: {
|
|
|
223
190
|
readonly HARDCODED_VALUES: "hardcoded_values";
|
|
224
191
|
};
|
|
225
192
|
export type AuthorityMetadataSource = (typeof AuthorityMetadataSource)[keyof typeof AuthorityMetadataSource];
|
|
226
|
-
export declare const
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
UNKNOWN_ERROR: string;
|
|
237
|
-
};
|
|
193
|
+
export declare const SERVER_TELEM_SCHEMA_VERSION: number;
|
|
194
|
+
export declare const SERVER_TELEM_MAX_CUR_HEADER_BYTES: number;
|
|
195
|
+
export declare const SERVER_TELEM_MAX_LAST_HEADER_BYTES: number;
|
|
196
|
+
export declare const SERVER_TELEM_MAX_CACHED_ERRORS: number;
|
|
197
|
+
export declare const SERVER_TELEM_CACHE_KEY: string;
|
|
198
|
+
export declare const SERVER_TELEM_CATEGORY_SEPARATOR: string;
|
|
199
|
+
export declare const SERVER_TELEM_VALUE_SEPARATOR: string;
|
|
200
|
+
export declare const SERVER_TELEM_OVERFLOW_TRUE: string;
|
|
201
|
+
export declare const SERVER_TELEM_OVERFLOW_FALSE: string;
|
|
202
|
+
export declare const SERVER_TELEM_UNKNOWN_ERROR: string;
|
|
238
203
|
/**
|
|
239
204
|
* Type of the authentication request
|
|
240
205
|
*/
|
|
@@ -247,16 +212,15 @@ export type AuthenticationScheme = (typeof AuthenticationScheme)[keyof typeof Au
|
|
|
247
212
|
/**
|
|
248
213
|
* Constants related to throttling
|
|
249
214
|
*/
|
|
250
|
-
export declare const
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
};
|
|
215
|
+
export declare const DEFAULT_THROTTLE_TIME_SECONDS: number;
|
|
216
|
+
export declare const DEFAULT_MAX_THROTTLE_TIME_SECONDS: number;
|
|
217
|
+
export declare const THROTTLING_PREFIX: string;
|
|
218
|
+
export declare const X_MS_LIB_CAPABILITY_VALUE: string;
|
|
219
|
+
/**
|
|
220
|
+
* Errors
|
|
221
|
+
*/
|
|
222
|
+
export declare const INVALID_GRANT_ERROR: string;
|
|
223
|
+
export declare const CLIENT_MISMATCH_ERROR: string;
|
|
260
224
|
/**
|
|
261
225
|
* Password grant parameters
|
|
262
226
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Constants.d.ts","sourceRoot":"","sources":["../../../src/utils/Constants.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,SAAS
|
|
1
|
+
{"version":3,"file":"Constants.d.ts","sourceRoot":"","sources":["../../../src/utils/Constants.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,GAAG,mBAAmB,CAAC;AAEpC,eAAO,MAAM,iBAAiB,8CAA8C,CAAC;AAC7E,eAAO,MAAM,sBAAsB,8BAA8B,CAAC;AAClE,eAAO,MAAM,qBAAqB,WAAW,CAAC;AAE9C,eAAO,MAAM,IAAI,SAAS,CAAC;AAC3B,eAAO,MAAM,IAAI,WAAW,CAAC;AAE7B,eAAO,MAAM,4BAA4B,QAAmF,CAAC;AAE7H,eAAO,MAAM,aAAa,mBAAmB,CAAC;AAC9C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CAAC,CAAC;AAEzE;;GAEG;AACH,eAAO,MAAM,sBAAsB;;;;;CAKzB,CAAC;AACX,MAAM,MAAM,sBAAsB,GAC9B,CAAC,OAAO,sBAAsB,CAAC,CAAC,MAAM,OAAO,sBAAsB,CAAC,CAAC;AAEzE;;GAEG;AACH,eAAO,MAAM,uBAAuB;;;;;;CAM1B,CAAC;AACX,MAAM,MAAM,uBAAuB,GAC/B,CAAC,OAAO,uBAAuB,CAAC,CAAC,MAAM,OAAO,uBAAuB,CAAC,CAAC;AAE3E;;GAEG;AACH,eAAO,MAAM,YAAY;;;;;;CAWf,CAAC;AACX,MAAM,MAAM,YAAY,GAAG,CAAC,OAAO,YAAY,CAAC,CAAC,MAAM,OAAO,YAAY,CAAC,CAAC;AAE5E,eAAO,MAAM,iBAAiB;;;;CAIpB,CAAC;AACX,MAAM,MAAM,iBAAiB,GACzB,CAAC,OAAO,iBAAiB,CAAC,CAAC,MAAM,OAAO,iBAAiB,CAAC,CAAC;AAE/D,eAAO,MAAM,aAAa,WAAW,CAAC;AAGtC,eAAO,MAAM,gCAAgC,MAAM,CAAC;AAEpD,eAAO,MAAM,aAAa;;;;CAIhB,CAAC;AACX,MAAM,MAAM,aAAa,GAAG,CAAC,OAAO,aAAa,CAAC,CAAC,MAAM,OAAO,aAAa,CAAC,CAAC"}
|
|
@@ -11,7 +11,7 @@ import { IPerformanceClient } from "../telemetry/performance/IPerformanceClient.
|
|
|
11
11
|
* @returns
|
|
12
12
|
* @internal
|
|
13
13
|
*/
|
|
14
|
-
export declare const invoke: <T extends any[], U>(callback: (...args: T) => U, eventName: string, logger: Logger, telemetryClient
|
|
14
|
+
export declare const invoke: <T extends any[], U>(callback: (...args: T) => U, eventName: string, logger: Logger, telemetryClient: IPerformanceClient, correlationId: string) => (...args: T) => U;
|
|
15
15
|
/**
|
|
16
16
|
* Wraps an async function with a performance measurement.
|
|
17
17
|
* Usage: invokeAsync(functionToCall, performanceClient, "EventName", "correlationId")(...argsToPassToFunction)
|
|
@@ -24,5 +24,5 @@ export declare const invoke: <T extends any[], U>(callback: (...args: T) => U, e
|
|
|
24
24
|
* @internal
|
|
25
25
|
*
|
|
26
26
|
*/
|
|
27
|
-
export declare const invokeAsync: <T extends any[], U>(callback: (...args: T) => Promise<U>, eventName: string, logger: Logger, telemetryClient
|
|
27
|
+
export declare const invokeAsync: <T extends any[], U>(callback: (...args: T) => Promise<U>, eventName: string, logger: Logger, telemetryClient: IPerformanceClient, correlationId: string) => (...args: T) => Promise<U>;
|
|
28
28
|
//# sourceMappingURL=FunctionWrappers.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FunctionWrappers.d.ts","sourceRoot":"","sources":["../../../src/utils/FunctionWrappers.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EAAE,kBAAkB,EAAE,MAAM,gDAAgD,CAAC;AAEpF;;;;;;;;;;GAUG;AAEH,eAAO,MAAM,MAAM,+DAEJ,MAAM,UACT,MAAM,
|
|
1
|
+
{"version":3,"file":"FunctionWrappers.d.ts","sourceRoot":"","sources":["../../../src/utils/FunctionWrappers.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EAAE,kBAAkB,EAAE,MAAM,gDAAgD,CAAC;AAEpF;;;;;;;;;;GAUG;AAEH,eAAO,MAAM,MAAM,+DAEJ,MAAM,UACT,MAAM,mBACG,kBAAkB,iBACpB,MAAM,sBAoCxB,CAAC;AAEF;;;;;;;;;;;GAWG;AAEH,eAAO,MAAM,WAAW,wEAET,MAAM,UACT,MAAM,mBACG,kBAAkB,iBACpB,MAAM,+BA2CxB,CAAC"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { AuthorizeResponse } from "../response/AuthorizeResponse.js";
|
|
2
|
-
import { StringDict } from "./MsalTypes.js";
|
|
3
2
|
/**
|
|
4
3
|
* Parses hash string from given string. Returns empty string if no hash symbol is found.
|
|
5
4
|
* @param hashString
|
|
@@ -12,7 +11,7 @@ export declare function getDeserializedResponse(responseString: string): Authori
|
|
|
12
11
|
/**
|
|
13
12
|
* Utility to create a URL from the params map
|
|
14
13
|
*/
|
|
15
|
-
export declare function mapToQueryString(parameters: Map<string, string
|
|
14
|
+
export declare function mapToQueryString(parameters: Map<string, string>): string;
|
|
16
15
|
/**
|
|
17
16
|
* Normalizes URLs for comparison by removing hash, canonicalizing,
|
|
18
17
|
* and ensuring consistent URL encoding in query parameters.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UrlUtils.d.ts","sourceRoot":"","sources":["../../../src/utils/UrlUtils.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;
|
|
1
|
+
{"version":3,"file":"UrlUtils.d.ts","sourceRoot":"","sources":["../../../src/utils/UrlUtils.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AAiCrE;;;GAGG;AACH,wBAAgB,uBAAuB,CAAC,cAAc,EAAE,MAAM,GAAG,MAAM,CAWtE;AAED;;GAEG;AACH,wBAAgB,uBAAuB,CACnC,cAAc,EAAE,MAAM,GACvB,iBAAiB,GAAG,IAAI,CA4B1B;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,UAAU,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,MAAM,CAQxE;AAED;;;;;;GAMG;AACH,wBAAgB,yBAAyB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAwB7D"}
|
package/package.json
CHANGED
|
@@ -1,127 +1,125 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
},
|
|
8
|
-
"license": "MIT",
|
|
9
|
-
"repository": {
|
|
10
|
-
"type": "git",
|
|
11
|
-
"url": "https://github.com/AzureAD/microsoft-authentication-library-for-js.git"
|
|
12
|
-
},
|
|
13
|
-
"version": "15.12.0",
|
|
14
|
-
"description": "Microsoft Authentication Library for js",
|
|
15
|
-
"keywords": [
|
|
16
|
-
"implicit",
|
|
17
|
-
"authorization code",
|
|
18
|
-
"PKCE",
|
|
19
|
-
"js",
|
|
20
|
-
"AAD",
|
|
21
|
-
"msal",
|
|
22
|
-
"oauth"
|
|
23
|
-
],
|
|
24
|
-
"sideEffects": false,
|
|
25
|
-
"type": "module",
|
|
26
|
-
"main": "./lib/index.cjs",
|
|
27
|
-
"module": "./dist/index.mjs",
|
|
28
|
-
"types": "./dist/index.d.ts",
|
|
29
|
-
"exports": {
|
|
30
|
-
"./browser": {
|
|
31
|
-
"import": {
|
|
32
|
-
"types": "./dist/index-browser.d.ts",
|
|
33
|
-
"default": "./dist/index-browser.mjs"
|
|
34
|
-
},
|
|
35
|
-
"require": {
|
|
36
|
-
"types": "./lib/types/index-browser.d.ts",
|
|
37
|
-
"default": "./lib/index-browser.cjs"
|
|
38
|
-
}
|
|
2
|
+
"name": "@azure/msal-common",
|
|
3
|
+
"author": {
|
|
4
|
+
"name": "Microsoft",
|
|
5
|
+
"email": "nugetaad@microsoft.com",
|
|
6
|
+
"url": "https://www.microsoft.com"
|
|
39
7
|
},
|
|
40
|
-
"
|
|
41
|
-
|
|
42
|
-
"
|
|
43
|
-
"
|
|
44
|
-
},
|
|
45
|
-
"require": {
|
|
46
|
-
"types": "./lib/types/index-node.d.ts",
|
|
47
|
-
"default": "./lib/index-node.cjs"
|
|
48
|
-
}
|
|
8
|
+
"license": "MIT",
|
|
9
|
+
"repository": {
|
|
10
|
+
"type": "git",
|
|
11
|
+
"url": "https://github.com/AzureAD/microsoft-authentication-library-for-js.git"
|
|
49
12
|
},
|
|
50
|
-
"
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
"
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
"
|
|
57
|
-
"
|
|
58
|
-
|
|
13
|
+
"version": "16.0.0-alpha.0",
|
|
14
|
+
"description": "Microsoft Authentication Library for js",
|
|
15
|
+
"keywords": [
|
|
16
|
+
"implicit",
|
|
17
|
+
"authorization code",
|
|
18
|
+
"PKCE",
|
|
19
|
+
"js",
|
|
20
|
+
"AAD",
|
|
21
|
+
"msal",
|
|
22
|
+
"oauth"
|
|
23
|
+
],
|
|
24
|
+
"sideEffects": false,
|
|
25
|
+
"type": "module",
|
|
26
|
+
"main": "./lib/index.cjs",
|
|
27
|
+
"module": "./dist/index.mjs",
|
|
28
|
+
"types": "./dist/index.d.ts",
|
|
29
|
+
"exports": {
|
|
30
|
+
"./browser": {
|
|
31
|
+
"import": {
|
|
32
|
+
"types": "./dist/index-browser.d.ts",
|
|
33
|
+
"default": "./dist/index-browser.mjs"
|
|
34
|
+
},
|
|
35
|
+
"require": {
|
|
36
|
+
"types": "./lib/types/index-browser.d.ts",
|
|
37
|
+
"default": "./lib/index-browser.cjs"
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
"./node": {
|
|
41
|
+
"import": {
|
|
42
|
+
"types": "./dist/index-node.d.ts",
|
|
43
|
+
"default": "./dist/index-node.mjs"
|
|
44
|
+
},
|
|
45
|
+
"require": {
|
|
46
|
+
"types": "./lib/types/index-node.d.ts",
|
|
47
|
+
"default": "./lib/index-node.cjs"
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
".": {
|
|
51
|
+
"import": {
|
|
52
|
+
"types": "./dist/index.d.ts",
|
|
53
|
+
"default": "./dist/index.mjs"
|
|
54
|
+
},
|
|
55
|
+
"require": {
|
|
56
|
+
"types": "./lib/types/index.d.ts",
|
|
57
|
+
"default": "./lib/index.cjs"
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
"./package.json": "./package.json"
|
|
59
61
|
},
|
|
60
|
-
"
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
"
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
"
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
"
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
"
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
"
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
"tslib": "^1.10.0",
|
|
124
|
-
"typescript": "^4.9.5",
|
|
125
|
-
"yargs": "^17.5.1"
|
|
126
|
-
}
|
|
62
|
+
"engines": {
|
|
63
|
+
"node": ">=0.8.0"
|
|
64
|
+
},
|
|
65
|
+
"directories": {
|
|
66
|
+
"test": "test"
|
|
67
|
+
},
|
|
68
|
+
"files": [
|
|
69
|
+
"dist",
|
|
70
|
+
"lib",
|
|
71
|
+
"src",
|
|
72
|
+
"node",
|
|
73
|
+
"browser"
|
|
74
|
+
],
|
|
75
|
+
"scripts": {
|
|
76
|
+
"clean": "shx rm -rf dist lib",
|
|
77
|
+
"clean:coverage": "rimraf ../../.nyc_output/*",
|
|
78
|
+
"lint": "eslint src --ext .ts",
|
|
79
|
+
"lint:fix": "npm run lint -- --fix",
|
|
80
|
+
"test": "jest",
|
|
81
|
+
"test:coverage": "jest --coverage",
|
|
82
|
+
"test:coverage:only": "npm run clean:coverage && npm run test:coverage",
|
|
83
|
+
"build:modules": "rollup -c --strictDeprecations --bundleConfigAsCjs",
|
|
84
|
+
"build:modules:watch": "rollup -cw --bundleConfigAsCjs",
|
|
85
|
+
"build": "npm run clean && npm run build:modules",
|
|
86
|
+
"build:all": "npm run build",
|
|
87
|
+
"prepack": "npm run build",
|
|
88
|
+
"metadata:check": "ts-node scripts/metadata.ts",
|
|
89
|
+
"format:check": "prettier --ignore-path .gitignore --check src test",
|
|
90
|
+
"format:fix": "prettier --ignore-path .gitignore --write src test",
|
|
91
|
+
"apiExtractor": "api-extractor run"
|
|
92
|
+
},
|
|
93
|
+
"beachball": {
|
|
94
|
+
"disallowedChangeTypes": []
|
|
95
|
+
},
|
|
96
|
+
"devDependencies": {
|
|
97
|
+
"@babel/core": "^7.7.2",
|
|
98
|
+
"@babel/plugin-proposal-class-properties": "^7.7.0",
|
|
99
|
+
"@babel/plugin-proposal-object-rest-spread": "^7.6.2",
|
|
100
|
+
"@babel/preset-env": "^7.7.1",
|
|
101
|
+
"@babel/preset-typescript": "^7.7.2",
|
|
102
|
+
"@microsoft/api-extractor": "^7.43.4",
|
|
103
|
+
"@rollup/plugin-typescript": "^11.0.0",
|
|
104
|
+
"@types/debug": "^4.1.5",
|
|
105
|
+
"@types/jest": "^29.5.0",
|
|
106
|
+
"@types/lodash": "^4.14.182",
|
|
107
|
+
"@types/node": "^20.3.1",
|
|
108
|
+
"eslint-config-msal": "file:../../shared-configs/eslint-config-msal",
|
|
109
|
+
"jest": "^29.5.0",
|
|
110
|
+
"jest-junit": "^16.0.0",
|
|
111
|
+
"lodash": "^4.17.21",
|
|
112
|
+
"msal-test-utils": "file:../../shared-test-utils",
|
|
113
|
+
"prettier": "2.8.7",
|
|
114
|
+
"rimraf": "^3.0.2",
|
|
115
|
+
"rollup": "^4.22.4",
|
|
116
|
+
"rollup-msal": "file:../../shared-configs/rollup-msal",
|
|
117
|
+
"shx": "^0.3.2",
|
|
118
|
+
"ts-jest": "^29.1.0",
|
|
119
|
+
"ts-jest-resolver": "^2.0.1",
|
|
120
|
+
"ts-node": "^10.9.1",
|
|
121
|
+
"tslib": "^1.10.0",
|
|
122
|
+
"typescript": "^4.9.5",
|
|
123
|
+
"yargs": "^17.5.1"
|
|
124
|
+
}
|
|
127
125
|
}
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
createClientAuthError,
|
|
8
8
|
ClientAuthErrorCodes,
|
|
9
9
|
} from "../error/ClientAuthError.js";
|
|
10
|
-
import
|
|
10
|
+
import * as Constants from "../utils/Constants.js";
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
13
|
* Client info object which consists of two IDs. Need to add more info here.
|
|
@@ -53,14 +53,11 @@ export function buildClientInfoFromHomeAccountId(
|
|
|
53
53
|
);
|
|
54
54
|
}
|
|
55
55
|
const clientInfoParts: string[] = homeAccountId.split(
|
|
56
|
-
|
|
56
|
+
Constants.CLIENT_INFO_SEPARATOR,
|
|
57
57
|
2
|
|
58
58
|
);
|
|
59
59
|
return {
|
|
60
60
|
uid: clientInfoParts[0],
|
|
61
|
-
utid:
|
|
62
|
-
clientInfoParts.length < 2
|
|
63
|
-
? Constants.EMPTY_STRING
|
|
64
|
-
: clientInfoParts[1],
|
|
61
|
+
utid: clientInfoParts.length < 2 ? "" : clientInfoParts[1],
|
|
65
62
|
};
|
|
66
63
|
}
|