@azure/msal-common 14.14.2 → 14.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/browser/README.md +1 -0
- package/browser/package.json +5 -0
- package/dist/account/AccountInfo.d.ts +1 -1
- package/dist/account/AccountInfo.d.ts.map +1 -1
- package/dist/account/AccountInfo.mjs +1 -1
- package/dist/account/AuthToken.d.ts +1 -1
- package/dist/account/AuthToken.d.ts.map +1 -1
- package/dist/account/AuthToken.mjs +1 -1
- package/dist/account/CcsCredential.mjs +1 -1
- package/dist/account/ClientInfo.mjs +1 -1
- package/dist/account/TokenClaims.mjs +1 -1
- package/dist/authority/Authority.d.ts +12 -12
- package/dist/authority/Authority.d.ts.map +1 -1
- package/dist/authority/Authority.mjs +1 -1
- package/dist/authority/AuthorityFactory.d.ts +6 -6
- package/dist/authority/AuthorityFactory.d.ts.map +1 -1
- package/dist/authority/AuthorityFactory.mjs +1 -1
- package/dist/authority/AuthorityMetadata.d.ts +6 -6
- package/dist/authority/AuthorityMetadata.d.ts.map +1 -1
- package/dist/authority/AuthorityMetadata.mjs +1 -1
- package/dist/authority/AuthorityOptions.d.ts +4 -4
- package/dist/authority/AuthorityOptions.d.ts.map +1 -1
- package/dist/authority/AuthorityOptions.mjs +1 -1
- package/dist/authority/AuthorityType.mjs +1 -1
- package/dist/authority/AzureRegionConfiguration.d.ts +1 -1
- package/dist/authority/AzureRegionConfiguration.d.ts.map +1 -1
- package/dist/authority/CloudInstanceDiscoveryErrorResponse.mjs +1 -1
- package/dist/authority/CloudInstanceDiscoveryResponse.d.ts +1 -1
- package/dist/authority/CloudInstanceDiscoveryResponse.d.ts.map +1 -1
- package/dist/authority/CloudInstanceDiscoveryResponse.mjs +1 -1
- package/dist/authority/OIDCOptions.d.ts +1 -1
- package/dist/authority/OIDCOptions.d.ts.map +1 -1
- package/dist/authority/OpenIdConfigResponse.mjs +1 -1
- package/dist/authority/ProtocolMode.mjs +1 -1
- package/dist/authority/RegionDiscovery.d.ts +5 -5
- package/dist/authority/RegionDiscovery.d.ts.map +1 -1
- package/dist/authority/RegionDiscovery.mjs +1 -1
- package/dist/authority/RegionDiscoveryMetadata.d.ts +1 -1
- package/dist/authority/RegionDiscoveryMetadata.d.ts.map +1 -1
- package/dist/broker/nativeBroker/INativeBrokerPlugin.d.ts +6 -6
- package/dist/broker/nativeBroker/INativeBrokerPlugin.d.ts.map +1 -1
- package/dist/cache/CacheManager.d.ts +18 -23
- package/dist/cache/CacheManager.d.ts.map +1 -1
- package/dist/cache/CacheManager.mjs +1 -4
- package/dist/cache/CacheManager.mjs.map +1 -1
- package/dist/cache/entities/AccessTokenEntity.d.ts +2 -2
- package/dist/cache/entities/AccessTokenEntity.d.ts.map +1 -1
- package/dist/cache/entities/AccountEntity.d.ts +6 -6
- package/dist/cache/entities/AccountEntity.d.ts.map +1 -1
- package/dist/cache/entities/AccountEntity.mjs +1 -1
- package/dist/cache/entities/CacheRecord.d.ts +5 -5
- package/dist/cache/entities/CacheRecord.d.ts.map +1 -1
- package/dist/cache/entities/CredentialEntity.d.ts +1 -1
- package/dist/cache/entities/CredentialEntity.d.ts.map +1 -1
- package/dist/cache/entities/IdTokenEntity.d.ts +1 -1
- package/dist/cache/entities/IdTokenEntity.d.ts.map +1 -1
- package/dist/cache/entities/RefreshTokenEntity.d.ts +1 -1
- package/dist/cache/entities/RefreshTokenEntity.d.ts.map +1 -1
- package/dist/cache/interface/ICacheManager.d.ts +12 -12
- package/dist/cache/interface/ICacheManager.d.ts.map +1 -1
- package/dist/cache/interface/ICachePlugin.d.ts +1 -1
- package/dist/cache/interface/ICachePlugin.d.ts.map +1 -1
- package/dist/cache/persistence/TokenCacheContext.d.ts +1 -1
- package/dist/cache/persistence/TokenCacheContext.d.ts.map +1 -1
- package/dist/cache/persistence/TokenCacheContext.mjs +1 -1
- package/dist/cache/utils/CacheHelpers.d.ts +9 -9
- package/dist/cache/utils/CacheHelpers.d.ts.map +1 -1
- package/dist/cache/utils/CacheHelpers.mjs +1 -1
- package/dist/cache/utils/CacheTypes.d.ts +11 -11
- package/dist/cache/utils/CacheTypes.d.ts.map +1 -1
- package/dist/client/AuthorizationCodeClient.d.ts +10 -9
- package/dist/client/AuthorizationCodeClient.d.ts.map +1 -1
- package/dist/client/AuthorizationCodeClient.mjs +35 -16
- package/dist/client/AuthorizationCodeClient.mjs.map +1 -1
- package/dist/client/BaseClient.d.ts +21 -14
- package/dist/client/BaseClient.d.ts.map +1 -1
- package/dist/client/BaseClient.mjs +62 -10
- package/dist/client/BaseClient.mjs.map +1 -1
- package/dist/client/RefreshTokenClient.d.ts +6 -6
- package/dist/client/RefreshTokenClient.d.ts.map +1 -1
- package/dist/client/RefreshTokenClient.mjs +10 -4
- package/dist/client/RefreshTokenClient.mjs.map +1 -1
- package/dist/client/SilentFlowClient.d.ts +6 -6
- package/dist/client/SilentFlowClient.d.ts.map +1 -1
- package/dist/client/SilentFlowClient.mjs +1 -1
- package/dist/config/ClientConfiguration.d.ts +15 -11
- package/dist/config/ClientConfiguration.d.ts.map +1 -1
- package/dist/config/ClientConfiguration.mjs +2 -1
- package/dist/config/ClientConfiguration.mjs.map +1 -1
- package/dist/constants/AADServerParamKeys.d.ts +2 -0
- package/dist/constants/AADServerParamKeys.d.ts.map +1 -1
- package/dist/constants/AADServerParamKeys.mjs +5 -3
- package/dist/constants/AADServerParamKeys.mjs.map +1 -1
- package/dist/crypto/ICrypto.d.ts +2 -2
- package/dist/crypto/ICrypto.d.ts.map +1 -1
- package/dist/crypto/ICrypto.mjs +1 -1
- package/dist/crypto/JoseHeader.d.ts +1 -1
- package/dist/crypto/JoseHeader.d.ts.map +1 -1
- package/dist/crypto/JoseHeader.mjs +1 -1
- package/dist/crypto/PopTokenGenerator.d.ts +3 -3
- package/dist/crypto/PopTokenGenerator.d.ts.map +1 -1
- package/dist/crypto/PopTokenGenerator.mjs +1 -1
- package/dist/crypto/SignedHttpRequest.d.ts +1 -1
- package/dist/crypto/SignedHttpRequest.d.ts.map +1 -1
- package/dist/error/AuthError.d.ts +1 -1
- package/dist/error/AuthError.d.ts.map +1 -1
- package/dist/error/AuthError.mjs +1 -1
- package/dist/error/AuthErrorCodes.mjs +1 -1
- package/dist/error/CacheError.d.ts +1 -1
- package/dist/error/CacheError.d.ts.map +1 -1
- package/dist/error/CacheError.mjs +1 -1
- package/dist/error/CacheErrorCodes.mjs +1 -1
- package/dist/error/ClientAuthError.d.ts +2 -2
- package/dist/error/ClientAuthError.d.ts.map +1 -1
- package/dist/error/ClientAuthError.mjs +1 -1
- package/dist/error/ClientAuthErrorCodes.mjs +1 -1
- package/dist/error/ClientConfigurationError.d.ts +2 -2
- package/dist/error/ClientConfigurationError.d.ts.map +1 -1
- package/dist/error/ClientConfigurationError.mjs +1 -1
- package/dist/error/ClientConfigurationErrorCodes.mjs +1 -1
- package/dist/error/InteractionRequiredAuthError.d.ts +2 -2
- package/dist/error/InteractionRequiredAuthError.d.ts.map +1 -1
- package/dist/error/InteractionRequiredAuthError.mjs +1 -1
- package/dist/error/InteractionRequiredAuthErrorCodes.mjs +1 -1
- package/dist/error/JoseHeaderError.d.ts +2 -2
- package/dist/error/JoseHeaderError.d.ts.map +1 -1
- package/dist/error/JoseHeaderError.mjs +1 -1
- package/dist/error/JoseHeaderErrorCodes.mjs +1 -1
- package/dist/error/NetworkError.d.ts +19 -0
- package/dist/error/NetworkError.d.ts.map +1 -0
- package/dist/error/NetworkError.mjs +34 -0
- package/dist/error/NetworkError.mjs.map +1 -0
- package/dist/error/ServerError.d.ts +1 -1
- package/dist/error/ServerError.d.ts.map +1 -1
- package/dist/error/ServerError.mjs +1 -1
- package/dist/exports-browser-only.d.ts +10 -0
- package/dist/exports-browser-only.d.ts.map +1 -0
- package/dist/exports-common.d.ts +81 -0
- package/dist/exports-common.d.ts.map +1 -0
- package/dist/exports-node-only.d.ts +18 -0
- package/dist/exports-node-only.d.ts.map +1 -0
- package/dist/index-browser.d.ts +7 -0
- package/dist/index-browser.d.ts.map +1 -0
- package/dist/index-browser.mjs +67 -0
- package/dist/index-browser.mjs.map +1 -0
- package/dist/index-node.d.ts +7 -0
- package/dist/index-node.d.ts.map +1 -0
- package/dist/index-node.mjs +66 -0
- package/dist/index-node.mjs.map +1 -0
- package/dist/index.d.ts +7 -103
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +31 -31
- package/dist/logger/Logger.d.ts +1 -1
- package/dist/logger/Logger.d.ts.map +1 -1
- package/dist/logger/Logger.mjs +1 -1
- package/dist/network/INetworkModule.d.ts +1 -1
- package/dist/network/INetworkModule.d.ts.map +1 -1
- package/dist/network/INetworkModule.mjs +1 -1
- package/dist/network/NetworkResponse.d.ts +6 -0
- package/dist/network/NetworkResponse.d.ts.map +1 -0
- package/dist/network/RequestThumbprint.d.ts +2 -2
- package/dist/network/RequestThumbprint.d.ts.map +1 -1
- package/dist/network/ThrottlingUtils.d.ts +5 -5
- package/dist/network/ThrottlingUtils.d.ts.map +1 -1
- package/dist/network/ThrottlingUtils.mjs +1 -1
- package/dist/packageMetadata.d.ts +1 -1
- package/dist/packageMetadata.mjs +2 -2
- package/dist/request/AuthenticationHeaderParser.mjs +1 -1
- package/dist/request/BaseAuthRequest.d.ts +7 -5
- package/dist/request/BaseAuthRequest.d.ts.map +1 -1
- package/dist/request/CommonAuthorizationCodeRequest.d.ts +3 -3
- package/dist/request/CommonAuthorizationCodeRequest.d.ts.map +1 -1
- package/dist/request/CommonAuthorizationUrlRequest.d.ts +4 -4
- package/dist/request/CommonAuthorizationUrlRequest.d.ts.map +1 -1
- package/dist/request/CommonClientCredentialRequest.d.ts +3 -3
- package/dist/request/CommonClientCredentialRequest.d.ts.map +1 -1
- package/dist/request/CommonDeviceCodeRequest.d.ts +3 -3
- package/dist/request/CommonDeviceCodeRequest.d.ts.map +1 -1
- package/dist/request/CommonEndSessionRequest.d.ts +2 -2
- package/dist/request/CommonEndSessionRequest.d.ts.map +1 -1
- package/dist/request/CommonOnBehalfOfRequest.d.ts +1 -1
- package/dist/request/CommonOnBehalfOfRequest.d.ts.map +1 -1
- package/dist/request/CommonRefreshTokenRequest.d.ts +3 -3
- package/dist/request/CommonRefreshTokenRequest.d.ts.map +1 -1
- package/dist/request/CommonSilentFlowRequest.d.ts +3 -3
- package/dist/request/CommonSilentFlowRequest.d.ts.map +1 -1
- package/dist/request/CommonUsernamePasswordRequest.d.ts +1 -1
- package/dist/request/CommonUsernamePasswordRequest.d.ts.map +1 -1
- package/dist/request/NativeRequest.d.ts +1 -1
- package/dist/request/NativeRequest.d.ts.map +1 -1
- package/dist/request/RequestParameterBuilder.d.ts +13 -6
- package/dist/request/RequestParameterBuilder.d.ts.map +1 -1
- package/dist/request/RequestParameterBuilder.mjs +26 -3
- package/dist/request/RequestParameterBuilder.mjs.map +1 -1
- package/dist/request/RequestValidator.mjs +1 -1
- package/dist/request/ScopeSet.mjs +1 -1
- package/dist/response/AuthenticationResult.d.ts +1 -1
- package/dist/response/AuthenticationResult.d.ts.map +1 -1
- package/dist/response/ExternalTokenResponse.d.ts +1 -1
- package/dist/response/ExternalTokenResponse.d.ts.map +1 -1
- package/dist/response/ResponseHandler.d.ts +16 -16
- package/dist/response/ResponseHandler.d.ts.map +1 -1
- package/dist/response/ResponseHandler.mjs +1 -1
- package/dist/response/ServerAuthorizationTokenResponse.d.ts +1 -1
- package/dist/response/ServerAuthorizationTokenResponse.d.ts.map +1 -1
- package/dist/telemetry/performance/IPerformanceClient.d.ts +2 -2
- package/dist/telemetry/performance/IPerformanceClient.d.ts.map +1 -1
- package/dist/telemetry/performance/PerformanceClient.d.ts +5 -5
- package/dist/telemetry/performance/PerformanceClient.d.ts.map +1 -1
- package/dist/telemetry/performance/PerformanceClient.mjs +29 -10
- package/dist/telemetry/performance/PerformanceClient.mjs.map +1 -1
- package/dist/telemetry/performance/PerformanceEvent.d.ts +9 -0
- package/dist/telemetry/performance/PerformanceEvent.d.ts.map +1 -1
- package/dist/telemetry/performance/PerformanceEvent.mjs +6 -1
- package/dist/telemetry/performance/PerformanceEvent.mjs.map +1 -1
- package/dist/telemetry/performance/StubPerformanceClient.d.ts +3 -3
- package/dist/telemetry/performance/StubPerformanceClient.d.ts.map +1 -1
- package/dist/telemetry/performance/StubPerformanceClient.mjs +1 -1
- package/dist/telemetry/performance/StubPerformanceClient.mjs.map +1 -1
- package/dist/telemetry/server/ServerTelemetryManager.d.ts +5 -5
- package/dist/telemetry/server/ServerTelemetryManager.d.ts.map +1 -1
- package/dist/telemetry/server/ServerTelemetryManager.mjs +1 -1
- package/dist/url/UrlString.d.ts +1 -1
- package/dist/url/UrlString.d.ts.map +1 -1
- package/dist/url/UrlString.mjs +1 -1
- package/dist/utils/ClientAssertionUtils.d.ts +1 -1
- package/dist/utils/ClientAssertionUtils.d.ts.map +1 -1
- package/dist/utils/ClientAssertionUtils.mjs +1 -1
- package/dist/utils/Constants.d.ts +1 -0
- package/dist/utils/Constants.d.ts.map +1 -1
- package/dist/utils/Constants.mjs +2 -1
- 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 +1 -1
- package/dist/utils/ProtocolUtils.d.ts +1 -1
- package/dist/utils/ProtocolUtils.d.ts.map +1 -1
- package/dist/utils/ProtocolUtils.mjs +1 -1
- package/dist/utils/StringUtils.mjs +1 -1
- package/dist/utils/TimeUtils.mjs +1 -1
- package/dist/utils/UrlUtils.d.ts +1 -1
- package/dist/utils/UrlUtils.d.ts.map +1 -1
- package/dist/utils/UrlUtils.mjs +1 -1
- package/lib/index-browser.cjs +858 -0
- package/lib/index-browser.cjs.map +1 -0
- package/{dist/index.cjs → lib/index-node-C9XsExml.js} +352 -990
- package/lib/index-node-C9XsExml.js.map +1 -0
- package/lib/index-node.cjs +104 -0
- package/lib/index-node.cjs.map +1 -0
- package/lib/index.cjs +112 -0
- package/lib/index.cjs.map +1 -0
- package/lib/package.json +1 -0
- package/lib/types/account/AccountInfo.d.ts +67 -0
- package/lib/types/account/AccountInfo.d.ts.map +1 -0
- package/lib/types/account/AuthToken.d.ts +18 -0
- package/lib/types/account/AuthToken.d.ts.map +1 -0
- package/lib/types/account/CcsCredential.d.ts +10 -0
- package/lib/types/account/CcsCredential.d.ts.map +1 -0
- package/lib/types/account/ClientCredentials.d.ts +20 -0
- package/lib/types/account/ClientCredentials.d.ts.map +1 -0
- package/lib/types/account/ClientInfo.d.ts +19 -0
- package/lib/types/account/ClientInfo.d.ts.map +1 -0
- package/lib/types/account/TokenClaims.d.ts +84 -0
- package/lib/types/account/TokenClaims.d.ts.map +1 -0
- package/lib/types/authority/Authority.d.ts +255 -0
- package/lib/types/authority/Authority.d.ts.map +1 -0
- package/lib/types/authority/AuthorityFactory.d.ts +19 -0
- package/lib/types/authority/AuthorityFactory.d.ts.map +1 -0
- package/lib/types/authority/AuthorityMetadata.d.ts +44 -0
- package/lib/types/authority/AuthorityMetadata.d.ts.map +1 -0
- package/lib/types/authority/AuthorityOptions.d.ts +28 -0
- package/lib/types/authority/AuthorityOptions.d.ts.map +1 -0
- package/lib/types/authority/AuthorityType.d.ts +11 -0
- package/lib/types/authority/AuthorityType.d.ts.map +1 -0
- package/lib/types/authority/AzureRegion.d.ts +2 -0
- package/lib/types/authority/AzureRegion.d.ts.map +1 -0
- package/lib/types/authority/AzureRegionConfiguration.d.ts +6 -0
- package/lib/types/authority/AzureRegionConfiguration.d.ts.map +1 -0
- package/lib/types/authority/CloudDiscoveryMetadata.d.ts +6 -0
- package/lib/types/authority/CloudDiscoveryMetadata.d.ts.map +1 -0
- package/lib/types/authority/CloudInstanceDiscoveryErrorResponse.d.ts +14 -0
- package/lib/types/authority/CloudInstanceDiscoveryErrorResponse.d.ts.map +1 -0
- package/lib/types/authority/CloudInstanceDiscoveryResponse.d.ts +10 -0
- package/lib/types/authority/CloudInstanceDiscoveryResponse.d.ts.map +1 -0
- package/lib/types/authority/ImdsOptions.d.ts +6 -0
- package/lib/types/authority/ImdsOptions.d.ts.map +1 -0
- package/lib/types/authority/OIDCOptions.d.ts +9 -0
- package/lib/types/authority/OIDCOptions.d.ts.map +1 -0
- package/lib/types/authority/OpenIdConfigResponse.d.ts +12 -0
- package/lib/types/authority/OpenIdConfigResponse.d.ts.map +1 -0
- package/lib/types/authority/ProtocolMode.d.ts +9 -0
- package/lib/types/authority/ProtocolMode.d.ts.map +1 -0
- package/lib/types/authority/RegionDiscovery.d.ts +33 -0
- package/lib/types/authority/RegionDiscovery.d.ts.map +1 -0
- package/lib/types/authority/RegionDiscoveryMetadata.d.ts +7 -0
- package/lib/types/authority/RegionDiscoveryMetadata.d.ts.map +1 -0
- package/lib/types/broker/nativeBroker/INativeBrokerPlugin.d.ts +16 -0
- package/lib/types/broker/nativeBroker/INativeBrokerPlugin.d.ts.map +1 -0
- package/lib/types/cache/CacheManager.d.ts +493 -0
- package/lib/types/cache/CacheManager.d.ts.map +1 -0
- package/lib/types/cache/entities/AccessTokenEntity.d.ts +26 -0
- package/lib/types/cache/entities/AccessTokenEntity.d.ts.map +1 -0
- package/lib/types/cache/entities/AccountEntity.d.ts +107 -0
- package/lib/types/cache/entities/AccountEntity.d.ts.map +1 -0
- package/lib/types/cache/entities/AppMetadataEntity.d.ts +12 -0
- package/lib/types/cache/entities/AppMetadataEntity.d.ts.map +1 -0
- package/lib/types/cache/entities/AuthorityMetadataEntity.d.ts +16 -0
- package/lib/types/cache/entities/AuthorityMetadataEntity.d.ts.map +1 -0
- package/lib/types/cache/entities/CacheRecord.d.ts +14 -0
- package/lib/types/cache/entities/CacheRecord.d.ts.map +1 -0
- package/lib/types/cache/entities/CredentialEntity.d.ts +31 -0
- package/lib/types/cache/entities/CredentialEntity.d.ts.map +1 -0
- package/lib/types/cache/entities/IdTokenEntity.d.ts +9 -0
- package/lib/types/cache/entities/IdTokenEntity.d.ts.map +1 -0
- package/lib/types/cache/entities/RefreshTokenEntity.d.ts +8 -0
- package/lib/types/cache/entities/RefreshTokenEntity.d.ts.map +1 -0
- package/lib/types/cache/entities/ServerTelemetryEntity.d.ts +7 -0
- package/lib/types/cache/entities/ServerTelemetryEntity.d.ts.map +1 -0
- package/lib/types/cache/entities/ThrottlingEntity.d.ts +8 -0
- package/lib/types/cache/entities/ThrottlingEntity.d.ts.map +1 -0
- package/lib/types/cache/interface/ICacheManager.d.ts +167 -0
- package/lib/types/cache/interface/ICacheManager.d.ts.map +1 -0
- package/lib/types/cache/interface/ICachePlugin.d.ts +6 -0
- package/lib/types/cache/interface/ICachePlugin.d.ts.map +1 -0
- package/lib/types/cache/interface/ISerializableTokenCache.d.ts +5 -0
- package/lib/types/cache/interface/ISerializableTokenCache.d.ts.map +1 -0
- package/lib/types/cache/persistence/TokenCacheContext.d.ts +24 -0
- package/lib/types/cache/persistence/TokenCacheContext.d.ts.map +1 -0
- package/lib/types/cache/utils/CacheHelpers.d.ts +95 -0
- package/lib/types/cache/utils/CacheHelpers.d.ts.map +1 -0
- package/lib/types/cache/utils/CacheTypes.d.ts +70 -0
- package/lib/types/cache/utils/CacheTypes.d.ts.map +1 -0
- package/lib/types/client/AuthorizationCodeClient.d.ts +76 -0
- package/lib/types/client/AuthorizationCodeClient.d.ts.map +1 -0
- package/lib/types/client/BaseClient.d.ts +59 -0
- package/lib/types/client/BaseClient.d.ts.map +1 -0
- package/lib/types/client/RefreshTokenClient.d.ts +36 -0
- package/lib/types/client/RefreshTokenClient.d.ts.map +1 -0
- package/lib/types/client/SilentFlowClient.d.ts +28 -0
- package/lib/types/client/SilentFlowClient.d.ts.map +1 -0
- package/lib/types/config/AppTokenProvider.d.ts +39 -0
- package/lib/types/config/AppTokenProvider.d.ts.map +1 -0
- package/lib/types/config/ClientConfiguration.d.ts +155 -0
- package/lib/types/config/ClientConfiguration.d.ts.map +1 -0
- package/lib/types/constants/AADServerParamKeys.d.ts +56 -0
- package/lib/types/constants/AADServerParamKeys.d.ts.map +1 -0
- package/lib/types/crypto/ICrypto.d.ts +69 -0
- package/lib/types/crypto/ICrypto.d.ts.map +1 -0
- package/lib/types/crypto/IGuidGenerator.d.ts +5 -0
- package/lib/types/crypto/IGuidGenerator.d.ts.map +1 -0
- package/lib/types/crypto/JoseHeader.d.ts +23 -0
- package/lib/types/crypto/JoseHeader.d.ts.map +1 -0
- package/lib/types/crypto/PopTokenGenerator.d.ts +60 -0
- package/lib/types/crypto/PopTokenGenerator.d.ts.map +1 -0
- package/lib/types/crypto/SignedHttpRequest.d.ts +16 -0
- package/lib/types/crypto/SignedHttpRequest.d.ts.map +1 -0
- package/lib/types/error/AuthError.d.ts +45 -0
- package/lib/types/error/AuthError.d.ts.map +1 -0
- package/lib/types/error/AuthErrorCodes.d.ts +6 -0
- package/lib/types/error/AuthErrorCodes.d.ts.map +1 -0
- package/lib/types/error/CacheError.d.ts +21 -0
- package/lib/types/error/CacheError.d.ts.map +1 -0
- package/lib/types/error/CacheErrorCodes.d.ts +3 -0
- package/lib/types/error/CacheErrorCodes.d.ts.map +1 -0
- package/lib/types/error/ClientAuthError.d.ts +238 -0
- package/lib/types/error/ClientAuthError.d.ts.map +1 -0
- package/lib/types/error/ClientAuthErrorCodes.d.ts +45 -0
- package/lib/types/error/ClientAuthErrorCodes.d.ts.map +1 -0
- package/lib/types/error/ClientConfigurationError.d.ts +129 -0
- package/lib/types/error/ClientConfigurationError.d.ts.map +1 -0
- package/lib/types/error/ClientConfigurationErrorCodes.d.ts +23 -0
- package/lib/types/error/ClientConfigurationErrorCodes.d.ts.map +1 -0
- package/lib/types/error/InteractionRequiredAuthError.d.ts +66 -0
- package/lib/types/error/InteractionRequiredAuthError.d.ts.map +1 -0
- package/lib/types/error/InteractionRequiredAuthErrorCodes.d.ts +8 -0
- package/lib/types/error/InteractionRequiredAuthErrorCodes.d.ts.map +1 -0
- package/lib/types/error/JoseHeaderError.d.ts +16 -0
- package/lib/types/error/JoseHeaderError.d.ts.map +1 -0
- package/lib/types/error/JoseHeaderErrorCodes.d.ts +3 -0
- package/lib/types/error/JoseHeaderErrorCodes.d.ts.map +1 -0
- package/lib/types/error/NetworkError.d.ts +19 -0
- package/lib/types/error/NetworkError.d.ts.map +1 -0
- package/lib/types/error/ServerError.d.ts +16 -0
- package/lib/types/error/ServerError.d.ts.map +1 -0
- package/lib/types/exports-browser-only.d.ts +10 -0
- package/lib/types/exports-browser-only.d.ts.map +1 -0
- package/lib/types/exports-common.d.ts +81 -0
- package/lib/types/exports-common.d.ts.map +1 -0
- package/lib/types/exports-node-only.d.ts +18 -0
- package/lib/types/exports-node-only.d.ts.map +1 -0
- package/lib/types/index-browser.d.ts +7 -0
- package/lib/types/index-browser.d.ts.map +1 -0
- package/lib/types/index-node.d.ts +7 -0
- package/lib/types/index-node.d.ts.map +1 -0
- package/lib/types/index.d.ts +12 -0
- package/lib/types/index.d.ts.map +1 -0
- package/lib/types/logger/Logger.d.ts +96 -0
- package/lib/types/logger/Logger.d.ts.map +1 -0
- package/lib/types/network/INetworkModule.d.ts +30 -0
- package/lib/types/network/INetworkModule.d.ts.map +1 -0
- package/lib/types/network/NetworkResponse.d.ts +6 -0
- package/lib/types/network/NetworkResponse.d.ts.map +1 -0
- package/lib/types/network/RequestThumbprint.d.ts +19 -0
- package/lib/types/network/RequestThumbprint.d.ts.map +1 -0
- package/lib/types/network/ThrottlingUtils.d.ts +43 -0
- package/lib/types/network/ThrottlingUtils.d.ts.map +1 -0
- package/lib/types/packageMetadata.d.ts +3 -0
- package/lib/types/packageMetadata.d.ts.map +1 -0
- package/lib/types/request/AuthenticationHeaderParser.d.ts +20 -0
- package/lib/types/request/AuthenticationHeaderParser.d.ts.map +1 -0
- package/lib/types/request/BaseAuthRequest.d.ts +50 -0
- package/lib/types/request/BaseAuthRequest.d.ts.map +1 -0
- package/lib/types/request/CommonAuthorizationCodeRequest.d.ts +28 -0
- package/lib/types/request/CommonAuthorizationCodeRequest.d.ts.map +1 -0
- package/lib/types/request/CommonAuthorizationUrlRequest.d.ts +51 -0
- package/lib/types/request/CommonAuthorizationUrlRequest.d.ts.map +1 -0
- package/lib/types/request/CommonClientCredentialRequest.d.ts +18 -0
- package/lib/types/request/CommonClientCredentialRequest.d.ts.map +1 -0
- package/lib/types/request/CommonDeviceCodeRequest.d.ts +22 -0
- package/lib/types/request/CommonDeviceCodeRequest.d.ts.map +1 -0
- package/lib/types/request/CommonEndSessionRequest.d.ts +22 -0
- package/lib/types/request/CommonEndSessionRequest.d.ts.map +1 -0
- package/lib/types/request/CommonOnBehalfOfRequest.d.ts +14 -0
- package/lib/types/request/CommonOnBehalfOfRequest.d.ts.map +1 -0
- package/lib/types/request/CommonRefreshTokenRequest.d.ts +23 -0
- package/lib/types/request/CommonRefreshTokenRequest.d.ts.map +1 -0
- package/lib/types/request/CommonSilentFlowRequest.d.ts +28 -0
- package/lib/types/request/CommonSilentFlowRequest.d.ts.map +1 -0
- package/lib/types/request/CommonUsernamePasswordRequest.d.ts +18 -0
- package/lib/types/request/CommonUsernamePasswordRequest.d.ts.map +1 -0
- package/lib/types/request/NativeRequest.d.ts +20 -0
- package/lib/types/request/NativeRequest.d.ts.map +1 -0
- package/lib/types/request/NativeSignOutRequest.d.ts +6 -0
- package/lib/types/request/NativeSignOutRequest.d.ts.map +1 -0
- package/lib/types/request/RequestParameterBuilder.d.ts +225 -0
- package/lib/types/request/RequestParameterBuilder.d.ts.map +1 -0
- package/lib/types/request/RequestValidator.d.ts +28 -0
- package/lib/types/request/RequestValidator.d.ts.map +1 -0
- package/lib/types/request/ScopeSet.d.ts +89 -0
- package/lib/types/request/ScopeSet.d.ts.map +1 -0
- package/lib/types/request/StoreInCache.d.ts +9 -0
- package/lib/types/request/StoreInCache.d.ts.map +1 -0
- package/lib/types/response/AuthenticationResult.d.ts +42 -0
- package/lib/types/response/AuthenticationResult.d.ts.map +1 -0
- package/lib/types/response/AuthorizationCodePayload.d.ts +14 -0
- package/lib/types/response/AuthorizationCodePayload.d.ts.map +1 -0
- package/lib/types/response/DeviceCodeResponse.d.ts +26 -0
- package/lib/types/response/DeviceCodeResponse.d.ts.map +1 -0
- package/lib/types/response/ExternalTokenResponse.d.ts +16 -0
- package/lib/types/response/ExternalTokenResponse.d.ts.map +1 -0
- package/lib/types/response/IMDSBadResponse.d.ts +5 -0
- package/lib/types/response/IMDSBadResponse.d.ts.map +1 -0
- package/lib/types/response/ResponseHandler.d.ts +70 -0
- package/lib/types/response/ResponseHandler.d.ts.map +1 -0
- package/lib/types/response/ServerAuthorizationCodeResponse.d.ts +27 -0
- package/lib/types/response/ServerAuthorizationCodeResponse.d.ts.map +1 -0
- package/lib/types/response/ServerAuthorizationTokenResponse.d.ts +48 -0
- package/lib/types/response/ServerAuthorizationTokenResponse.d.ts.map +1 -0
- package/lib/types/telemetry/performance/IPerformanceClient.d.ts +58 -0
- package/lib/types/telemetry/performance/IPerformanceClient.d.ts.map +1 -0
- package/lib/types/telemetry/performance/IPerformanceMeasurement.d.ts +6 -0
- package/lib/types/telemetry/performance/IPerformanceMeasurement.d.ts.map +1 -0
- package/lib/types/telemetry/performance/PerformanceClient.d.ts +243 -0
- package/lib/types/telemetry/performance/PerformanceClient.d.ts.map +1 -0
- package/lib/types/telemetry/performance/PerformanceEvent.d.ts +521 -0
- package/lib/types/telemetry/performance/PerformanceEvent.d.ts.map +1 -0
- package/lib/types/telemetry/performance/StubPerformanceClient.d.ts +25 -0
- package/lib/types/telemetry/performance/StubPerformanceClient.d.ts.map +1 -0
- package/lib/types/telemetry/server/ServerTelemetryManager.d.ts +79 -0
- package/lib/types/telemetry/server/ServerTelemetryManager.d.ts.map +1 -0
- package/lib/types/telemetry/server/ServerTelemetryRequest.d.ts +9 -0
- package/lib/types/telemetry/server/ServerTelemetryRequest.d.ts.map +1 -0
- package/lib/types/url/IUri.d.ts +13 -0
- package/lib/types/url/IUri.d.ts.map +1 -0
- package/lib/types/url/UrlString.d.ts +49 -0
- package/lib/types/url/UrlString.d.ts.map +1 -0
- package/lib/types/utils/ClientAssertionUtils.d.ts +3 -0
- package/lib/types/utils/ClientAssertionUtils.d.ts.map +1 -0
- package/lib/types/utils/Constants.d.ts +311 -0
- package/lib/types/utils/Constants.d.ts.map +1 -0
- package/lib/types/utils/FunctionWrappers.d.ts +28 -0
- package/lib/types/utils/FunctionWrappers.d.ts.map +1 -0
- package/lib/types/utils/MsalTypes.d.ts +7 -0
- package/lib/types/utils/MsalTypes.d.ts.map +1 -0
- package/lib/types/utils/ProtocolUtils.d.ts +43 -0
- package/lib/types/utils/ProtocolUtils.d.ts.map +1 -0
- package/lib/types/utils/StringUtils.d.ts +41 -0
- package/lib/types/utils/StringUtils.d.ts.map +1 -0
- package/lib/types/utils/TimeUtils.d.ts +26 -0
- package/lib/types/utils/TimeUtils.d.ts.map +1 -0
- package/lib/types/utils/UrlUtils.d.ts +11 -0
- package/lib/types/utils/UrlUtils.d.ts.map +1 -0
- package/node/README.md +1 -0
- package/node/package.json +5 -0
- package/package.json +38 -11
- package/src/account/AccountInfo.ts +1 -1
- package/src/account/AuthToken.ts +2 -2
- package/src/account/ClientInfo.ts +2 -2
- package/src/authority/Authority.ts +26 -26
- package/src/authority/AuthorityFactory.ts +9 -9
- package/src/authority/AuthorityMetadata.ts +7 -7
- package/src/authority/AuthorityOptions.ts +4 -4
- package/src/authority/AzureRegionConfiguration.ts +1 -1
- package/src/authority/CloudInstanceDiscoveryResponse.ts +1 -1
- package/src/authority/OIDCOptions.ts +1 -1
- package/src/authority/RegionDiscovery.ts +10 -10
- package/src/authority/RegionDiscoveryMetadata.ts +1 -1
- package/src/broker/nativeBroker/INativeBrokerPlugin.ts +5 -5
- package/src/cache/CacheManager.ts +28 -36
- package/src/cache/entities/AccessTokenEntity.ts +2 -2
- package/src/cache/entities/AccountEntity.ts +10 -10
- package/src/cache/entities/CacheRecord.ts +5 -5
- package/src/cache/entities/CredentialEntity.ts +1 -1
- package/src/cache/entities/IdTokenEntity.ts +1 -1
- package/src/cache/entities/RefreshTokenEntity.ts +1 -1
- package/src/cache/interface/ICacheManager.ts +12 -12
- package/src/cache/interface/ICachePlugin.ts +1 -1
- package/src/cache/persistence/TokenCacheContext.ts +1 -1
- package/src/cache/utils/CacheHelpers.ts +13 -13
- package/src/cache/utils/CacheTypes.ts +11 -11
- package/src/client/AuthorizationCodeClient.ts +86 -52
- package/src/client/BaseClient.ts +121 -39
- package/src/client/RefreshTokenClient.ts +42 -33
- package/src/client/SilentFlowClient.ts +17 -17
- package/src/config/ClientConfiguration.ts +20 -15
- package/src/constants/AADServerParamKeys.ts +2 -0
- package/src/crypto/ICrypto.ts +3 -3
- package/src/crypto/JoseHeader.ts +2 -2
- package/src/crypto/PopTokenGenerator.ts +7 -7
- package/src/crypto/SignedHttpRequest.ts +1 -1
- package/src/error/AuthError.ts +2 -2
- package/src/error/CacheError.ts +1 -1
- package/src/error/ClientAuthError.ts +2 -2
- package/src/error/ClientConfigurationError.ts +2 -2
- package/src/error/InteractionRequiredAuthError.ts +3 -3
- package/src/error/JoseHeaderError.ts +2 -2
- package/src/error/NetworkError.ts +44 -0
- package/src/error/ServerError.ts +1 -1
- package/src/exports-browser-only.ts +29 -0
- package/src/exports-common.ts +189 -0
- package/src/exports-node-only.ts +35 -0
- package/src/index-browser.ts +11 -0
- package/src/index-node.ts +11 -0
- package/src/index.ts +7 -250
- package/src/logger/Logger.ts +2 -2
- package/src/network/INetworkModule.ts +2 -2
- package/src/network/NetworkResponse.ts +10 -0
- package/src/network/RequestThumbprint.ts +2 -2
- package/src/network/ThrottlingUtils.ts +8 -8
- package/src/packageMetadata.ts +1 -1
- package/src/request/AuthenticationHeaderParser.ts +2 -2
- package/src/request/BaseAuthRequest.ts +7 -5
- package/src/request/CommonAuthorizationCodeRequest.ts +3 -3
- package/src/request/CommonAuthorizationUrlRequest.ts +4 -4
- package/src/request/CommonClientCredentialRequest.ts +3 -3
- package/src/request/CommonDeviceCodeRequest.ts +3 -3
- package/src/request/CommonEndSessionRequest.ts +2 -2
- package/src/request/CommonOnBehalfOfRequest.ts +1 -1
- package/src/request/CommonRefreshTokenRequest.ts +3 -3
- package/src/request/CommonSilentFlowRequest.ts +3 -3
- package/src/request/CommonUsernamePasswordRequest.ts +1 -1
- package/src/request/NativeRequest.ts +1 -1
- package/src/request/RequestParameterBuilder.ts +60 -10
- package/src/request/RequestValidator.ts +2 -2
- package/src/request/ScopeSet.ts +4 -4
- package/src/response/AuthenticationResult.ts +1 -1
- package/src/response/ExternalTokenResponse.ts +1 -1
- package/src/response/ResponseHandler.ts +31 -31
- package/src/response/ServerAuthorizationTokenResponse.ts +1 -1
- package/src/telemetry/performance/IPerformanceClient.ts +2 -2
- package/src/telemetry/performance/PerformanceClient.ts +52 -22
- package/src/telemetry/performance/PerformanceEvent.ts +15 -0
- package/src/telemetry/performance/StubPerformanceClient.ts +6 -3
- package/src/telemetry/server/ServerTelemetryManager.ts +6 -6
- package/src/url/UrlString.ts +5 -5
- package/src/utils/ClientAssertionUtils.ts +1 -1
- package/src/utils/Constants.ts +1 -0
- package/src/utils/FunctionWrappers.ts +2 -2
- package/src/utils/ProtocolUtils.ts +3 -3
- package/src/utils/UrlUtils.ts +2 -2
- package/dist/index.cjs.map +0 -1
- package/dist/network/NetworkManager.d.ts +0 -34
- package/dist/network/NetworkManager.d.ts.map +0 -1
- package/dist/network/NetworkManager.mjs +0 -44
- package/dist/network/NetworkManager.mjs.map +0 -1
- package/src/network/NetworkManager.ts +0 -76
package/src/index.ts
CHANGED
|
@@ -8,253 +8,10 @@
|
|
|
8
8
|
* @module @azure/msal-common
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
export { AuthorizationCodeClient } from "./client/AuthorizationCodeClient";
|
|
19
|
-
export { RefreshTokenClient } from "./client/RefreshTokenClient";
|
|
20
|
-
export { SilentFlowClient } from "./client/SilentFlowClient";
|
|
21
|
-
export { BaseClient } from "./client/BaseClient";
|
|
22
|
-
export {
|
|
23
|
-
AuthOptions,
|
|
24
|
-
SystemOptions,
|
|
25
|
-
LoggerOptions,
|
|
26
|
-
CacheOptions,
|
|
27
|
-
DEFAULT_SYSTEM_OPTIONS,
|
|
28
|
-
AzureCloudOptions,
|
|
29
|
-
ApplicationTelemetry,
|
|
30
|
-
} from "./config/ClientConfiguration";
|
|
31
|
-
export {
|
|
32
|
-
IAppTokenProvider,
|
|
33
|
-
AppTokenProviderParameters,
|
|
34
|
-
AppTokenProviderResult,
|
|
35
|
-
} from "./config/AppTokenProvider";
|
|
36
|
-
export { ClientConfiguration } from "./config/ClientConfiguration";
|
|
37
|
-
// Account
|
|
38
|
-
export {
|
|
39
|
-
AccountInfo,
|
|
40
|
-
ActiveAccountFilters,
|
|
41
|
-
TenantProfile,
|
|
42
|
-
updateAccountTenantProfileData,
|
|
43
|
-
tenantIdMatchesHomeTenant,
|
|
44
|
-
buildTenantProfile,
|
|
45
|
-
} from "./account/AccountInfo";
|
|
46
|
-
export { AuthToken };
|
|
47
|
-
export {
|
|
48
|
-
TokenClaims,
|
|
49
|
-
getTenantIdFromIdTokenClaims,
|
|
50
|
-
} from "./account/TokenClaims";
|
|
51
|
-
export { TokenClaims as IdTokenClaims } from "./account/TokenClaims";
|
|
52
|
-
export { CcsCredential, CcsCredentialType } from "./account/CcsCredential";
|
|
53
|
-
export {
|
|
54
|
-
ClientInfo,
|
|
55
|
-
buildClientInfo,
|
|
56
|
-
buildClientInfoFromHomeAccountId,
|
|
57
|
-
} from "./account/ClientInfo";
|
|
58
|
-
// Authority
|
|
59
|
-
export {
|
|
60
|
-
Authority,
|
|
61
|
-
formatAuthorityUri,
|
|
62
|
-
buildStaticAuthorityOptions,
|
|
63
|
-
} from "./authority/Authority";
|
|
64
|
-
export {
|
|
65
|
-
AuthorityOptions,
|
|
66
|
-
AzureCloudInstance,
|
|
67
|
-
StaticAuthorityOptions,
|
|
68
|
-
} from "./authority/AuthorityOptions";
|
|
69
|
-
export { AuthorityFactory };
|
|
70
|
-
export { AuthorityType } from "./authority/AuthorityType";
|
|
71
|
-
export { ProtocolMode } from "./authority/ProtocolMode";
|
|
72
|
-
export { OIDCOptions } from "./authority/OIDCOptions";
|
|
73
|
-
// Broker
|
|
74
|
-
export { INativeBrokerPlugin } from "./broker/nativeBroker/INativeBrokerPlugin";
|
|
75
|
-
// Cache
|
|
76
|
-
export { CacheManager, DefaultStorageClass } from "./cache/CacheManager";
|
|
77
|
-
export {
|
|
78
|
-
AccountCache,
|
|
79
|
-
AccountFilter,
|
|
80
|
-
AccessTokenCache,
|
|
81
|
-
IdTokenCache,
|
|
82
|
-
RefreshTokenCache,
|
|
83
|
-
AppMetadataCache,
|
|
84
|
-
CredentialFilter,
|
|
85
|
-
ValidCacheType,
|
|
86
|
-
ValidCredentialType,
|
|
87
|
-
TokenKeys,
|
|
88
|
-
} from "./cache/utils/CacheTypes";
|
|
89
|
-
export { CacheRecord } from "./cache/entities/CacheRecord";
|
|
90
|
-
export { CredentialEntity } from "./cache/entities/CredentialEntity";
|
|
91
|
-
export { CacheHelpers };
|
|
92
|
-
export { AppMetadataEntity } from "./cache/entities/AppMetadataEntity";
|
|
93
|
-
export { AccountEntity } from "./cache/entities/AccountEntity";
|
|
94
|
-
export { IdTokenEntity } from "./cache/entities/IdTokenEntity";
|
|
95
|
-
export { AccessTokenEntity } from "./cache/entities/AccessTokenEntity";
|
|
96
|
-
export { RefreshTokenEntity } from "./cache/entities/RefreshTokenEntity";
|
|
97
|
-
export { ServerTelemetryEntity } from "./cache/entities/ServerTelemetryEntity";
|
|
98
|
-
export { AuthorityMetadataEntity } from "./cache/entities/AuthorityMetadataEntity";
|
|
99
|
-
export { ThrottlingEntity } from "./cache/entities/ThrottlingEntity";
|
|
100
|
-
export { ICachePlugin } from "./cache/interface/ICachePlugin";
|
|
101
|
-
export { TokenCacheContext } from "./cache/persistence/TokenCacheContext";
|
|
102
|
-
export { ISerializableTokenCache } from "./cache/interface/ISerializableTokenCache";
|
|
103
|
-
// Network Interface
|
|
104
|
-
export {
|
|
105
|
-
INetworkModule,
|
|
106
|
-
NetworkRequestOptions,
|
|
107
|
-
StubbedNetworkModule,
|
|
108
|
-
} from "./network/INetworkModule";
|
|
109
|
-
export {
|
|
110
|
-
NetworkManager,
|
|
111
|
-
NetworkResponse,
|
|
112
|
-
UrlToHttpRequestOptions,
|
|
113
|
-
} from "./network/NetworkManager";
|
|
114
|
-
export { ThrottlingUtils } from "./network/ThrottlingUtils";
|
|
115
|
-
export { RequestThumbprint } from "./network/RequestThumbprint";
|
|
116
|
-
export { IUri } from "./url/IUri";
|
|
117
|
-
export { UrlString } from "./url/UrlString";
|
|
118
|
-
// Crypto Interface
|
|
119
|
-
export {
|
|
120
|
-
ICrypto,
|
|
121
|
-
PkceCodes,
|
|
122
|
-
DEFAULT_CRYPTO_IMPLEMENTATION,
|
|
123
|
-
SignedHttpRequestParameters,
|
|
124
|
-
} from "./crypto/ICrypto";
|
|
125
|
-
export { SignedHttpRequest, ShrOptions } from "./crypto/SignedHttpRequest";
|
|
126
|
-
export { IGuidGenerator } from "./crypto/IGuidGenerator";
|
|
127
|
-
export { JoseHeader } from "./crypto/JoseHeader";
|
|
128
|
-
// Request
|
|
129
|
-
export { BaseAuthRequest } from "./request/BaseAuthRequest";
|
|
130
|
-
export { CommonAuthorizationUrlRequest } from "./request/CommonAuthorizationUrlRequest";
|
|
131
|
-
export { CommonAuthorizationCodeRequest } from "./request/CommonAuthorizationCodeRequest";
|
|
132
|
-
export { CommonRefreshTokenRequest } from "./request/CommonRefreshTokenRequest";
|
|
133
|
-
export { CommonClientCredentialRequest } from "./request/CommonClientCredentialRequest";
|
|
134
|
-
export { CommonOnBehalfOfRequest } from "./request/CommonOnBehalfOfRequest";
|
|
135
|
-
export { CommonSilentFlowRequest } from "./request/CommonSilentFlowRequest";
|
|
136
|
-
export { CommonDeviceCodeRequest } from "./request/CommonDeviceCodeRequest";
|
|
137
|
-
export { CommonEndSessionRequest } from "./request/CommonEndSessionRequest";
|
|
138
|
-
export { CommonUsernamePasswordRequest } from "./request/CommonUsernamePasswordRequest";
|
|
139
|
-
export { NativeRequest } from "./request/NativeRequest";
|
|
140
|
-
export { NativeSignOutRequest } from "./request/NativeSignOutRequest";
|
|
141
|
-
export { RequestParameterBuilder } from "./request/RequestParameterBuilder";
|
|
142
|
-
export { StoreInCache } from "./request/StoreInCache";
|
|
143
|
-
export {
|
|
144
|
-
ClientAssertion,
|
|
145
|
-
ClientAssertionConfig,
|
|
146
|
-
ClientAssertionCallback,
|
|
147
|
-
} from "./account/ClientCredentials";
|
|
148
|
-
// Response
|
|
149
|
-
export { AzureRegion } from "./authority/AzureRegion";
|
|
150
|
-
export { AzureRegionConfiguration } from "./authority/AzureRegionConfiguration";
|
|
151
|
-
export { AuthenticationResult } from "./response/AuthenticationResult";
|
|
152
|
-
export { AuthorizationCodePayload } from "./response/AuthorizationCodePayload";
|
|
153
|
-
export { ServerAuthorizationCodeResponse } from "./response/ServerAuthorizationCodeResponse";
|
|
154
|
-
export { ServerAuthorizationTokenResponse } from "./response/ServerAuthorizationTokenResponse";
|
|
155
|
-
export { ExternalTokenResponse } from "./response/ExternalTokenResponse";
|
|
156
|
-
export {
|
|
157
|
-
DeviceCodeResponse,
|
|
158
|
-
ServerDeviceCodeResponse,
|
|
159
|
-
} from "./response/DeviceCodeResponse";
|
|
160
|
-
export {
|
|
161
|
-
ResponseHandler,
|
|
162
|
-
buildAccountToCache,
|
|
163
|
-
} from "./response/ResponseHandler";
|
|
164
|
-
export { ScopeSet } from "./request/ScopeSet";
|
|
165
|
-
export { AuthenticationHeaderParser } from "./request/AuthenticationHeaderParser";
|
|
166
|
-
// Logger Callback
|
|
167
|
-
export { ILoggerCallback, LogLevel, Logger } from "./logger/Logger";
|
|
168
|
-
// Errors
|
|
169
|
-
export {
|
|
170
|
-
InteractionRequiredAuthError,
|
|
171
|
-
InteractionRequiredAuthErrorCodes,
|
|
172
|
-
InteractionRequiredAuthErrorMessage,
|
|
173
|
-
createInteractionRequiredAuthError,
|
|
174
|
-
} from "./error/InteractionRequiredAuthError";
|
|
175
|
-
export {
|
|
176
|
-
AuthError,
|
|
177
|
-
AuthErrorMessage,
|
|
178
|
-
AuthErrorCodes,
|
|
179
|
-
createAuthError,
|
|
180
|
-
} from "./error/AuthError";
|
|
181
|
-
export { ServerError } from "./error/ServerError";
|
|
182
|
-
export { CacheError, CacheErrorCodes } from "./error/CacheError";
|
|
183
|
-
export {
|
|
184
|
-
ClientAuthError,
|
|
185
|
-
ClientAuthErrorMessage,
|
|
186
|
-
ClientAuthErrorCodes,
|
|
187
|
-
createClientAuthError,
|
|
188
|
-
} from "./error/ClientAuthError";
|
|
189
|
-
export {
|
|
190
|
-
ClientConfigurationError,
|
|
191
|
-
ClientConfigurationErrorMessage,
|
|
192
|
-
ClientConfigurationErrorCodes,
|
|
193
|
-
createClientConfigurationError,
|
|
194
|
-
} from "./error/ClientConfigurationError";
|
|
195
|
-
// Constants and Utils
|
|
196
|
-
export { getClientAssertion } from "./utils/ClientAssertionUtils";
|
|
197
|
-
export {
|
|
198
|
-
Constants,
|
|
199
|
-
OIDC_DEFAULT_SCOPES,
|
|
200
|
-
PromptValue,
|
|
201
|
-
PersistentCacheKeys,
|
|
202
|
-
ServerResponseType,
|
|
203
|
-
ResponseMode,
|
|
204
|
-
CacheOutcome,
|
|
205
|
-
CredentialType,
|
|
206
|
-
CacheType,
|
|
207
|
-
CacheAccountType,
|
|
208
|
-
AuthenticationScheme,
|
|
209
|
-
CodeChallengeMethodValues,
|
|
210
|
-
PasswordGrantConstants,
|
|
211
|
-
ThrottlingConstants,
|
|
212
|
-
ClaimsRequestKeys,
|
|
213
|
-
HeaderNames,
|
|
214
|
-
Errors,
|
|
215
|
-
THE_FAMILY_ID,
|
|
216
|
-
ONE_DAY_IN_MS,
|
|
217
|
-
GrantType,
|
|
218
|
-
AADAuthorityConstants,
|
|
219
|
-
HttpStatus,
|
|
220
|
-
DEFAULT_TOKEN_RENEWAL_OFFSET_SEC,
|
|
221
|
-
JsonWebTokenTypes,
|
|
222
|
-
} from "./utils/Constants";
|
|
223
|
-
export { AADServerParamKeys };
|
|
224
|
-
export { StringUtils } from "./utils/StringUtils";
|
|
225
|
-
export { StringDict } from "./utils/MsalTypes";
|
|
226
|
-
export {
|
|
227
|
-
ProtocolUtils,
|
|
228
|
-
RequestStateObject,
|
|
229
|
-
LibraryStateObject,
|
|
230
|
-
} from "./utils/ProtocolUtils";
|
|
231
|
-
export { TimeUtils, UrlUtils, ClientAssertionUtils };
|
|
232
|
-
export * from "./utils/FunctionWrappers";
|
|
233
|
-
// Server Telemetry
|
|
234
|
-
export { ServerTelemetryManager } from "./telemetry/server/ServerTelemetryManager";
|
|
235
|
-
export { ServerTelemetryRequest } from "./telemetry/server/ServerTelemetryRequest";
|
|
236
|
-
|
|
237
|
-
// Performance Telemetry
|
|
238
|
-
export {
|
|
239
|
-
IPerformanceClient,
|
|
240
|
-
PerformanceCallbackFunction,
|
|
241
|
-
InProgressPerformanceEvent,
|
|
242
|
-
QueueMeasurement,
|
|
243
|
-
} from "./telemetry/performance/IPerformanceClient";
|
|
244
|
-
export {
|
|
245
|
-
IntFields,
|
|
246
|
-
PerformanceEvent,
|
|
247
|
-
PerformanceEvents,
|
|
248
|
-
PerformanceEventStatus,
|
|
249
|
-
SubMeasurement,
|
|
250
|
-
} from "./telemetry/performance/PerformanceEvent";
|
|
251
|
-
export { IPerformanceMeasurement } from "./telemetry/performance/IPerformanceMeasurement";
|
|
252
|
-
export {
|
|
253
|
-
PerformanceClient,
|
|
254
|
-
PreQueueEvent,
|
|
255
|
-
} from "./telemetry/performance/PerformanceClient";
|
|
256
|
-
export { StubPerformanceClient } from "./telemetry/performance/StubPerformanceClient";
|
|
257
|
-
|
|
258
|
-
export { PopTokenGenerator } from "./crypto/PopTokenGenerator";
|
|
259
|
-
|
|
260
|
-
export { version } from "./packageMetadata";
|
|
11
|
+
/**
|
|
12
|
+
* This file is the entrypoint when importing without a specific subpath e.g. "import { someExport } from @azure/msal-common"
|
|
13
|
+
* Additional exports should be added to the applicable exports-*.ts files
|
|
14
|
+
*/
|
|
15
|
+
export * from "./exports-common.js";
|
|
16
|
+
export * from "./exports-browser-only.js";
|
|
17
|
+
export * from "./exports-node-only.js";
|
package/src/logger/Logger.ts
CHANGED
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import { LoggerOptions } from "../config/ClientConfiguration";
|
|
7
|
-
import { Constants } from "../utils/Constants";
|
|
6
|
+
import { LoggerOptions } from "../config/ClientConfiguration.js";
|
|
7
|
+
import { Constants } from "../utils/Constants.js";
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* Options for logger messages.
|
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
import {
|
|
7
7
|
ClientAuthErrorCodes,
|
|
8
8
|
createClientAuthError,
|
|
9
|
-
} from "../error/ClientAuthError";
|
|
10
|
-
import { NetworkResponse } from "./
|
|
9
|
+
} from "../error/ClientAuthError.js";
|
|
10
|
+
import { NetworkResponse } from "./NetworkResponse.js";
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
13
|
* Options allowed by network request APIs.
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import { ShrOptions } from "../crypto/SignedHttpRequest";
|
|
7
|
-
import { AuthenticationScheme } from "../utils/Constants";
|
|
6
|
+
import { ShrOptions } from "../crypto/SignedHttpRequest.js";
|
|
7
|
+
import { AuthenticationScheme } from "../utils/Constants.js";
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* Type representing a unique request thumbprint.
|
|
@@ -3,18 +3,18 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import { NetworkResponse } from "./
|
|
7
|
-
import { ServerAuthorizationTokenResponse } from "../response/ServerAuthorizationTokenResponse";
|
|
6
|
+
import { NetworkResponse } from "./NetworkResponse.js";
|
|
7
|
+
import { ServerAuthorizationTokenResponse } from "../response/ServerAuthorizationTokenResponse.js";
|
|
8
8
|
import {
|
|
9
9
|
HeaderNames,
|
|
10
10
|
ThrottlingConstants,
|
|
11
11
|
Constants,
|
|
12
|
-
} from "../utils/Constants";
|
|
13
|
-
import { CacheManager } from "../cache/CacheManager";
|
|
14
|
-
import { ServerError } from "../error/ServerError";
|
|
15
|
-
import { RequestThumbprint } from "./RequestThumbprint";
|
|
16
|
-
import { ThrottlingEntity } from "../cache/entities/ThrottlingEntity";
|
|
17
|
-
import { BaseAuthRequest } from "../request/BaseAuthRequest";
|
|
12
|
+
} from "../utils/Constants.js";
|
|
13
|
+
import { CacheManager } from "../cache/CacheManager.js";
|
|
14
|
+
import { ServerError } from "../error/ServerError.js";
|
|
15
|
+
import { RequestThumbprint } from "./RequestThumbprint.js";
|
|
16
|
+
import { ThrottlingEntity } from "../cache/entities/ThrottlingEntity.js";
|
|
17
|
+
import { BaseAuthRequest } from "../request/BaseAuthRequest.js";
|
|
18
18
|
|
|
19
19
|
/** @internal */
|
|
20
20
|
export class ThrottlingUtils {
|
package/src/packageMetadata.ts
CHANGED
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
import {
|
|
7
7
|
createClientConfigurationError,
|
|
8
8
|
ClientConfigurationErrorCodes,
|
|
9
|
-
} from "../error/ClientConfigurationError";
|
|
10
|
-
import { Constants, HeaderNames } from "../utils/Constants";
|
|
9
|
+
} from "../error/ClientConfigurationError.js";
|
|
10
|
+
import { Constants, HeaderNames } from "../utils/Constants.js";
|
|
11
11
|
|
|
12
12
|
type WWWAuthenticateChallenges = {
|
|
13
13
|
nonce?: string;
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import { AuthenticationScheme } from "../utils/Constants";
|
|
7
|
-
import { AzureCloudOptions } from "../config/ClientConfiguration";
|
|
8
|
-
import { StringDict } from "../utils/MsalTypes";
|
|
9
|
-
import { StoreInCache } from "./StoreInCache";
|
|
10
|
-
import { ShrOptions } from "../crypto/SignedHttpRequest";
|
|
6
|
+
import { AuthenticationScheme } from "../utils/Constants.js";
|
|
7
|
+
import { AzureCloudOptions } from "../config/ClientConfiguration.js";
|
|
8
|
+
import { StringDict } from "../utils/MsalTypes.js";
|
|
9
|
+
import { StoreInCache } from "./StoreInCache.js";
|
|
10
|
+
import { ShrOptions } from "../crypto/SignedHttpRequest.js";
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
13
|
* BaseAuthRequest
|
|
@@ -29,6 +29,7 @@ import { ShrOptions } from "../crypto/SignedHttpRequest";
|
|
|
29
29
|
* - storeInCache - Object containing boolean values indicating whether to store tokens in the cache or not (default is true)
|
|
30
30
|
* - scenarioId - Scenario id to track custom user prompts
|
|
31
31
|
* - popKid - Key ID to identify the public key for PoP token request
|
|
32
|
+
* - embeddedClientId - Embedded client id. When specified, broker client id (brk_client_id) and redirect uri (brk_redirect_uri) params are set with values from the config, overriding the corresponding extra parameters, if present.
|
|
32
33
|
*/
|
|
33
34
|
export type BaseAuthRequest = {
|
|
34
35
|
authority: string;
|
|
@@ -50,4 +51,5 @@ export type BaseAuthRequest = {
|
|
|
50
51
|
storeInCache?: StoreInCache;
|
|
51
52
|
scenarioId?: string;
|
|
52
53
|
popKid?: string;
|
|
54
|
+
embeddedClientId?: string;
|
|
53
55
|
};
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import { BaseAuthRequest } from "./BaseAuthRequest";
|
|
7
|
-
import { StringDict } from "../utils/MsalTypes";
|
|
8
|
-
import { CcsCredential } from "../account/CcsCredential";
|
|
6
|
+
import { BaseAuthRequest } from "./BaseAuthRequest.js";
|
|
7
|
+
import { StringDict } from "../utils/MsalTypes.js";
|
|
8
|
+
import { CcsCredential } from "../account/CcsCredential.js";
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* Request object passed by user to acquire a token from the server exchanging a valid authorization code (second leg of OAuth2.0 Authorization Code flow)
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import { ResponseMode } from "../utils/Constants";
|
|
7
|
-
import { StringDict } from "../utils/MsalTypes";
|
|
8
|
-
import { BaseAuthRequest } from "./BaseAuthRequest";
|
|
9
|
-
import { AccountInfo } from "../account/AccountInfo";
|
|
6
|
+
import { ResponseMode } from "../utils/Constants.js";
|
|
7
|
+
import { StringDict } from "../utils/MsalTypes.js";
|
|
8
|
+
import { BaseAuthRequest } from "./BaseAuthRequest.js";
|
|
9
|
+
import { AccountInfo } from "../account/AccountInfo.js";
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
12
|
* Request object passed by user to retrieve a Code from the server (first leg of authorization code grant flow)
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import { BaseAuthRequest } from "./BaseAuthRequest";
|
|
7
|
-
import { AzureRegion } from "../authority/AzureRegion";
|
|
8
|
-
import { ClientAssertion } from "../account/ClientCredentials";
|
|
6
|
+
import { BaseAuthRequest } from "./BaseAuthRequest.js";
|
|
7
|
+
import { AzureRegion } from "../authority/AzureRegion.js";
|
|
8
|
+
import { ClientAssertion } from "../account/ClientCredentials.js";
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* CommonClientCredentialRequest
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import { DeviceCodeResponse } from "../response/DeviceCodeResponse";
|
|
7
|
-
import { StringDict } from "../utils/MsalTypes";
|
|
8
|
-
import { BaseAuthRequest } from "./BaseAuthRequest";
|
|
6
|
+
import { DeviceCodeResponse } from "../response/DeviceCodeResponse.js";
|
|
7
|
+
import { StringDict } from "../utils/MsalTypes.js";
|
|
8
|
+
import { BaseAuthRequest } from "./BaseAuthRequest.js";
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* Parameters for Oauth2 device code flow.
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import { AccountInfo } from "../account/AccountInfo";
|
|
7
|
-
import { StringDict } from "../utils/MsalTypes";
|
|
6
|
+
import { AccountInfo } from "../account/AccountInfo.js";
|
|
7
|
+
import { StringDict } from "../utils/MsalTypes.js";
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* CommonEndSessionRequest
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import { BaseAuthRequest } from "./BaseAuthRequest";
|
|
7
|
-
import { CcsCredential } from "../account/CcsCredential";
|
|
8
|
-
import { StringDict } from "../utils/MsalTypes";
|
|
6
|
+
import { BaseAuthRequest } from "./BaseAuthRequest.js";
|
|
7
|
+
import { CcsCredential } from "../account/CcsCredential.js";
|
|
8
|
+
import { StringDict } from "../utils/MsalTypes.js";
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* CommonRefreshTokenRequest
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import { AccountInfo } from "../account/AccountInfo";
|
|
7
|
-
import { StringDict } from "../utils/MsalTypes";
|
|
8
|
-
import { BaseAuthRequest } from "./BaseAuthRequest";
|
|
6
|
+
import { AccountInfo } from "../account/AccountInfo.js";
|
|
7
|
+
import { StringDict } from "../utils/MsalTypes.js";
|
|
8
|
+
import { BaseAuthRequest } from "./BaseAuthRequest.js";
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* SilentFlow parameters passed by the user to retrieve credentials silently
|
|
@@ -13,28 +13,59 @@ import {
|
|
|
13
13
|
OIDC_DEFAULT_SCOPES,
|
|
14
14
|
ThrottlingConstants,
|
|
15
15
|
HeaderNames,
|
|
16
|
-
} from "../utils/Constants";
|
|
17
|
-
import * as AADServerParamKeys from "../constants/AADServerParamKeys";
|
|
18
|
-
import { ScopeSet } from "./ScopeSet";
|
|
16
|
+
} from "../utils/Constants.js";
|
|
17
|
+
import * as AADServerParamKeys from "../constants/AADServerParamKeys.js";
|
|
18
|
+
import { ScopeSet } from "./ScopeSet.js";
|
|
19
19
|
import {
|
|
20
20
|
createClientConfigurationError,
|
|
21
21
|
ClientConfigurationErrorCodes,
|
|
22
|
-
} from "../error/ClientConfigurationError";
|
|
23
|
-
import { StringDict } from "../utils/MsalTypes";
|
|
24
|
-
import { RequestValidator } from "./RequestValidator";
|
|
22
|
+
} from "../error/ClientConfigurationError.js";
|
|
23
|
+
import { StringDict } from "../utils/MsalTypes.js";
|
|
24
|
+
import { RequestValidator } from "./RequestValidator.js";
|
|
25
25
|
import {
|
|
26
26
|
ApplicationTelemetry,
|
|
27
27
|
LibraryInfo,
|
|
28
|
-
} from "../config/ClientConfiguration";
|
|
29
|
-
import { ServerTelemetryManager } from "../telemetry/server/ServerTelemetryManager";
|
|
30
|
-
import { ClientInfo } from "../account/ClientInfo";
|
|
28
|
+
} from "../config/ClientConfiguration.js";
|
|
29
|
+
import { ServerTelemetryManager } from "../telemetry/server/ServerTelemetryManager.js";
|
|
30
|
+
import { ClientInfo } from "../account/ClientInfo.js";
|
|
31
|
+
import { IPerformanceClient } from "../telemetry/performance/IPerformanceClient.js";
|
|
32
|
+
|
|
33
|
+
function instrumentBrokerParams(
|
|
34
|
+
parameters: Map<string, string>,
|
|
35
|
+
correlationId?: string,
|
|
36
|
+
performanceClient?: IPerformanceClient
|
|
37
|
+
) {
|
|
38
|
+
if (!correlationId) {
|
|
39
|
+
return;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
const clientId = parameters.get(AADServerParamKeys.CLIENT_ID);
|
|
43
|
+
if (clientId && parameters.has(AADServerParamKeys.BROKER_CLIENT_ID)) {
|
|
44
|
+
performanceClient?.addFields(
|
|
45
|
+
{
|
|
46
|
+
embeddedClientId: clientId,
|
|
47
|
+
embeddedRedirectUri: parameters.get(
|
|
48
|
+
AADServerParamKeys.REDIRECT_URI
|
|
49
|
+
),
|
|
50
|
+
},
|
|
51
|
+
correlationId
|
|
52
|
+
);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
31
55
|
|
|
32
56
|
/** @internal */
|
|
33
57
|
export class RequestParameterBuilder {
|
|
34
58
|
private parameters: Map<string, string>;
|
|
59
|
+
private readonly performanceClient?: IPerformanceClient;
|
|
60
|
+
private readonly correlationId?: string;
|
|
35
61
|
|
|
36
|
-
constructor(
|
|
62
|
+
constructor(
|
|
63
|
+
correlationId?: string,
|
|
64
|
+
performanceClient?: IPerformanceClient
|
|
65
|
+
) {
|
|
37
66
|
this.parameters = new Map<string, string>();
|
|
67
|
+
this.performanceClient = performanceClient;
|
|
68
|
+
this.correlationId = correlationId;
|
|
38
69
|
}
|
|
39
70
|
|
|
40
71
|
/**
|
|
@@ -598,6 +629,19 @@ export class RequestParameterBuilder {
|
|
|
598
629
|
);
|
|
599
630
|
}
|
|
600
631
|
|
|
632
|
+
addBrokerParameters(params: {
|
|
633
|
+
brokerClientId: string;
|
|
634
|
+
brokerRedirectUri: string;
|
|
635
|
+
}): void {
|
|
636
|
+
const brokerParams: StringDict = {};
|
|
637
|
+
brokerParams[AADServerParamKeys.BROKER_CLIENT_ID] =
|
|
638
|
+
params.brokerClientId;
|
|
639
|
+
brokerParams[AADServerParamKeys.BROKER_REDIRECT_URI] =
|
|
640
|
+
params.brokerRedirectUri;
|
|
641
|
+
|
|
642
|
+
this.addExtraQueryParameters(brokerParams);
|
|
643
|
+
}
|
|
644
|
+
|
|
601
645
|
/**
|
|
602
646
|
* Utility to create a URL from the params map
|
|
603
647
|
*/
|
|
@@ -608,6 +652,12 @@ export class RequestParameterBuilder {
|
|
|
608
652
|
queryParameterArray.push(`${key}=${value}`);
|
|
609
653
|
});
|
|
610
654
|
|
|
655
|
+
instrumentBrokerParams(
|
|
656
|
+
this.parameters,
|
|
657
|
+
this.correlationId,
|
|
658
|
+
this.performanceClient
|
|
659
|
+
);
|
|
660
|
+
|
|
611
661
|
return queryParameterArray.join("&");
|
|
612
662
|
}
|
|
613
663
|
}
|
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
import {
|
|
7
7
|
createClientConfigurationError,
|
|
8
8
|
ClientConfigurationErrorCodes,
|
|
9
|
-
} from "../error/ClientConfigurationError";
|
|
10
|
-
import { PromptValue, CodeChallengeMethodValues } from "../utils/Constants";
|
|
9
|
+
} from "../error/ClientConfigurationError.js";
|
|
10
|
+
import { PromptValue, CodeChallengeMethodValues } from "../utils/Constants.js";
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
13
|
* Validates server consumable params from the "request" objects
|
package/src/request/ScopeSet.ts
CHANGED
|
@@ -6,13 +6,13 @@
|
|
|
6
6
|
import {
|
|
7
7
|
createClientConfigurationError,
|
|
8
8
|
ClientConfigurationErrorCodes,
|
|
9
|
-
} from "../error/ClientConfigurationError";
|
|
10
|
-
import { StringUtils } from "../utils/StringUtils";
|
|
9
|
+
} from "../error/ClientConfigurationError.js";
|
|
10
|
+
import { StringUtils } from "../utils/StringUtils.js";
|
|
11
11
|
import {
|
|
12
12
|
ClientAuthErrorCodes,
|
|
13
13
|
createClientAuthError,
|
|
14
|
-
} from "../error/ClientAuthError";
|
|
15
|
-
import { Constants, OIDC_SCOPES } from "../utils/Constants";
|
|
14
|
+
} from "../error/ClientAuthError.js";
|
|
15
|
+
import { Constants, OIDC_SCOPES } from "../utils/Constants.js";
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
18
|
* The ScopeSet class creates a set of scopes. Scopes are case-insensitive, unique values, so the Set object in JS makes
|