@azure/msal-common 15.13.3 → 16.0.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/account/AccountInfo.d.ts +0 -1
- package/dist/account/AccountInfo.d.ts.map +1 -1
- package/dist/account/AccountInfo.mjs +1 -1
- package/dist/account/AccountInfo.mjs.map +1 -1
- package/dist/account/AuthToken.d.ts.map +1 -1
- package/dist/account/AuthToken.mjs +2 -3
- package/dist/account/AuthToken.mjs.map +1 -1
- package/dist/account/CcsCredential.mjs +1 -1
- package/dist/account/ClientInfo.d.ts.map +1 -1
- package/dist/account/ClientInfo.mjs +4 -6
- package/dist/account/ClientInfo.mjs.map +1 -1
- package/dist/account/TokenClaims.mjs +1 -1
- package/dist/authority/Authority.d.ts +2 -2
- package/dist/authority/Authority.d.ts.map +1 -1
- package/dist/authority/Authority.mjs +89 -105
- package/dist/authority/Authority.mjs.map +1 -1
- package/dist/authority/AuthorityFactory.d.ts +6 -2
- package/dist/authority/AuthorityFactory.d.ts.map +1 -1
- package/dist/authority/AuthorityFactory.mjs +8 -5
- package/dist/authority/AuthorityFactory.mjs.map +1 -1
- package/dist/authority/AuthorityMetadata.d.ts +2 -2
- package/dist/authority/AuthorityMetadata.d.ts.map +1 -1
- package/dist/authority/AuthorityMetadata.mjs +34 -31
- package/dist/authority/AuthorityMetadata.mjs.map +1 -1
- package/dist/authority/AuthorityOptions.d.ts +0 -1
- package/dist/authority/AuthorityOptions.d.ts.map +1 -1
- package/dist/authority/AuthorityOptions.mjs +1 -1
- package/dist/authority/AuthorityOptions.mjs.map +1 -1
- package/dist/authority/AuthorityType.mjs +1 -1
- package/dist/authority/CloudInstanceDiscoveryErrorResponse.mjs +1 -1
- package/dist/authority/CloudInstanceDiscoveryResponse.mjs +1 -1
- package/dist/authority/OIDCOptions.d.ts +2 -2
- package/dist/authority/OIDCOptions.d.ts.map +1 -1
- package/dist/authority/OpenIdConfigResponse.mjs +1 -1
- package/dist/authority/ProtocolMode.mjs +1 -1
- package/dist/authority/RegionDiscovery.d.ts +3 -3
- package/dist/authority/RegionDiscovery.d.ts.map +1 -1
- package/dist/authority/RegionDiscovery.mjs +14 -15
- package/dist/authority/RegionDiscovery.mjs.map +1 -1
- package/dist/cache/CacheManager.d.ts +26 -19
- package/dist/cache/CacheManager.d.ts.map +1 -1
- package/dist/cache/CacheManager.mjs +70 -83
- package/dist/cache/CacheManager.mjs.map +1 -1
- package/dist/cache/entities/AccessTokenEntity.d.ts +0 -4
- package/dist/cache/entities/AccessTokenEntity.d.ts.map +1 -1
- package/dist/cache/entities/AccountEntity.d.ts +4 -56
- package/dist/cache/entities/AccountEntity.d.ts.map +1 -1
- package/dist/cache/entities/CredentialEntity.d.ts +0 -2
- package/dist/cache/entities/CredentialEntity.d.ts.map +1 -1
- package/dist/cache/interface/ICacheManager.d.ts +35 -17
- package/dist/cache/interface/ICacheManager.d.ts.map +1 -1
- package/dist/cache/persistence/TokenCacheContext.mjs +1 -1
- package/dist/cache/utils/AccountEntityUtils.d.ts +53 -0
- package/dist/cache/utils/AccountEntityUtils.d.ts.map +1 -0
- package/dist/cache/utils/AccountEntityUtils.mjs +192 -0
- package/dist/cache/utils/AccountEntityUtils.mjs.map +1 -0
- package/dist/cache/utils/CacheHelpers.d.ts +2 -2
- package/dist/cache/utils/CacheHelpers.d.ts.map +1 -1
- package/dist/cache/utils/CacheHelpers.mjs +10 -13
- package/dist/cache/utils/CacheHelpers.mjs.map +1 -1
- package/dist/cache/utils/CacheTypes.d.ts +0 -1
- package/dist/cache/utils/CacheTypes.d.ts.map +1 -1
- package/dist/client/AuthorizationCodeClient.d.ts +23 -4
- package/dist/client/AuthorizationCodeClient.d.ts.map +1 -1
- package/dist/client/AuthorizationCodeClient.mjs +63 -35
- package/dist/client/AuthorizationCodeClient.mjs.map +1 -1
- package/dist/client/RefreshTokenClient.d.ts +17 -4
- package/dist/client/RefreshTokenClient.d.ts.map +1 -1
- package/dist/client/RefreshTokenClient.mjs +51 -37
- package/dist/client/RefreshTokenClient.mjs.map +1 -1
- package/dist/client/SilentFlowClient.d.ts +17 -4
- package/dist/client/SilentFlowClient.d.ts.map +1 -1
- package/dist/client/SilentFlowClient.mjs +28 -15
- package/dist/client/SilentFlowClient.mjs.map +1 -1
- package/dist/config/ClientConfiguration.d.ts +2 -22
- package/dist/config/ClientConfiguration.d.ts.map +1 -1
- package/dist/config/ClientConfiguration.mjs +9 -15
- package/dist/config/ClientConfiguration.mjs.map +1 -1
- package/dist/constants/AADServerParamKeys.mjs +1 -1
- package/dist/crypto/ICrypto.d.ts +5 -3
- package/dist/crypto/ICrypto.d.ts.map +1 -1
- package/dist/crypto/ICrypto.mjs +1 -1
- package/dist/crypto/ICrypto.mjs.map +1 -1
- package/dist/crypto/JoseHeader.mjs +1 -1
- package/dist/crypto/PopTokenGenerator.d.ts +2 -2
- package/dist/crypto/PopTokenGenerator.d.ts.map +1 -1
- package/dist/crypto/PopTokenGenerator.mjs +3 -5
- package/dist/crypto/PopTokenGenerator.mjs.map +1 -1
- package/dist/error/AuthError.d.ts +1 -18
- package/dist/error/AuthError.d.ts.map +1 -1
- package/dist/error/AuthError.mjs +12 -34
- package/dist/error/AuthError.mjs.map +1 -1
- package/dist/error/AuthErrorCodes.mjs +1 -1
- package/dist/error/CacheError.d.ts +1 -6
- package/dist/error/CacheError.d.ts.map +1 -1
- package/dist/error/CacheError.mjs +6 -13
- package/dist/error/CacheError.mjs.map +1 -1
- package/dist/error/CacheErrorCodes.mjs +1 -1
- package/dist/error/ClientAuthError.d.ts +0 -229
- package/dist/error/ClientAuthError.d.ts.map +1 -1
- package/dist/error/ClientAuthError.mjs +3 -240
- package/dist/error/ClientAuthError.mjs.map +1 -1
- package/dist/error/ClientAuthErrorCodes.d.ts +0 -8
- package/dist/error/ClientAuthErrorCodes.d.ts.map +1 -1
- package/dist/error/ClientAuthErrorCodes.mjs +2 -10
- package/dist/error/ClientAuthErrorCodes.mjs.map +1 -1
- package/dist/error/ClientConfigurationError.d.ts +0 -128
- package/dist/error/ClientConfigurationError.d.ts.map +1 -1
- package/dist/error/ClientConfigurationError.mjs +3 -134
- package/dist/error/ClientConfigurationError.mjs.map +1 -1
- package/dist/error/ClientConfigurationErrorCodes.d.ts +0 -2
- package/dist/error/ClientConfigurationErrorCodes.d.ts.map +1 -1
- package/dist/error/ClientConfigurationErrorCodes.mjs +3 -5
- package/dist/error/ClientConfigurationErrorCodes.mjs.map +1 -1
- package/dist/error/InteractionRequiredAuthError.d.ts +1 -19
- package/dist/error/InteractionRequiredAuthError.d.ts.map +1 -1
- package/dist/error/InteractionRequiredAuthError.mjs +10 -35
- package/dist/error/InteractionRequiredAuthError.mjs.map +1 -1
- package/dist/error/InteractionRequiredAuthErrorCodes.mjs +1 -1
- package/dist/error/JoseHeaderError.d.ts +0 -4
- package/dist/error/JoseHeaderError.d.ts.map +1 -1
- package/dist/error/JoseHeaderError.mjs +3 -8
- package/dist/error/JoseHeaderError.mjs.map +1 -1
- package/dist/error/JoseHeaderErrorCodes.mjs +1 -1
- package/dist/error/NetworkError.mjs +1 -1
- package/dist/error/PlatformBrokerError.d.ts.map +1 -1
- package/dist/error/PlatformBrokerError.mjs +3 -2
- package/dist/error/PlatformBrokerError.mjs.map +1 -1
- package/dist/error/ServerError.mjs +1 -1
- package/dist/exports-browser-only.d.ts +4 -3
- package/dist/exports-browser-only.d.ts.map +1 -1
- package/dist/exports-common.d.ts +11 -8
- package/dist/exports-common.d.ts.map +1 -1
- package/dist/exports-node-only.d.ts +2 -4
- package/dist/exports-node-only.d.ts.map +1 -1
- package/dist/index-node.mjs +15 -10
- package/dist/index-node.mjs.map +1 -1
- package/dist/index.mjs +17 -11
- package/dist/index.mjs.map +1 -1
- package/dist/logger/Logger.d.ts +36 -13
- package/dist/logger/Logger.d.ts.map +1 -1
- package/dist/logger/Logger.mjs +105 -22
- package/dist/logger/Logger.mjs.map +1 -1
- package/dist/network/INetworkModule.mjs +1 -1
- package/dist/network/RequestThumbprint.mjs +2 -2
- package/dist/network/RequestThumbprint.mjs.map +1 -1
- package/dist/network/ThrottlingUtils.d.ts.map +1 -1
- package/dist/network/ThrottlingUtils.mjs +6 -7
- package/dist/network/ThrottlingUtils.mjs.map +1 -1
- package/dist/packageMetadata.d.ts +1 -1
- package/dist/packageMetadata.d.ts.map +1 -1
- package/dist/packageMetadata.mjs +2 -2
- package/dist/protocol/Authorize.d.ts +1 -2
- package/dist/protocol/Authorize.d.ts.map +1 -1
- package/dist/protocol/Authorize.mjs +14 -14
- package/dist/protocol/Authorize.mjs.map +1 -1
- package/dist/protocol/Token.d.ts +40 -0
- package/dist/protocol/Token.d.ts.map +1 -0
- package/dist/protocol/Token.mjs +129 -0
- package/dist/protocol/Token.mjs.map +1 -0
- package/dist/request/AuthenticationHeaderParser.d.ts.map +1 -1
- package/dist/request/AuthenticationHeaderParser.mjs +3 -3
- package/dist/request/AuthenticationHeaderParser.mjs.map +1 -1
- package/dist/request/BaseAuthRequest.d.ts +4 -8
- package/dist/request/BaseAuthRequest.d.ts.map +1 -1
- package/dist/request/CommonAuthorizationCodeRequest.d.ts +2 -1
- package/dist/request/CommonAuthorizationCodeRequest.d.ts.map +1 -1
- package/dist/request/CommonAuthorizationUrlRequest.d.ts +2 -4
- package/dist/request/CommonAuthorizationUrlRequest.d.ts.map +1 -1
- package/dist/request/CommonRefreshTokenRequest.d.ts +2 -1
- package/dist/request/CommonRefreshTokenRequest.d.ts.map +1 -1
- package/dist/request/CommonSilentFlowRequest.d.ts +2 -1
- package/dist/request/CommonSilentFlowRequest.d.ts.map +1 -1
- package/dist/request/RequestParameterBuilder.d.ts +6 -12
- package/dist/request/RequestParameterBuilder.d.ts.map +1 -1
- package/dist/request/RequestParameterBuilder.mjs +11 -24
- package/dist/request/RequestParameterBuilder.mjs.map +1 -1
- package/dist/request/ScopeSet.mjs +5 -5
- package/dist/request/ScopeSet.mjs.map +1 -1
- package/dist/response/AuthenticationResult.d.ts +1 -1
- package/dist/response/AuthenticationResult.d.ts.map +1 -1
- package/dist/response/ResponseHandler.d.ts +7 -6
- package/dist/response/ResponseHandler.d.ts.map +1 -1
- package/dist/response/ResponseHandler.mjs +41 -43
- package/dist/response/ResponseHandler.mjs.map +1 -1
- package/dist/telemetry/performance/IPerformanceClient.d.ts +0 -29
- package/dist/telemetry/performance/IPerformanceClient.d.ts.map +1 -1
- package/dist/telemetry/performance/PerformanceClient.d.ts +5 -81
- package/dist/telemetry/performance/PerformanceClient.d.ts.map +1 -1
- package/dist/telemetry/performance/PerformanceClient.mjs +24 -170
- package/dist/telemetry/performance/PerformanceClient.mjs.map +1 -1
- package/dist/telemetry/performance/PerformanceEvent.d.ts +1 -280
- package/dist/telemetry/performance/PerformanceEvent.d.ts.map +1 -1
- package/dist/telemetry/performance/PerformanceEvent.mjs +2 -483
- package/dist/telemetry/performance/PerformanceEvent.mjs.map +1 -1
- package/dist/telemetry/performance/PerformanceEvents.d.ts +66 -0
- package/dist/telemetry/performance/PerformanceEvents.d.ts.map +1 -0
- package/dist/telemetry/performance/PerformanceEvents.mjs +74 -0
- package/dist/telemetry/performance/PerformanceEvents.mjs.map +1 -0
- package/dist/telemetry/performance/StubPerformanceClient.d.ts +0 -4
- package/dist/telemetry/performance/StubPerformanceClient.d.ts.map +1 -1
- package/dist/telemetry/performance/StubPerformanceClient.mjs +2 -26
- package/dist/telemetry/performance/StubPerformanceClient.mjs.map +1 -1
- package/dist/telemetry/server/ServerTelemetryManager.d.ts +2 -2
- package/dist/telemetry/server/ServerTelemetryManager.d.ts.map +1 -1
- package/dist/telemetry/server/ServerTelemetryManager.mjs +28 -30
- package/dist/telemetry/server/ServerTelemetryManager.mjs.map +1 -1
- package/dist/url/UrlString.d.ts +0 -5
- package/dist/url/UrlString.d.ts.map +1 -1
- package/dist/url/UrlString.mjs +5 -13
- package/dist/url/UrlString.mjs.map +1 -1
- package/dist/utils/ClientAssertionUtils.mjs +1 -1
- package/dist/utils/Constants.d.ts +81 -112
- package/dist/utils/Constants.d.ts.map +1 -1
- package/dist/utils/Constants.mjs +100 -127
- package/dist/utils/Constants.mjs.map +1 -1
- package/dist/utils/FunctionWrappers.d.ts +2 -2
- package/dist/utils/FunctionWrappers.d.ts.map +1 -1
- package/dist/utils/FunctionWrappers.mjs +19 -20
- package/dist/utils/FunctionWrappers.mjs.map +1 -1
- package/dist/utils/ProtocolUtils.d.ts +14 -35
- package/dist/utils/ProtocolUtils.d.ts.map +1 -1
- package/dist/utils/ProtocolUtils.mjs +57 -61
- package/dist/utils/ProtocolUtils.mjs.map +1 -1
- package/dist/utils/StateTypes.d.ts +15 -0
- package/dist/utils/StateTypes.d.ts.map +1 -0
- package/dist/utils/StringUtils.mjs +1 -1
- package/dist/utils/TimeUtils.mjs +1 -1
- package/dist/utils/UrlUtils.d.ts +1 -2
- package/dist/utils/UrlUtils.d.ts.map +1 -1
- package/dist/utils/UrlUtils.mjs +3 -10
- package/dist/utils/UrlUtils.mjs.map +1 -1
- package/lib/index-browser.cjs +26 -206
- package/lib/index-browser.cjs.map +1 -1
- package/lib/{index-node-4Jss3kYh.js → index-node-B7mR4APO.js} +3494 -4270
- package/lib/index-node-B7mR4APO.js.map +1 -0
- package/lib/index-node.cjs +6 -34
- package/lib/index-node.cjs.map +1 -1
- package/lib/index.cjs +5 -34
- package/lib/index.cjs.map +1 -1
- package/lib/types/account/AccountInfo.d.ts +0 -1
- package/lib/types/account/AccountInfo.d.ts.map +1 -1
- package/lib/types/account/AuthToken.d.ts.map +1 -1
- package/lib/types/account/ClientInfo.d.ts.map +1 -1
- package/lib/types/authority/Authority.d.ts +2 -2
- package/lib/types/authority/Authority.d.ts.map +1 -1
- package/lib/types/authority/AuthorityFactory.d.ts +6 -2
- package/lib/types/authority/AuthorityFactory.d.ts.map +1 -1
- package/lib/types/authority/AuthorityMetadata.d.ts +2 -2
- package/lib/types/authority/AuthorityMetadata.d.ts.map +1 -1
- package/lib/types/authority/AuthorityOptions.d.ts +0 -1
- package/lib/types/authority/AuthorityOptions.d.ts.map +1 -1
- package/lib/types/authority/OIDCOptions.d.ts +2 -2
- package/lib/types/authority/OIDCOptions.d.ts.map +1 -1
- package/lib/types/authority/RegionDiscovery.d.ts +3 -3
- package/lib/types/authority/RegionDiscovery.d.ts.map +1 -1
- package/lib/types/cache/CacheManager.d.ts +26 -19
- package/lib/types/cache/CacheManager.d.ts.map +1 -1
- package/lib/types/cache/entities/AccessTokenEntity.d.ts +0 -4
- package/lib/types/cache/entities/AccessTokenEntity.d.ts.map +1 -1
- package/lib/types/cache/entities/AccountEntity.d.ts +4 -56
- package/lib/types/cache/entities/AccountEntity.d.ts.map +1 -1
- package/lib/types/cache/entities/CredentialEntity.d.ts +0 -2
- package/lib/types/cache/entities/CredentialEntity.d.ts.map +1 -1
- package/lib/types/cache/interface/ICacheManager.d.ts +35 -17
- package/lib/types/cache/interface/ICacheManager.d.ts.map +1 -1
- package/lib/types/cache/utils/AccountEntityUtils.d.ts +53 -0
- package/lib/types/cache/utils/AccountEntityUtils.d.ts.map +1 -0
- package/lib/types/cache/utils/CacheHelpers.d.ts +2 -2
- package/lib/types/cache/utils/CacheHelpers.d.ts.map +1 -1
- package/lib/types/cache/utils/CacheTypes.d.ts +0 -1
- package/lib/types/cache/utils/CacheTypes.d.ts.map +1 -1
- package/lib/types/client/AuthorizationCodeClient.d.ts +23 -4
- package/lib/types/client/AuthorizationCodeClient.d.ts.map +1 -1
- package/lib/types/client/RefreshTokenClient.d.ts +17 -4
- package/lib/types/client/RefreshTokenClient.d.ts.map +1 -1
- package/lib/types/client/SilentFlowClient.d.ts +17 -4
- package/lib/types/client/SilentFlowClient.d.ts.map +1 -1
- package/lib/types/config/ClientConfiguration.d.ts +2 -22
- package/lib/types/config/ClientConfiguration.d.ts.map +1 -1
- package/lib/types/crypto/ICrypto.d.ts +5 -3
- package/lib/types/crypto/ICrypto.d.ts.map +1 -1
- package/lib/types/crypto/PopTokenGenerator.d.ts +2 -2
- package/lib/types/crypto/PopTokenGenerator.d.ts.map +1 -1
- package/lib/types/error/AuthError.d.ts +1 -18
- package/lib/types/error/AuthError.d.ts.map +1 -1
- package/lib/types/error/CacheError.d.ts +1 -6
- package/lib/types/error/CacheError.d.ts.map +1 -1
- package/lib/types/error/ClientAuthError.d.ts +0 -229
- package/lib/types/error/ClientAuthError.d.ts.map +1 -1
- package/lib/types/error/ClientAuthErrorCodes.d.ts +0 -8
- package/lib/types/error/ClientAuthErrorCodes.d.ts.map +1 -1
- package/lib/types/error/ClientConfigurationError.d.ts +0 -128
- package/lib/types/error/ClientConfigurationError.d.ts.map +1 -1
- package/lib/types/error/ClientConfigurationErrorCodes.d.ts +0 -2
- package/lib/types/error/ClientConfigurationErrorCodes.d.ts.map +1 -1
- package/lib/types/error/InteractionRequiredAuthError.d.ts +1 -19
- package/lib/types/error/InteractionRequiredAuthError.d.ts.map +1 -1
- package/lib/types/error/JoseHeaderError.d.ts +0 -4
- package/lib/types/error/JoseHeaderError.d.ts.map +1 -1
- package/lib/types/error/PlatformBrokerError.d.ts.map +1 -1
- package/lib/types/exports-browser-only.d.ts +4 -3
- package/lib/types/exports-browser-only.d.ts.map +1 -1
- package/lib/types/exports-common.d.ts +11 -8
- package/lib/types/exports-common.d.ts.map +1 -1
- package/lib/types/exports-node-only.d.ts +2 -4
- package/lib/types/exports-node-only.d.ts.map +1 -1
- package/lib/types/logger/Logger.d.ts +36 -13
- package/lib/types/logger/Logger.d.ts.map +1 -1
- package/lib/types/network/ThrottlingUtils.d.ts.map +1 -1
- package/lib/types/packageMetadata.d.ts +1 -1
- package/lib/types/packageMetadata.d.ts.map +1 -1
- package/lib/types/protocol/Authorize.d.ts +1 -2
- package/lib/types/protocol/Authorize.d.ts.map +1 -1
- package/lib/types/protocol/Token.d.ts +40 -0
- package/lib/types/protocol/Token.d.ts.map +1 -0
- package/lib/types/request/AuthenticationHeaderParser.d.ts.map +1 -1
- package/lib/types/request/BaseAuthRequest.d.ts +4 -8
- package/lib/types/request/BaseAuthRequest.d.ts.map +1 -1
- package/lib/types/request/CommonAuthorizationCodeRequest.d.ts +2 -1
- package/lib/types/request/CommonAuthorizationCodeRequest.d.ts.map +1 -1
- package/lib/types/request/CommonAuthorizationUrlRequest.d.ts +2 -4
- package/lib/types/request/CommonAuthorizationUrlRequest.d.ts.map +1 -1
- package/lib/types/request/CommonRefreshTokenRequest.d.ts +2 -1
- package/lib/types/request/CommonRefreshTokenRequest.d.ts.map +1 -1
- package/lib/types/request/CommonSilentFlowRequest.d.ts +2 -1
- package/lib/types/request/CommonSilentFlowRequest.d.ts.map +1 -1
- package/lib/types/request/RequestParameterBuilder.d.ts +6 -12
- package/lib/types/request/RequestParameterBuilder.d.ts.map +1 -1
- package/lib/types/response/AuthenticationResult.d.ts +1 -1
- package/lib/types/response/AuthenticationResult.d.ts.map +1 -1
- package/lib/types/response/ResponseHandler.d.ts +7 -6
- package/lib/types/response/ResponseHandler.d.ts.map +1 -1
- package/lib/types/telemetry/performance/IPerformanceClient.d.ts +0 -29
- package/lib/types/telemetry/performance/IPerformanceClient.d.ts.map +1 -1
- package/lib/types/telemetry/performance/PerformanceClient.d.ts +5 -81
- package/lib/types/telemetry/performance/PerformanceClient.d.ts.map +1 -1
- package/lib/types/telemetry/performance/PerformanceEvent.d.ts +1 -280
- package/lib/types/telemetry/performance/PerformanceEvent.d.ts.map +1 -1
- package/lib/types/telemetry/performance/PerformanceEvents.d.ts +66 -0
- package/lib/types/telemetry/performance/PerformanceEvents.d.ts.map +1 -0
- package/lib/types/telemetry/performance/StubPerformanceClient.d.ts +0 -4
- package/lib/types/telemetry/performance/StubPerformanceClient.d.ts.map +1 -1
- package/lib/types/telemetry/server/ServerTelemetryManager.d.ts +2 -2
- package/lib/types/telemetry/server/ServerTelemetryManager.d.ts.map +1 -1
- package/lib/types/url/UrlString.d.ts +0 -5
- package/lib/types/url/UrlString.d.ts.map +1 -1
- package/lib/types/utils/Constants.d.ts +81 -112
- package/lib/types/utils/Constants.d.ts.map +1 -1
- package/lib/types/utils/FunctionWrappers.d.ts +2 -2
- package/lib/types/utils/FunctionWrappers.d.ts.map +1 -1
- package/lib/types/utils/ProtocolUtils.d.ts +14 -35
- package/lib/types/utils/ProtocolUtils.d.ts.map +1 -1
- package/lib/types/utils/StateTypes.d.ts +15 -0
- package/lib/types/utils/StateTypes.d.ts.map +1 -0
- package/lib/types/utils/UrlUtils.d.ts +1 -2
- package/lib/types/utils/UrlUtils.d.ts.map +1 -1
- package/package.json +7 -7
- package/src/account/AccountInfo.ts +0 -1
- package/src/account/AuthToken.ts +1 -2
- package/src/account/ClientInfo.ts +3 -6
- package/src/authority/Authority.ts +145 -146
- package/src/authority/AuthorityFactory.ts +7 -7
- package/src/authority/AuthorityMetadata.ts +54 -47
- package/src/authority/AuthorityOptions.ts +0 -1
- package/src/authority/OIDCOptions.ts +2 -2
- package/src/authority/RegionDiscovery.ts +20 -33
- package/src/cache/CacheManager.ts +177 -128
- package/src/cache/entities/AccessTokenEntity.ts +0 -4
- package/src/cache/entities/AccountEntity.ts +4 -292
- package/src/cache/entities/CredentialEntity.ts +0 -2
- package/src/cache/interface/ICacheManager.ts +55 -20
- package/src/cache/utils/AccountEntityUtils.ts +258 -0
- package/src/cache/utils/CacheHelpers.ts +23 -37
- package/src/cache/utils/CacheTypes.ts +0 -1
- package/src/client/AuthorizationCodeClient.ts +146 -58
- package/src/client/RefreshTokenClient.ts +108 -65
- package/src/client/SilentFlowClient.ts +74 -25
- package/src/config/ClientConfiguration.ts +9 -37
- package/src/crypto/ICrypto.ts +5 -3
- package/src/crypto/PopTokenGenerator.ts +3 -13
- package/src/error/AuthError.ts +11 -30
- package/src/error/CacheError.ts +4 -15
- package/src/error/ClientAuthError.ts +1 -317
- package/src/error/ClientAuthErrorCodes.ts +0 -8
- package/src/error/ClientConfigurationError.ts +1 -202
- package/src/error/ClientConfigurationErrorCodes.ts +0 -4
- package/src/error/InteractionRequiredAuthError.ts +8 -48
- package/src/error/JoseHeaderError.ts +1 -8
- package/src/error/PlatformBrokerError.ts +2 -1
- package/src/exports-browser-only.ts +2 -6
- package/src/exports-common.ts +8 -40
- package/src/exports-node-only.ts +5 -4
- package/src/logger/Logger.ts +174 -39
- package/src/network/RequestThumbprint.ts +1 -1
- package/src/network/ThrottlingUtils.ts +12 -15
- package/src/packageMetadata.ts +1 -1
- package/src/protocol/Authorize.ts +24 -20
- package/src/protocol/Token.ts +230 -0
- package/src/request/AuthenticationHeaderParser.ts +2 -4
- package/src/request/BaseAuthRequest.ts +4 -8
- package/src/request/CommonAuthorizationCodeRequest.ts +2 -1
- package/src/request/CommonAuthorizationUrlRequest.ts +2 -4
- package/src/request/CommonRefreshTokenRequest.ts +2 -1
- package/src/request/CommonSilentFlowRequest.ts +2 -1
- package/src/request/RequestParameterBuilder.ts +35 -50
- package/src/request/ScopeSet.ts +4 -4
- package/src/response/AuthenticationResult.ts +1 -1
- package/src/response/ResponseHandler.ts +56 -60
- package/src/telemetry/performance/IPerformanceClient.ts +0 -40
- package/src/telemetry/performance/PerformanceClient.ts +26 -295
- package/src/telemetry/performance/PerformanceEvent.ts +3 -582
- package/src/telemetry/performance/PerformanceEvents.ts +98 -0
- package/src/telemetry/performance/StubPerformanceClient.ts +0 -16
- package/src/telemetry/server/ServerTelemetryManager.ts +33 -44
- package/src/url/UrlString.ts +3 -12
- package/src/utils/Constants.ts +103 -140
- package/src/utils/FunctionWrappers.ts +28 -29
- package/src/utils/ProtocolUtils.ts +67 -93
- package/src/utils/StateTypes.ts +20 -0
- package/src/utils/UrlUtils.ts +2 -15
- package/dist/cache/entities/AccountEntity.mjs +0 -232
- package/dist/cache/entities/AccountEntity.mjs.map +0 -1
- package/dist/client/BaseClient.d.ts +0 -59
- package/dist/client/BaseClient.d.ts.map +0 -1
- package/dist/client/BaseClient.mjs +0 -167
- package/dist/client/BaseClient.mjs.map +0 -1
- package/dist/index-browser.mjs +0 -72
- package/dist/index-browser.mjs.map +0 -1
- package/dist/request/CommonClientCredentialRequest.d.ts +0 -18
- package/dist/request/CommonClientCredentialRequest.d.ts.map +0 -1
- package/dist/request/CommonDeviceCodeRequest.d.ts +0 -22
- package/dist/request/CommonDeviceCodeRequest.d.ts.map +0 -1
- package/dist/request/CommonOnBehalfOfRequest.d.ts +0 -14
- package/dist/request/CommonOnBehalfOfRequest.d.ts.map +0 -1
- package/dist/request/CommonUsernamePasswordRequest.d.ts +0 -18
- package/dist/request/CommonUsernamePasswordRequest.d.ts.map +0 -1
- package/lib/index-node-4Jss3kYh.js.map +0 -1
- package/lib/types/client/BaseClient.d.ts +0 -59
- package/lib/types/client/BaseClient.d.ts.map +0 -1
- package/lib/types/request/CommonClientCredentialRequest.d.ts +0 -18
- package/lib/types/request/CommonClientCredentialRequest.d.ts.map +0 -1
- package/lib/types/request/CommonDeviceCodeRequest.d.ts +0 -22
- package/lib/types/request/CommonDeviceCodeRequest.d.ts.map +0 -1
- package/lib/types/request/CommonOnBehalfOfRequest.d.ts +0 -14
- package/lib/types/request/CommonOnBehalfOfRequest.d.ts.map +0 -1
- package/lib/types/request/CommonUsernamePasswordRequest.d.ts +0 -18
- package/lib/types/request/CommonUsernamePasswordRequest.d.ts.map +0 -1
- package/src/client/BaseClient.ts +0 -320
- package/src/request/CommonClientCredentialRequest.ts +0 -23
- package/src/request/CommonDeviceCodeRequest.ts +0 -31
- package/src/request/CommonOnBehalfOfRequest.ts +0 -19
- package/src/request/CommonUsernamePasswordRequest.ts +0 -23
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"exports-common.d.ts","sourceRoot":"","sources":["../../src/exports-common.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,SAAS,MAAM,wBAAwB,CAAC;AACpD,OAAO,KAAK,gBAAgB,MAAM,iCAAiC,CAAC;AACpE,OAAO,KAAK,YAAY,MAAM,+BAA+B,CAAC;AAC9D,OAAO,KAAK,SAAS,MAAM,sBAAsB,CAAC;AAClD,OAAO,KAAK,QAAQ,MAAM,qBAAqB,CAAC;AAChD,OAAO,KAAK,kBAAkB,MAAM,mCAAmC,CAAC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AE,OAAO,EAAE,MAAM,sBAAsB,CAAC"}
|
|
@@ -5,14 +5,12 @@ export { INativeBrokerPlugin } from "./broker/nativeBroker/INativeBrokerPlugin.j
|
|
|
5
5
|
export { ICachePlugin } from "./cache/interface/ICachePlugin.js";
|
|
6
6
|
export { TokenCacheContext } from "./cache/persistence/TokenCacheContext.js";
|
|
7
7
|
export { ISerializableTokenCache } from "./cache/interface/ISerializableTokenCache.js";
|
|
8
|
-
export { CommonClientCredentialRequest } from "./request/CommonClientCredentialRequest.js";
|
|
9
|
-
export { CommonOnBehalfOfRequest } from "./request/CommonOnBehalfOfRequest.js";
|
|
10
|
-
export { CommonDeviceCodeRequest } from "./request/CommonDeviceCodeRequest.js";
|
|
11
|
-
export { CommonUsernamePasswordRequest } from "./request/CommonUsernamePasswordRequest.js";
|
|
12
8
|
export { NativeRequest } from "./request/NativeRequest.js";
|
|
13
9
|
export { NativeSignOutRequest } from "./request/NativeSignOutRequest.js";
|
|
14
10
|
export { ClientAssertion, ClientAssertionConfig, ClientAssertionCallback, } from "./account/ClientCredentials.js";
|
|
15
11
|
export { DeviceCodeResponse, ServerDeviceCodeResponse, } from "./response/DeviceCodeResponse.js";
|
|
16
12
|
export { getClientAssertion } from "./utils/ClientAssertionUtils.js";
|
|
17
13
|
export { IGuidGenerator } from "./crypto/IGuidGenerator.js";
|
|
14
|
+
export { StubPerformanceClient } from "./telemetry/performance/StubPerformanceClient.js";
|
|
15
|
+
export { buildClientConfiguration, CommonClientConfiguration, } from "./config/ClientConfiguration.js";
|
|
18
16
|
//# sourceMappingURL=exports-node-only.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"exports-node-only.d.ts","sourceRoot":"","sources":["../../src/exports-node-only.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,oBAAoB,MAAM,iCAAiC,CAAC;AAExE,OAAO,EAAE,oBAAoB,EAAE,CAAC;AAEhC,OAAO,EACH,iBAAiB,EACjB,0BAA0B,EAC1B,sB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LoggerMessageOptions = {
|
|
|
6
6
|
logLevel: LogLevel;
|
|
7
7
|
containsPii?: boolean;
|
|
8
8
|
context?: string;
|
|
9
|
-
correlationId
|
|
9
|
+
correlationId: string;
|
|
10
10
|
};
|
|
11
11
|
/**
|
|
12
12
|
* Log message level.
|
|
@@ -24,11 +24,34 @@ export declare enum LogLevel {
|
|
|
24
24
|
export interface ILoggerCallback {
|
|
25
25
|
(level: LogLevel, message: string, containsPii: boolean): void;
|
|
26
26
|
}
|
|
27
|
+
/**
|
|
28
|
+
* Represents a single logged message with metadata
|
|
29
|
+
*/
|
|
30
|
+
export interface LoggedMessage {
|
|
31
|
+
hash: string;
|
|
32
|
+
level: LogLevel;
|
|
33
|
+
containsPii: boolean;
|
|
34
|
+
milliseconds: number;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Get all logs for specific correlation ID
|
|
38
|
+
* @param correlationId
|
|
39
|
+
*/
|
|
40
|
+
export declare function getLogsFromCache(correlationId: string): LoggedMessage[];
|
|
41
|
+
/**
|
|
42
|
+
* Get logs for correlation ID and flush them from cache
|
|
43
|
+
* Attaches logs with empty correlation id to the requested correlation logs
|
|
44
|
+
* @param correlationId
|
|
45
|
+
*/
|
|
46
|
+
export declare function getAndFlushLogsFromCache(correlationId: string): LoggedMessage[];
|
|
47
|
+
/**
|
|
48
|
+
* Get all correlation IDs that have logs
|
|
49
|
+
*/
|
|
50
|
+
export declare function getCachedCorrelationIds(): string[];
|
|
27
51
|
/**
|
|
28
52
|
* Class which facilitates logging of messages to a specific place.
|
|
29
53
|
*/
|
|
30
54
|
export declare class Logger {
|
|
31
|
-
private correlationId;
|
|
32
55
|
private level;
|
|
33
56
|
private piiLoggingEnabled;
|
|
34
57
|
private localCallback;
|
|
@@ -39,7 +62,7 @@ export declare class Logger {
|
|
|
39
62
|
/**
|
|
40
63
|
* Create new Logger with existing configurations.
|
|
41
64
|
*/
|
|
42
|
-
clone(packageName: string, packageVersion: string
|
|
65
|
+
clone(packageName: string, packageVersion: string): Logger;
|
|
43
66
|
/**
|
|
44
67
|
* Log message with required options.
|
|
45
68
|
*/
|
|
@@ -51,43 +74,43 @@ export declare class Logger {
|
|
|
51
74
|
/**
|
|
52
75
|
* Logs error messages.
|
|
53
76
|
*/
|
|
54
|
-
error(message: string, correlationId
|
|
77
|
+
error(message: string, correlationId: string): void;
|
|
55
78
|
/**
|
|
56
79
|
* Logs error messages with PII.
|
|
57
80
|
*/
|
|
58
|
-
errorPii(message: string, correlationId
|
|
81
|
+
errorPii(message: string, correlationId: string): void;
|
|
59
82
|
/**
|
|
60
83
|
* Logs warning messages.
|
|
61
84
|
*/
|
|
62
|
-
warning(message: string, correlationId
|
|
85
|
+
warning(message: string, correlationId: string): void;
|
|
63
86
|
/**
|
|
64
87
|
* Logs warning messages with PII.
|
|
65
88
|
*/
|
|
66
|
-
warningPii(message: string, correlationId
|
|
89
|
+
warningPii(message: string, correlationId: string): void;
|
|
67
90
|
/**
|
|
68
91
|
* Logs info messages.
|
|
69
92
|
*/
|
|
70
|
-
info(message: string, correlationId
|
|
93
|
+
info(message: string, correlationId: string): void;
|
|
71
94
|
/**
|
|
72
95
|
* Logs info messages with PII.
|
|
73
96
|
*/
|
|
74
|
-
infoPii(message: string, correlationId
|
|
97
|
+
infoPii(message: string, correlationId: string): void;
|
|
75
98
|
/**
|
|
76
99
|
* Logs verbose messages.
|
|
77
100
|
*/
|
|
78
|
-
verbose(message: string, correlationId
|
|
101
|
+
verbose(message: string, correlationId: string): void;
|
|
79
102
|
/**
|
|
80
103
|
* Logs verbose messages with PII.
|
|
81
104
|
*/
|
|
82
|
-
verbosePii(message: string, correlationId
|
|
105
|
+
verbosePii(message: string, correlationId: string): void;
|
|
83
106
|
/**
|
|
84
107
|
* Logs trace messages.
|
|
85
108
|
*/
|
|
86
|
-
trace(message: string, correlationId
|
|
109
|
+
trace(message: string, correlationId: string): void;
|
|
87
110
|
/**
|
|
88
111
|
* Logs trace messages with PII.
|
|
89
112
|
*/
|
|
90
|
-
tracePii(message: string, correlationId
|
|
113
|
+
tracePii(message: string, correlationId: string): void;
|
|
91
114
|
/**
|
|
92
115
|
* Returns whether PII Logging is enabled or not.
|
|
93
116
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Logger.d.ts","sourceRoot":"","sources":["../../../src/logger/Logger.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAC;
|
|
1
|
+
{"version":3,"file":"Logger.d.ts","sourceRoot":"","sources":["../../../src/logger/Logger.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAC;AAEtE;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG;IAC/B,QAAQ,EAAE,QAAQ,CAAC;IACnB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,aAAa,EAAE,MAAM,CAAC;CACzB,CAAC;AAEF;;GAEG;AACH,oBAAY,QAAQ;IAChB,KAAK,IAAA;IACL,OAAO,IAAA;IACP,IAAI,IAAA;IACJ,OAAO,IAAA;IACP,KAAK,IAAA;CACR;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAC5B,CAAC,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,OAAO,GAAG,IAAI,CAAC;CAClE;AAED;;GAEG;AACH,MAAM,WAAW,aAAa;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,QAAQ,CAAC;IAChB,WAAW,EAAE,OAAO,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;CACxB;AAoED;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,aAAa,EAAE,MAAM,GAAG,aAAa,EAAE,CAOvE;AAED;;;;GAIG;AACH,wBAAgB,wBAAwB,CACpC,aAAa,EAAE,MAAM,GACtB,aAAa,EAAE,CAQjB;AAED;;GAEG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,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,GAAG,IAAI;IAQxD;;OAEG;IACH,KAAK,CAAC,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,GAAG,IAAI;IAQnD;;OAEG;IACH,QAAQ,CAAC,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,GAAG,IAAI;IAQtD;;OAEG;IACH,mBAAmB,IAAI,OAAO;CAGjC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ThrottlingUtils.d.ts","sourceRoot":"","sources":["../../../src/network/ThrottlingUtils.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,gCAAgC,EAAE,MAAM,iDAAiD,CAAC;
|
|
1
|
+
{"version":3,"file":"ThrottlingUtils.d.ts","sourceRoot":"","sources":["../../../src/network/ThrottlingUtils.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,gCAAgC,EAAE,MAAM,iDAAiD,CAAC;AAEnG,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAExD,OAAO,EAEH,iBAAiB,EACpB,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAEhE,gBAAgB;AAChB,qBAAa,eAAe;IACxB;;;OAGG;IACH,MAAM,CAAC,4BAA4B,CAAC,UAAU,EAAE,iBAAiB,GAAG,MAAM;IAI1E;;;;OAIG;IACH,MAAM,CAAC,UAAU,CACb,YAAY,EAAE,YAAY,EAC1B,UAAU,EAAE,iBAAiB,EAC7B,aAAa,EAAE,MAAM,GACtB,IAAI;IAiBP;;;;;OAKG;IACH,MAAM,CAAC,WAAW,CACd,YAAY,EAAE,YAAY,EAC1B,UAAU,EAAE,iBAAiB,EAC7B,QAAQ,EAAE,eAAe,CAAC,gCAAgC,CAAC,EAC3D,aAAa,EAAE,MAAM,GACtB,IAAI;IAwBP;;;OAGG;IACH,MAAM,CAAC,mBAAmB,CACtB,QAAQ,EAAE,eAAe,CAAC,gCAAgC,CAAC,GAC5D,OAAO;IAOV;;;OAGG;IACH,MAAM,CAAC,0BAA0B,CAC7B,QAAQ,EAAE,eAAe,CAAC,gCAAgC,CAAC,GAC5D,OAAO;IAYV;;;OAGG;IACH,MAAM,CAAC,qBAAqB,CAAC,YAAY,EAAE,MAAM,GAAG,MAAM;IAa1D,MAAM,CAAC,cAAc,CACjB,YAAY,EAAE,YAAY,EAC1B,QAAQ,EAAE,MAAM,EAChB,OAAO,EAAE,eAAe,EACxB,qBAAqB,CAAC,EAAE,MAAM,GAC/B,IAAI;CASV"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"packageMetadata.d.ts","sourceRoot":"","sources":["../../src/packageMetadata.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,IAAI,uBAAuB,CAAC;AACzC,eAAO,MAAM,OAAO,
|
|
1
|
+
{"version":3,"file":"packageMetadata.d.ts","sourceRoot":"","sources":["../../src/packageMetadata.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,IAAI,uBAAuB,CAAC;AACzC,eAAO,MAAM,OAAO,kBAAkB,CAAC"}
|
|
@@ -5,7 +5,6 @@ import { Logger } from "../logger/Logger.js";
|
|
|
5
5
|
import { Authority } from "../authority/Authority.js";
|
|
6
6
|
import { AuthorizationCodePayload } from "../response/AuthorizationCodePayload.js";
|
|
7
7
|
import { AuthorizeResponse } from "../response/AuthorizeResponse.js";
|
|
8
|
-
import { StringDict } from "../utils/MsalTypes.js";
|
|
9
8
|
/**
|
|
10
9
|
* Returns map of parameters that are applicable to all calls to /authorize whether using PKCE or EAR
|
|
11
10
|
* @param config
|
|
@@ -21,7 +20,7 @@ export declare function getStandardAuthorizeRequestParameters(authOptions: AuthO
|
|
|
21
20
|
* @param requestParameters
|
|
22
21
|
* @returns
|
|
23
22
|
*/
|
|
24
|
-
export declare function getAuthorizeUrl(authority: Authority, requestParameters: Map<string, string
|
|
23
|
+
export declare function getAuthorizeUrl(authority: Authority, requestParameters: Map<string, string>): string;
|
|
25
24
|
/**
|
|
26
25
|
* Handles the hash fragment response from public client code request. Returns a code response used by
|
|
27
26
|
* the client to exchange for a token in acquireToken.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Authorize.d.ts","sourceRoot":"","sources":["../../../src/protocol/Authorize.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,6BAA6B,EAAE,MAAM,6CAA6C,CAAC;AAE5F,OAAO,EAAE,kBAAkB,EAAE,MAAM,gDAAgD,CAAC;AAEpF,OAAO,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AAG/D,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAE7C,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAGtD,OAAO,EAAE,wBAAwB,EAAE,MAAM,yCAAyC,CAAC;AACnF,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;
|
|
1
|
+
{"version":3,"file":"Authorize.d.ts","sourceRoot":"","sources":["../../../src/protocol/Authorize.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,6BAA6B,EAAE,MAAM,6CAA6C,CAAC;AAE5F,OAAO,EAAE,kBAAkB,EAAE,MAAM,gDAAgD,CAAC;AAEpF,OAAO,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AAG/D,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAE7C,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAGtD,OAAO,EAAE,wBAAwB,EAAE,MAAM,yCAAyC,CAAC;AACnF,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AAWrE;;;;;;;GAOG;AACH,wBAAgB,qCAAqC,CACjD,WAAW,EAAE,WAAW,EACxB,OAAO,EAAE,6BAA6B,EACtC,MAAM,EAAE,MAAM,EACd,iBAAiB,CAAC,EAAE,kBAAkB,GACvC,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAiOrB;AAED;;;;;GAKG;AACH,wBAAgB,eAAe,CAC3B,SAAS,EAAE,SAAS,EACpB,iBAAiB,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,GACvC,MAAM,CAMR;AAED;;;;;GAKG;AACH,wBAAgB,2BAA2B,CACvC,YAAY,EAAE,iBAAiB,EAC/B,WAAW,EAAE,MAAM,GACpB,wBAAwB,CAY1B;AAED;;;;GAIG;AACH,wBAAgB,6BAA6B,CACzC,cAAc,EAAE,iBAAiB,EACjC,YAAY,EAAE,MAAM,GACrB,IAAI,CAuEN"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { CcsCredential } from "../account/CcsCredential.js";
|
|
2
|
+
import { Logger } from "../logger/Logger.js";
|
|
3
|
+
import { BaseAuthRequest } from "../request/BaseAuthRequest.js";
|
|
4
|
+
import { IPerformanceClient } from "../exports-browser-only.js";
|
|
5
|
+
import { ServerAuthorizationTokenResponse } from "../response/ServerAuthorizationTokenResponse.js";
|
|
6
|
+
import { RequestThumbprint } from "../network/RequestThumbprint.js";
|
|
7
|
+
import { INetworkModule, NetworkRequestOptions } from "../network/INetworkModule.js";
|
|
8
|
+
import { NetworkResponse } from "../network/NetworkResponse.js";
|
|
9
|
+
import { CacheManager } from "../cache/CacheManager.js";
|
|
10
|
+
import { ServerTelemetryManager } from "../telemetry/server/ServerTelemetryManager.js";
|
|
11
|
+
/**
|
|
12
|
+
* Creates default headers for requests to token endpoint
|
|
13
|
+
*/
|
|
14
|
+
export declare function createTokenRequestHeaders(logger: Logger, preventCorsPreflight: boolean, ccsCred?: CcsCredential): Record<string, string>;
|
|
15
|
+
/**
|
|
16
|
+
* Creates query string for the /token request
|
|
17
|
+
* @param request
|
|
18
|
+
*/
|
|
19
|
+
export declare function createTokenQueryParameters(request: BaseAuthRequest, clientId: string, redirectUri: string, performanceClient: IPerformanceClient): string;
|
|
20
|
+
/**
|
|
21
|
+
* Http post to token endpoint
|
|
22
|
+
* @param tokenEndpoint
|
|
23
|
+
* @param queryString
|
|
24
|
+
* @param headers
|
|
25
|
+
* @param thumbprint
|
|
26
|
+
*/
|
|
27
|
+
export declare function executePostToTokenEndpoint(tokenEndpoint: string, queryString: string, headers: Record<string, string>, thumbprint: RequestThumbprint, correlationId: string, cacheManager: CacheManager, networkClient: INetworkModule, logger: Logger, performanceClient: IPerformanceClient, serverTelemetryManager: ServerTelemetryManager | null): Promise<NetworkResponse<ServerAuthorizationTokenResponse>>;
|
|
28
|
+
/**
|
|
29
|
+
* Wraps sendPostRequestAsync with necessary preflight and postflight logic
|
|
30
|
+
* @param thumbprint - Request thumbprint for throttling
|
|
31
|
+
* @param tokenEndpoint - Endpoint to make the POST to
|
|
32
|
+
* @param options - Body and Headers to include on the POST request
|
|
33
|
+
* @param correlationId - CorrelationId for telemetry
|
|
34
|
+
* @param cacheManager - Cache manager instance
|
|
35
|
+
* @param networkClient - Network module instance
|
|
36
|
+
* @param logger - Logger instance
|
|
37
|
+
* @param performanceClient - Performance client instance
|
|
38
|
+
*/
|
|
39
|
+
export declare function sendPostRequest<T extends ServerAuthorizationTokenResponse>(thumbprint: RequestThumbprint, tokenEndpoint: string, options: NetworkRequestOptions, correlationId: string, cacheManager: CacheManager, networkClient: INetworkModule, logger: Logger, performanceClient: IPerformanceClient): Promise<NetworkResponse<T>>;
|
|
40
|
+
//# sourceMappingURL=Token.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Token.d.ts","sourceRoot":"","sources":["../../../src/protocol/Token.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,aAAa,EAAqB,MAAM,6BAA6B,CAAC;AAE/E,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAIhE,OAAO,EAAE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B,aAAa,EAAE,MAAM,EACrB,YAAY,EAAE,YAAY,EAC1B,aAAa,EAAE,cAAc,EAC7B,MAAM,EAAE,MAAM,EACd,iBAAiB,EAAE,kBAAkB,GACtC,OAAO,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC,CA6D7B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AuthenticationHeaderParser.d.ts","sourceRoot":"","sources":["../../../src/request/AuthenticationHeaderParser.ts"],"names":[],"mappings":"AAmBA;;;GAGG;AACH,qBAAa,0BAA0B;IACnC,OAAO,CAAC,OAAO,CAAyB;gBAE5B,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;IAI3C;;;OAGG;IACH,WAAW,IAAI,MAAM;IAqCrB;;;;OAIG;IACH,OAAO,CAAC,eAAe;
|
|
1
|
+
{"version":3,"file":"AuthenticationHeaderParser.d.ts","sourceRoot":"","sources":["../../../src/request/AuthenticationHeaderParser.ts"],"names":[],"mappings":"AAmBA;;;GAGG;AACH,qBAAa,0BAA0B;IACnC,OAAO,CAAC,OAAO,CAAyB;gBAE5B,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;IAI3C;;;OAGG;IACH,WAAW,IAAI,MAAM;IAqCrB;;;;OAIG;IACH,OAAO,CAAC,eAAe;CAa1B"}
|
|
@@ -18,15 +18,13 @@ import { ShrOptions } from "../crypto/SignedHttpRequest.js";
|
|
|
18
18
|
* - sshJwk - A stringified JSON Web Key representing a public key that can be signed by an SSH certificate.
|
|
19
19
|
* - sshKid - Key ID that uniquely identifies the SSH public key mentioned above.
|
|
20
20
|
* - azureCloudOptions - Convenience string enums for users to provide public/sovereign cloud ids
|
|
21
|
-
* -
|
|
22
|
-
* - tokenQueryParameters - String to string map of custom query parameters added to the /token call
|
|
23
|
-
* - tokenBodyParameters - String to string map of custom parameters added to the body of the /token call
|
|
21
|
+
* - extraQueryParameters - String to string map of custom query parameters added to outgoing token service requests
|
|
24
22
|
* - storeInCache - Object containing boolean values indicating whether to store tokens in the cache or not (default is true)
|
|
25
23
|
* - scenarioId - Scenario id to track custom user prompts
|
|
26
24
|
* - popKid - Key ID to identify the public key for PoP token request
|
|
27
25
|
* - 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.
|
|
28
26
|
* - httpMethod - HTTP method to use for the /authorize request. Defaults to GET, but can be set to POST if the request requires body parameters
|
|
29
|
-
* -
|
|
27
|
+
* - extraParameters - String to string map of custom parameters added to outgoing token service requests
|
|
30
28
|
*/
|
|
31
29
|
export type BaseAuthRequest = {
|
|
32
30
|
authority: string;
|
|
@@ -42,15 +40,13 @@ export type BaseAuthRequest = {
|
|
|
42
40
|
sshJwk?: string;
|
|
43
41
|
sshKid?: string;
|
|
44
42
|
azureCloudOptions?: AzureCloudOptions;
|
|
45
|
-
requestedClaimsHash?: string;
|
|
46
43
|
maxAge?: number;
|
|
47
|
-
tokenBodyParameters?: StringDict;
|
|
48
|
-
tokenQueryParameters?: StringDict;
|
|
49
44
|
storeInCache?: StoreInCache;
|
|
50
45
|
scenarioId?: string;
|
|
51
46
|
popKid?: string;
|
|
52
47
|
embeddedClientId?: string;
|
|
53
48
|
httpMethod?: HttpMethod;
|
|
54
|
-
|
|
49
|
+
extraQueryParameters?: StringDict;
|
|
50
|
+
extraParameters?: StringDict;
|
|
55
51
|
};
|
|
56
52
|
//# sourceMappingURL=BaseAuthRequest.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseAuthRequest.d.ts","sourceRoot":"","sources":["../../../src/request/BaseAuthRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,oBAAoB,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACzE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AAC1E,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACnD,O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AC,EAAE,UAAU,CAAC;IACxB,oBAAoB,CAAC,EAAE,UAAU,CAAC;IAClC,eAAe,CAAC,EAAE,UAAU,CAAC;CAChC,CAAC"}
|
|
@@ -13,7 +13,8 @@ import { CcsCredential } from "../account/CcsCredential.js";
|
|
|
13
13
|
* - resourceRequestMethod - HTTP Request type used to request data from the resource (i.e. "GET", "POST", etc.). Used for proof-of-possession flows.
|
|
14
14
|
* - resourceRequestUri - URI that token will be used for. Used for proof-of-possession flows.
|
|
15
15
|
* - enableSpaAuthCode - Enables the acqusition of a spa authorization code (confidential clients only)
|
|
16
|
-
* -
|
|
16
|
+
* - extraQueryParameters - String to string map of custom query parameters added to outgoing token service requests
|
|
17
|
+
* - extraParameters - String to string map of custom query parameters added to outgoing token service requests
|
|
17
18
|
*/
|
|
18
19
|
export type CommonAuthorizationCodeRequest = BaseAuthRequest & {
|
|
19
20
|
code: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CommonAuthorizationCodeRequest.d.ts","sourceRoot":"","sources":["../../../src/request/CommonAuthorizationCodeRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAE5D
|
|
1
|
+
{"version":3,"file":"CommonAuthorizationCodeRequest.d.ts","sourceRoot":"","sources":["../../../src/request/CommonAuthorizationCodeRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAE5D;;;;;;;;;;;;;;;GAeG;AACH,MAAM,MAAM,8BAA8B,GAAG,eAAe,GAAG;IAC3D,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,0BAA0B,CAAC,EAAE,OAAO,CAAC;IACrC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,aAAa,CAAC,EAAE,aAAa,CAAC;CACjC,CAAC"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ResponseMode } from "../utils/Constants.js";
|
|
2
|
-
import { StringDict } from "../utils/MsalTypes.js";
|
|
3
2
|
import { BaseAuthRequest } from "./BaseAuthRequest.js";
|
|
4
3
|
import { AccountInfo } from "../account/AccountInfo.js";
|
|
5
4
|
/**
|
|
@@ -26,8 +25,8 @@ import { AccountInfo } from "../account/AccountInfo.js";
|
|
|
26
25
|
* - loginHint - Can be used to pre-fill the username/email address field of the sign-in page for the user, if you know the username/email address ahead of time. Often apps use this parameter during re-authentication, having already extracted the username from a previous sign-in using the preferred_username claim.
|
|
27
26
|
* - sid - Session ID, unique identifier for the session. Available as an optional claim on ID tokens.
|
|
28
27
|
* - domainHint - Provides a hint about the tenant or domain that the user should use to sign in. The value of the domain hint is a registered domain for the tenant.
|
|
29
|
-
* - extraQueryParameters - String to string map of custom query parameters added to
|
|
30
|
-
* -
|
|
28
|
+
* - extraQueryParameters - String to string map of custom query parameters added to outgoing token service requests
|
|
29
|
+
* - extraParameters - String to string map of custom query parameters added to outgoing token service requests
|
|
31
30
|
* - nonce - A value included in the request that is returned in the id token. A randomly generated unique value is typically used to mitigate replay attacks.
|
|
32
31
|
* - resourceRequestMethod - HTTP Request type used to request data from the resource (i.e. "GET", "POST", etc.). Used for proof-of-possession flows.
|
|
33
32
|
* - resourceRequestUri - URI that token will be used for. Used for proof-of-possession flows.
|
|
@@ -40,7 +39,6 @@ export type CommonAuthorizationUrlRequest = BaseAuthRequest & {
|
|
|
40
39
|
codeChallenge?: string;
|
|
41
40
|
codeChallengeMethod?: string;
|
|
42
41
|
domainHint?: string;
|
|
43
|
-
extraQueryParameters?: StringDict;
|
|
44
42
|
extraScopesToConsent?: Array<string>;
|
|
45
43
|
loginHint?: string;
|
|
46
44
|
nonce: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CommonAuthorizationUrlRequest.d.ts","sourceRoot":"","sources":["../../../src/request/CommonAuthorizationUrlRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AACrD,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"CommonAuthorizationUrlRequest.d.ts","sourceRoot":"","sources":["../../../src/request/CommonAuthorizationUrlRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AACrD,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAExD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,MAAM,MAAM,6BAA6B,GAAG,eAAe,GAAG;IAC1D,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,YAAY,CAAC;IAC3B,OAAO,CAAC,EAAE,WAAW,CAAC;IACtB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,oBAAoB,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACrC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,cAAc,CAAC,EAAE,OAAO,CAAC;CAC5B,CAAC"}
|
|
@@ -10,7 +10,8 @@ import { CcsCredential } from "../account/CcsCredential.js";
|
|
|
10
10
|
* - resourceRequestMethod - HTTP Request type used to request data from the resource (i.e. "GET", "POST", etc.). Used for proof-of-possession flows.
|
|
11
11
|
* - resourceRequestUri - URI that token will be used for. Used for proof-of-possession flows.
|
|
12
12
|
* - forceCache - Force MSAL to cache a refresh token flow response when there is no account in the cache. Used for migration scenarios.
|
|
13
|
-
* -
|
|
13
|
+
* - extraQueryParameters - String to string map of custom query parameters added to outgoing token service requests
|
|
14
|
+
* - extraParameters - String to string map of custom query parameters added to outgoing token service requests
|
|
14
15
|
*/
|
|
15
16
|
export type CommonRefreshTokenRequest = BaseAuthRequest & {
|
|
16
17
|
refreshToken: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CommonRefreshTokenRequest.d.ts","sourceRoot":"","sources":["../../../src/request/CommonRefreshTokenRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAE5D
|
|
1
|
+
{"version":3,"file":"CommonRefreshTokenRequest.d.ts","sourceRoot":"","sources":["../../../src/request/CommonRefreshTokenRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAE5D;;;;;;;;;;;;GAYG;AACH,MAAM,MAAM,yBAAyB,GAAG,eAAe,GAAG;IACtD,YAAY,EAAE,MAAM,CAAC;IACrB,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;CACxB,CAAC"}
|
|
@@ -10,7 +10,8 @@ import { BaseAuthRequest } from "./BaseAuthRequest.js";
|
|
|
10
10
|
* - forceRefresh - Forces silent requests to make network calls if true.
|
|
11
11
|
* - resourceRequestMethod - HTTP Request type used to request data from the resource (i.e. "GET", "POST", etc.). Used for proof-of-possession flows.
|
|
12
12
|
* - resourceRequestUri - URI that token will be used for. Used for proof-of-possession flows.
|
|
13
|
-
* -
|
|
13
|
+
* - extraQueryParameters - String to string map of custom query parameters added to outgoing token service requests
|
|
14
|
+
* - extraParameters - String to string map of custom query parameters added to outgoing token service requests
|
|
14
15
|
*/
|
|
15
16
|
export type CommonSilentFlowRequest = BaseAuthRequest & {
|
|
16
17
|
/** Account object to lookup the credentials */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CommonSilentFlowRequest.d.ts","sourceRoot":"","sources":["../../../src/request/CommonSilentFlowRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AACxD,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAEvD
|
|
1
|
+
{"version":3,"file":"CommonSilentFlowRequest.d.ts","sourceRoot":"","sources":["../../../src/request/CommonSilentFlowRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AACxD,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAEvD;;;;;;;;;;;;GAYG;AACH,MAAM,MAAM,uBAAuB,GAAG,eAAe,GAAG;IACpD,+CAA+C;IAC/C,OAAO,EAAE,WAAW,CAAC;IACrB,uEAAuE;IACvE,YAAY,EAAE,OAAO,CAAC;IACtB,4FAA4F;IAC5F,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,oLAAoL;IACpL,mCAAmC,CAAC,EAAE,MAAM,CAAC;CAChD,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as Constants from "../utils/Constants.js";
|
|
2
2
|
import { StringDict } from "../utils/MsalTypes.js";
|
|
3
3
|
import { ApplicationTelemetry, LibraryInfo } from "../config/ClientConfiguration.js";
|
|
4
4
|
import { ServerTelemetryManager } from "../telemetry/server/ServerTelemetryManager.js";
|
|
@@ -10,12 +10,12 @@ export declare function instrumentBrokerParams(parameters: Map<string, string>,
|
|
|
10
10
|
* @param parameters
|
|
11
11
|
* @param responseType
|
|
12
12
|
*/
|
|
13
|
-
export declare function addResponseType(parameters: Map<string, string>, responseType: OAuthResponseType): void;
|
|
13
|
+
export declare function addResponseType(parameters: Map<string, string>, responseType: Constants.OAuthResponseType): void;
|
|
14
14
|
/**
|
|
15
15
|
* add response_mode. defaults to query.
|
|
16
16
|
* @param responseMode
|
|
17
17
|
*/
|
|
18
|
-
export declare function addResponseMode(parameters: Map<string, string>, responseMode?: ResponseMode): void;
|
|
18
|
+
export declare function addResponseMode(parameters: Map<string, string>, responseMode?: Constants.ResponseMode): void;
|
|
19
19
|
/**
|
|
20
20
|
* Add flag to indicate STS should attempt to use WAM if available
|
|
21
21
|
*/
|
|
@@ -170,10 +170,10 @@ export declare function addGrantType(parameters: Map<string, string>, grantType:
|
|
|
170
170
|
export declare function addClientInfo(parameters: Map<string, string>): void;
|
|
171
171
|
export declare function addInstanceAware(parameters: Map<string, string>): void;
|
|
172
172
|
/**
|
|
173
|
-
*
|
|
174
|
-
* @param
|
|
173
|
+
* Add extraParameters
|
|
174
|
+
* @param extraParams - String dictionary containing extra parameters to be added.
|
|
175
175
|
*/
|
|
176
|
-
export declare function
|
|
176
|
+
export declare function addExtraParameters(parameters: Map<string, string>, extraParams: StringDict): void;
|
|
177
177
|
export declare function addClientCapabilitiesToClaims(claims?: string, clientCapabilities?: Array<string>): string;
|
|
178
178
|
/**
|
|
179
179
|
* adds `username` for Password Grant flow
|
|
@@ -214,10 +214,4 @@ export declare function addBrokerParameters(parameters: Map<string, string>, bro
|
|
|
214
214
|
* @param jwk
|
|
215
215
|
*/
|
|
216
216
|
export declare function addEARParameters(parameters: Map<string, string>, jwk: string): void;
|
|
217
|
-
/**
|
|
218
|
-
* Adds authorize body parameters to the request parameters
|
|
219
|
-
* @param parameters
|
|
220
|
-
* @param bodyParameters
|
|
221
|
-
*/
|
|
222
|
-
export declare function addPostBodyParameters(parameters: Map<string, string>, bodyParameters: StringDict): void;
|
|
223
217
|
//# sourceMappingURL=RequestParameterBuilder.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RequestParameterBuilder.d.ts","sourceRoot":"","sources":["../../../src/request/RequestParameterBuilder.ts"],"names":[],"mappings":"AAKA,OAAO,
|
|
1
|
+
{"version":3,"file":"RequestParameterBuilder.d.ts","sourceRoot":"","sources":["../../../src/request/RequestParameterBuilder.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,SAAS,MAAM,uBAAuB,CAAC;AAOnD,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACnD,OAAO,EACH,oBAAoB,EACpB,WAAW,EACd,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAE,sBAAsB,EAAE,MAAM,+CAA+C,CAAC;AACvF,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AACtD,OAAO,EAAE,kBAAkB,EAAE,MAAM,gDAAgD,CAAC;AAEpF,wBAAgB,sBAAsB,CAClC,UAAU,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,EAC/B,aAAa,CAAC,EAAE,MAAM,EACtB,iBAAiB,CAAC,EAAE,kBAAkB,GACvC,IAAI,CAiBN;AAED;;;;GAIG;AACH,wBAAgB,eAAe,CAC3B,UAAU,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,EAC/B,YAAY,EAAE,SAAS,CAAC,iBAAiB,GAC1C,IAAI,CAEN;AAED;;;GAGG;AACH,wBAAgB,eAAe,CAC3B,UAAU,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,EAC/B,YAAY,CAAC,EAAE,SAAS,CAAC,YAAY,GACtC,IAAI,CAKN;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,UAAU,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,IAAI,CAErE;AAED;;;;GAIG;AACH,wBAAgB,SAAS,CACrB,UAAU,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,EAC/B,MAAM,EAAE,MAAM,EAAE,EAChB,aAAa,GAAE,OAAc,EAC7B,aAAa,GAAE,KAAK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AM,CAAC;IAC5B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,
|
|
1
|
+
{"version":3,"file":"AuthenticationResult.d.ts","sourceRoot":"","sources":["../../../src/response/AuthenticationResult.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAExD;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,MAAM,oBAAoB,GAAG;IAC/B,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACtB,OAAO,EAAE,WAAW,GAAG,IAAI,CAAC;IAC5B,OAAO,EAAE,MAAM,CAAC;IAChB,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,OAAO,CAAC;IACnB,SAAS,EAAE,IAAI,GAAG,IAAI,CAAC;IACvB,YAAY,CAAC,EAAE,IAAI,CAAC;IACpB,SAAS,CAAC,EAAE,IAAI,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAChC,CAAC"}
|
|
@@ -6,13 +6,13 @@ import { AccountEntity } from "../cache/entities/AccountEntity.js";
|
|
|
6
6
|
import { Authority } from "../authority/Authority.js";
|
|
7
7
|
import { CacheRecord } from "../cache/entities/CacheRecord.js";
|
|
8
8
|
import { CacheManager } from "../cache/CacheManager.js";
|
|
9
|
-
import { RequestStateObject } from "../utils/ProtocolUtils.js";
|
|
10
9
|
import { ICachePlugin } from "../cache/interface/ICachePlugin.js";
|
|
11
10
|
import { ISerializableTokenCache } from "../cache/interface/ISerializableTokenCache.js";
|
|
12
11
|
import { AuthorizationCodePayload } from "./AuthorizationCodePayload.js";
|
|
13
12
|
import { BaseAuthRequest } from "../request/BaseAuthRequest.js";
|
|
14
|
-
import { IPerformanceClient } from "../telemetry/performance/IPerformanceClient.js";
|
|
15
13
|
import { TokenClaims } from "../account/TokenClaims.js";
|
|
14
|
+
import { IPerformanceClient } from "../telemetry/performance/IPerformanceClient.js";
|
|
15
|
+
import { RequestStateObject } from "../utils/StateTypes.js";
|
|
16
16
|
/**
|
|
17
17
|
* Class that handles response parsing.
|
|
18
18
|
* @internal
|
|
@@ -23,16 +23,17 @@ export declare class ResponseHandler {
|
|
|
23
23
|
private cryptoObj;
|
|
24
24
|
private logger;
|
|
25
25
|
private homeAccountIdentifier;
|
|
26
|
+
private performanceClient;
|
|
26
27
|
private serializableCache;
|
|
27
28
|
private persistencePlugin;
|
|
28
|
-
|
|
29
|
-
constructor(clientId: string, cacheStorage: CacheManager, cryptoObj: ICrypto, logger: Logger, serializableCache: ISerializableTokenCache | null, persistencePlugin: ICachePlugin | null, performanceClient?: IPerformanceClient);
|
|
29
|
+
constructor(clientId: string, cacheStorage: CacheManager, cryptoObj: ICrypto, logger: Logger, performanceClient: IPerformanceClient, serializableCache: ISerializableTokenCache | null, persistencePlugin: ICachePlugin | null);
|
|
30
30
|
/**
|
|
31
31
|
* Function which validates server authorization token response.
|
|
32
32
|
* @param serverResponse
|
|
33
|
+
* @param correlationId
|
|
33
34
|
* @param refreshAccessToken
|
|
34
35
|
*/
|
|
35
|
-
validateTokenResponse(serverResponse: ServerAuthorizationTokenResponse, refreshAccessToken?: boolean): void;
|
|
36
|
+
validateTokenResponse(serverResponse: ServerAuthorizationTokenResponse, correlationId: string, refreshAccessToken?: boolean): void;
|
|
36
37
|
/**
|
|
37
38
|
* Returns a constructed token response based on given string. Also manages the cache updates and cleanups.
|
|
38
39
|
* @param serverTokenResponse
|
|
@@ -56,7 +57,7 @@ export declare class ResponseHandler {
|
|
|
56
57
|
* @param fromTokenCache
|
|
57
58
|
* @param stateString
|
|
58
59
|
*/
|
|
59
|
-
static generateAuthenticationResult(cryptoObj: ICrypto, authority: Authority, cacheRecord: CacheRecord, fromTokenCache: boolean, request: BaseAuthRequest, idTokenClaims?: TokenClaims, requestState?: RequestStateObject, serverTokenResponse?: ServerAuthorizationTokenResponse, requestId?: string): Promise<AuthenticationResult>;
|
|
60
|
+
static generateAuthenticationResult(cryptoObj: ICrypto, authority: Authority, cacheRecord: CacheRecord, fromTokenCache: boolean, request: BaseAuthRequest, performanceClient: IPerformanceClient, idTokenClaims?: TokenClaims, requestState?: RequestStateObject, serverTokenResponse?: ServerAuthorizationTokenResponse, requestId?: string): Promise<AuthenticationResult>;
|
|
60
61
|
}
|
|
61
62
|
export declare function buildAccountToCache(cacheStorage: CacheManager, authority: Authority, homeAccountId: string, base64Decode: (input: string) => string, correlationId: string, idTokenClaims?: TokenClaims, clientInfo?: string, environment?: string, claimsTenantId?: string | null, authCodePayload?: AuthorizationCodePayload, nativeAccountId?: string, logger?: Logger): AccountEntity;
|
|
62
63
|
//# sourceMappingURL=ResponseHandler.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ResponseHandler.d.ts","sourceRoot":"","sources":["../../../src/response/ResponseHandler.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,gCAAgC,EAAE,MAAM,uCAAuC,CAAC;AACzF,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAK/C,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAG7C,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACjE,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AACnE,OAAO,EAAE,SAAS,EA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AE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,EACvC,aAAa,EAAE,MAAM,EACrB,aAAa,CAAC,EAAE,WAAW,EAC3B,UAAU,CAAC,EAAE,MAAM,EACnB,WAAW,CAAC,EAAE,MAAM,EACpB,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,EAC9B,eAAe,CAAC,EAAE,wBAAwB,EAC1C,eAAe,CAAC,EAAE,MAAM,EACxB,MAAM,CAAC,EAAE,MAAM,GAChB,aAAa,CAiDf"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { PerformanceEvent } from "./PerformanceEvent.js";
|
|
2
|
-
import { IPerformanceMeasurement } from "./IPerformanceMeasurement.js";
|
|
3
2
|
import { AccountInfo } from "../../account/AccountInfo.js";
|
|
4
3
|
export type PerformanceCallbackFunction = (events: PerformanceEvent[]) => void;
|
|
5
4
|
export type InProgressPerformanceEvent = {
|
|
@@ -12,10 +11,6 @@ export type InProgressPerformanceEvent = {
|
|
|
12
11
|
[key: string]: number | undefined;
|
|
13
12
|
}) => void;
|
|
14
13
|
event: PerformanceEvent;
|
|
15
|
-
/**
|
|
16
|
-
* @deprecated This attribute will be removed in the next major version
|
|
17
|
-
*/
|
|
18
|
-
measurement: IPerformanceMeasurement;
|
|
19
14
|
};
|
|
20
15
|
export interface IPerformanceClient {
|
|
21
16
|
startMeasurement(measureName: string, correlationId?: string): InProgressPerformanceEvent;
|
|
@@ -30,30 +25,6 @@ export interface IPerformanceClient {
|
|
|
30
25
|
removePerformanceCallback(callbackId: string): boolean;
|
|
31
26
|
addPerformanceCallback(callback: PerformanceCallbackFunction): string;
|
|
32
27
|
emitEvents(events: PerformanceEvent[], correlationId: string): void;
|
|
33
|
-
/**
|
|
34
|
-
* @deprecated This method will be removed in the next major version
|
|
35
|
-
*/
|
|
36
|
-
startPerformanceMeasurement(measureName: string, correlationId: string): IPerformanceMeasurement;
|
|
37
28
|
generateId(): string;
|
|
38
|
-
calculateQueuedTime(preQueueTime: number, currentTime: number): number;
|
|
39
|
-
addQueueMeasurement(eventName: string, correlationId?: string, queueTime?: number, manuallyCompleted?: boolean): void;
|
|
40
|
-
setPreQueueTime(eventName: string, correlationId?: string): void;
|
|
41
29
|
}
|
|
42
|
-
/**
|
|
43
|
-
* Queue measurement type
|
|
44
|
-
*/
|
|
45
|
-
export type QueueMeasurement = {
|
|
46
|
-
/**
|
|
47
|
-
* Name of performance event
|
|
48
|
-
*/
|
|
49
|
-
eventName: string;
|
|
50
|
-
/**
|
|
51
|
-
* Time spent in JS queue
|
|
52
|
-
*/
|
|
53
|
-
queueTime: number;
|
|
54
|
-
/**
|
|
55
|
-
* Incomplete pre-queue events are instrumentation bugs that should be fixed.
|
|
56
|
-
*/
|
|
57
|
-
manuallyCompleted?: boolean;
|
|
58
|
-
};
|
|
59
30
|
//# sourceMappingURL=IPerformanceClient.d.ts.map
|