@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
package/lib/index.cjs
CHANGED
|
@@ -1,100 +1,71 @@
|
|
|
1
|
-
/*! @azure/msal-common
|
|
1
|
+
/*! @azure/msal-common v16.0.0-beta.0 2025-12-05 */
|
|
2
2
|
'use strict';
|
|
3
3
|
'use strict';
|
|
4
4
|
|
|
5
|
-
var indexNode = require('./index-node-
|
|
5
|
+
var indexNode = require('./index-node-B7mR4APO.js');
|
|
6
6
|
var indexBrowser = require('./index-browser.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
exports.AADAuthorityConstants = indexNode.AADAuthorityConstants;
|
|
11
10
|
exports.AADServerParamKeys = indexNode.AADServerParamKeys;
|
|
12
|
-
exports.
|
|
11
|
+
exports.AccountEntityUtils = indexNode.AccountEntityUtils;
|
|
13
12
|
exports.AuthError = indexNode.AuthError;
|
|
14
13
|
exports.AuthErrorCodes = indexNode.AuthErrorCodes;
|
|
15
|
-
exports.AuthErrorMessage = indexNode.AuthErrorMessage;
|
|
16
14
|
exports.AuthToken = indexNode.AuthToken;
|
|
17
15
|
exports.AuthenticationHeaderParser = indexNode.AuthenticationHeaderParser;
|
|
18
|
-
exports.AuthenticationScheme = indexNode.AuthenticationScheme;
|
|
19
16
|
exports.Authority = indexNode.Authority;
|
|
20
17
|
exports.AuthorityFactory = indexNode.AuthorityFactory;
|
|
21
18
|
exports.AuthorityType = indexNode.AuthorityType;
|
|
22
19
|
exports.AuthorizationCodeClient = indexNode.AuthorizationCodeClient;
|
|
23
20
|
exports.AuthorizeProtocol = indexNode.Authorize;
|
|
24
21
|
exports.AzureCloudInstance = indexNode.AzureCloudInstance;
|
|
25
|
-
exports.BaseClient = indexNode.BaseClient;
|
|
26
|
-
exports.CacheAccountType = indexNode.CacheAccountType;
|
|
27
22
|
exports.CacheError = indexNode.CacheError;
|
|
28
23
|
exports.CacheErrorCodes = indexNode.CacheErrorCodes;
|
|
29
24
|
exports.CacheHelpers = indexNode.CacheHelpers;
|
|
30
25
|
exports.CacheManager = indexNode.CacheManager;
|
|
31
|
-
exports.CacheOutcome = indexNode.CacheOutcome;
|
|
32
|
-
exports.CacheType = indexNode.CacheType;
|
|
33
26
|
exports.CcsCredentialType = indexNode.CcsCredentialType;
|
|
34
|
-
exports.ClaimsRequestKeys = indexNode.ClaimsRequestKeys;
|
|
35
27
|
exports.ClientAssertionUtils = indexNode.ClientAssertionUtils;
|
|
36
28
|
exports.ClientAuthError = indexNode.ClientAuthError;
|
|
37
29
|
exports.ClientAuthErrorCodes = indexNode.ClientAuthErrorCodes;
|
|
38
|
-
exports.ClientAuthErrorMessage = indexNode.ClientAuthErrorMessage;
|
|
39
30
|
exports.ClientConfigurationError = indexNode.ClientConfigurationError;
|
|
40
31
|
exports.ClientConfigurationErrorCodes = indexNode.ClientConfigurationErrorCodes;
|
|
41
|
-
exports.ClientConfigurationErrorMessage = indexNode.ClientConfigurationErrorMessage;
|
|
42
|
-
exports.CodeChallengeMethodValues = indexNode.CodeChallengeMethodValues;
|
|
43
32
|
exports.Constants = indexNode.Constants;
|
|
44
|
-
exports.CredentialType = indexNode.CredentialType;
|
|
45
33
|
exports.DEFAULT_CRYPTO_IMPLEMENTATION = indexNode.DEFAULT_CRYPTO_IMPLEMENTATION;
|
|
46
34
|
exports.DEFAULT_SYSTEM_OPTIONS = indexNode.DEFAULT_SYSTEM_OPTIONS;
|
|
47
|
-
exports.DEFAULT_TOKEN_RENEWAL_OFFSET_SEC = indexNode.DEFAULT_TOKEN_RENEWAL_OFFSET_SEC;
|
|
48
35
|
exports.DefaultStorageClass = indexNode.DefaultStorageClass;
|
|
49
|
-
exports.EncodingTypes = indexNode.EncodingTypes;
|
|
50
|
-
exports.Errors = indexNode.Errors;
|
|
51
|
-
exports.GrantType = indexNode.GrantType;
|
|
52
|
-
exports.HeaderNames = indexNode.HeaderNames;
|
|
53
|
-
exports.HttpMethod = indexNode.HttpMethod;
|
|
54
|
-
exports.HttpStatus = indexNode.HttpStatus;
|
|
55
36
|
exports.IntFields = indexNode.IntFields;
|
|
56
37
|
exports.InteractionRequiredAuthError = indexNode.InteractionRequiredAuthError;
|
|
57
38
|
exports.InteractionRequiredAuthErrorCodes = indexNode.InteractionRequiredAuthErrorCodes;
|
|
58
|
-
exports.InteractionRequiredAuthErrorMessage = indexNode.InteractionRequiredAuthErrorMessage;
|
|
59
|
-
exports.JsonWebTokenTypes = indexNode.JsonWebTokenTypes;
|
|
60
39
|
Object.defineProperty(exports, "LogLevel", {
|
|
61
40
|
enumerable: true,
|
|
62
41
|
get: function () { return indexNode.LogLevel; }
|
|
63
42
|
});
|
|
64
43
|
exports.Logger = indexNode.Logger;
|
|
65
44
|
exports.NetworkError = indexNode.NetworkError;
|
|
66
|
-
exports.OAuthResponseType = indexNode.OAuthResponseType;
|
|
67
|
-
exports.OIDC_DEFAULT_SCOPES = indexNode.OIDC_DEFAULT_SCOPES;
|
|
68
|
-
exports.ONE_DAY_IN_MS = indexNode.ONE_DAY_IN_MS;
|
|
69
|
-
exports.PasswordGrantConstants = indexNode.PasswordGrantConstants;
|
|
70
45
|
exports.PerformanceEventStatus = indexNode.PerformanceEventStatus;
|
|
71
46
|
exports.PerformanceEvents = indexNode.PerformanceEvents;
|
|
72
|
-
exports.PersistentCacheKeys = indexNode.PersistentCacheKeys;
|
|
73
47
|
exports.PlatformBrokerError = indexNode.PlatformBrokerError;
|
|
74
48
|
exports.PopTokenGenerator = indexNode.PopTokenGenerator;
|
|
75
|
-
exports.PromptValue = indexNode.PromptValue;
|
|
76
49
|
exports.ProtocolMode = indexNode.ProtocolMode;
|
|
77
50
|
exports.ProtocolUtils = indexNode.ProtocolUtils;
|
|
78
51
|
exports.RefreshTokenClient = indexNode.RefreshTokenClient;
|
|
79
52
|
exports.RequestParameterBuilder = indexNode.RequestParameterBuilder;
|
|
80
53
|
exports.ResponseHandler = indexNode.ResponseHandler;
|
|
81
|
-
exports.ResponseMode = indexNode.ResponseMode;
|
|
82
54
|
exports.ScopeSet = indexNode.ScopeSet;
|
|
83
55
|
exports.ServerError = indexNode.ServerError;
|
|
84
|
-
exports.ServerResponseType = indexNode.ServerResponseType;
|
|
85
56
|
exports.ServerTelemetryManager = indexNode.ServerTelemetryManager;
|
|
86
57
|
exports.SilentFlowClient = indexNode.SilentFlowClient;
|
|
87
58
|
exports.StringUtils = indexNode.StringUtils;
|
|
88
59
|
exports.StubPerformanceClient = indexNode.StubPerformanceClient;
|
|
89
60
|
exports.StubbedNetworkModule = indexNode.StubbedNetworkModule;
|
|
90
|
-
exports.THE_FAMILY_ID = indexNode.THE_FAMILY_ID;
|
|
91
|
-
exports.ThrottlingConstants = indexNode.ThrottlingConstants;
|
|
92
61
|
exports.ThrottlingUtils = indexNode.ThrottlingUtils;
|
|
93
62
|
exports.TimeUtils = indexNode.TimeUtils;
|
|
94
63
|
exports.TokenCacheContext = indexNode.TokenCacheContext;
|
|
64
|
+
exports.TokenProtocol = indexNode.Token;
|
|
95
65
|
exports.UrlString = indexNode.UrlString;
|
|
96
66
|
exports.UrlUtils = indexNode.UrlUtils;
|
|
97
67
|
exports.buildAccountToCache = indexNode.buildAccountToCache;
|
|
68
|
+
exports.buildClientConfiguration = indexNode.buildClientConfiguration;
|
|
98
69
|
exports.buildClientInfo = indexNode.buildClientInfo;
|
|
99
70
|
exports.buildClientInfoFromHomeAccountId = indexNode.buildClientInfoFromHomeAccountId;
|
|
100
71
|
exports.buildStaticAuthorityOptions = indexNode.buildStaticAuthorityOptions;
|
package/lib/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AccountInfo.d.ts","sourceRoot":"","sources":["../../../src/account/AccountInfo.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAE/C,MAAM,MAAM,YAAY,GAAG,IAAI,GAAG,MAAM,CAAC;AAEzC;;;;;;;;;;;;;GAaG;AACH,MAAM,MAAM,WAAW,GAAG;IACtB,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,cAAc,EAAE,MAAM,CAAC;IACvB,SAAS,CAAC,EAA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d.ts","sourceRoot":"","sources":["../../../src/account/AuthToken.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAM/C;;;;GAIG;AACH,wBAAgB,kBAAkB,CAC9B,YAAY,EAAE,MAAM,EACpB,YAAY,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,GACxC,WAAW,CAWb;AAED;;;;GAIG;AACH,wBAAgB,MAAM,CAAC,aAAa,EAAE,WAAW,GAAG,OAAO,
|
|
1
|
+
{"version":3,"file":"AuthToken.d.ts","sourceRoot":"","sources":["../../../src/account/AuthToken.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAM/C;;;;GAIG;AACH,wBAAgB,kBAAkB,CAC9B,YAAY,EAAE,MAAM,EACpB,YAAY,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,GACxC,WAAW,CAWb;AAED;;;;GAIG;AACH,wBAAgB,MAAM,CAAC,aAAa,EAAE,WAAW,GAAG,OAAO,CAe1D;AAED;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAkBvD;AAED;;GAEG;AACH,wBAAgB,WAAW,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,IAAI,CAUlE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ClientInfo.d.ts","sourceRoot":"","sources":["../../../src/account/ClientInfo.ts"],"names":[],"mappings":"AAWA;;;;;GAKG;AACH,MAAM,MAAM,UAAU,GAAG;IACrB,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF;;;;GAIG;AACH,wBAAgB,eAAe,CAC3B,aAAa,EAAE,MAAM,EACrB,YAAY,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,GACxC,UAAU,CAaZ;AAED;;;GAGG;AACH,wBAAgB,gCAAgC,CAC5C,aAAa,EAAE,MAAM,GACtB,UAAU,
|
|
1
|
+
{"version":3,"file":"ClientInfo.d.ts","sourceRoot":"","sources":["../../../src/account/ClientInfo.ts"],"names":[],"mappings":"AAWA;;;;;GAKG;AACH,MAAM,MAAM,UAAU,GAAG;IACrB,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF;;;;GAIG;AACH,wBAAgB,eAAe,CAC3B,aAAa,EAAE,MAAM,EACrB,YAAY,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,GACxC,UAAU,CAaZ;AAED;;;GAGG;AACH,wBAAgB,gCAAgC,CAC5C,aAAa,EAAE,MAAM,GACtB,UAAU,CAcZ"}
|
|
@@ -25,11 +25,11 @@ export declare class Authority {
|
|
|
25
25
|
private regionDiscovery;
|
|
26
26
|
regionDiscoveryMetadata: RegionDiscoveryMetadata;
|
|
27
27
|
private logger;
|
|
28
|
-
protected performanceClient: IPerformanceClient
|
|
28
|
+
protected performanceClient: IPerformanceClient;
|
|
29
29
|
protected correlationId: string;
|
|
30
30
|
private managedIdentity;
|
|
31
31
|
private static reservedTenantDomains;
|
|
32
|
-
constructor(authority: string, networkInterface: INetworkModule, cacheManager: ICacheManager, authorityOptions: AuthorityOptions, logger: Logger, correlationId: string, performanceClient
|
|
32
|
+
constructor(authority: string, networkInterface: INetworkModule, cacheManager: ICacheManager, authorityOptions: AuthorityOptions, logger: Logger, correlationId: string, performanceClient: IPerformanceClient, managedIdentity?: boolean);
|
|
33
33
|
/**
|
|
34
34
|
* Get {@link AuthorityType}
|
|
35
35
|
* @param authorityUri {@link IUri}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Authority.d.ts","sourceRoot":"","sources":["../../../src/authority/Authority.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,aAAa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,EAAE,MAAM,EACd,WAAW,CAAC,EAAE,MAAM,GACrB,MAAM;IAyBT;;;;;OAKG;IACH,MAAM,CAAC,8BAA8B,CACjC,QAAQ,EAAE,oBAAoB,EAC9B,WAAW,EAAE,MAAM,GACpB,oBAAoB;IAyBvB;;;;;;;;OAQG;IACH,MAAM,CAAC,sBAAsB,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM;CAmB3D;AAED;;GAEG;AACH,wBAAgB,4BAA4B,CACxC,SAAS,EAAE,MAAM,GAClB,MAAM,GAAG,SAAS,CAsBpB;AAED,wBAAgB,kBAAkB,CAAC,YAAY,EAAE,MAAM,GAAG,MAAM,CAI/D;AAED,wBAAgB,2BAA2B,CACvC,WAAW,EAAE,OAAO,CAAC,gBAAgB,CAAC,GACvC,sBAAsB,CAoBxB"}
|
|
@@ -12,8 +12,12 @@ import { IPerformanceClient } from "../telemetry/performance/IPerformanceClient.
|
|
|
12
12
|
*
|
|
13
13
|
* @param authorityUri
|
|
14
14
|
* @param networkClient
|
|
15
|
-
* @param
|
|
15
|
+
* @param cacheManager
|
|
16
|
+
* @param authorityOptions
|
|
17
|
+
* @param logger
|
|
18
|
+
* @param correlationId
|
|
19
|
+
* @param performanceClient
|
|
16
20
|
* @internal
|
|
17
21
|
*/
|
|
18
|
-
export declare function createDiscoveredInstance(authorityUri: string, networkClient: INetworkModule, cacheManager: ICacheManager, authorityOptions: AuthorityOptions, logger: Logger, correlationId: string, performanceClient
|
|
22
|
+
export declare function createDiscoveredInstance(authorityUri: string, networkClient: INetworkModule, cacheManager: ICacheManager, authorityOptions: AuthorityOptions, logger: Logger, correlationId: string, performanceClient: IPerformanceClient): Promise<Authority>;
|
|
19
23
|
//# sourceMappingURL=AuthorityFactory.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AuthorityFactory.d.ts","sourceRoot":"","sources":["../../../src/authority/AuthorityFactory.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAsB,MAAM,gBAAgB,CAAC;AAC/D,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAK9D,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AACpE,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EAAE,kBAAkB,EAAE,MAAM,gDAAgD,CAAC;AAIpF
|
|
1
|
+
{"version":3,"file":"AuthorityFactory.d.ts","sourceRoot":"","sources":["../../../src/authority/AuthorityFactory.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAsB,MAAM,gBAAgB,CAAC;AAC/D,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAK9D,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AACpE,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EAAE,kBAAkB,EAAE,MAAM,gDAAgD,CAAC;AAIpF;;;;;;;;;;;;;;GAcG;AACH,wBAAsB,wBAAwB,CAC1C,YAAY,EAAE,MAAM,EACpB,aAAa,EAAE,cAAc,EAC7B,YAAY,EAAE,aAAa,EAC3B,gBAAgB,EAAE,gBAAgB,EAClC,MAAM,EAAE,MAAM,EACd,aAAa,EAAE,MAAM,EACrB,iBAAiB,EAAE,kBAAkB,GACtC,OAAO,CAAC,SAAS,CAAC,CAgCpB"}
|
|
@@ -22,14 +22,14 @@ export declare const InstanceDiscoveryMetadataAliases: Set<String>;
|
|
|
22
22
|
* @param logger
|
|
23
23
|
* @returns
|
|
24
24
|
*/
|
|
25
|
-
export declare function getAliasesFromStaticSources(staticAuthorityOptions: StaticAuthorityOptions, logger
|
|
25
|
+
export declare function getAliasesFromStaticSources(staticAuthorityOptions: StaticAuthorityOptions, logger: Logger, correlationId: string): string[];
|
|
26
26
|
/**
|
|
27
27
|
* Returns aliases for from the raw cloud discovery metadata passed in
|
|
28
28
|
* @param authorityHost
|
|
29
29
|
* @param rawCloudDiscoveryMetadata
|
|
30
30
|
* @returns
|
|
31
31
|
*/
|
|
32
|
-
export declare function getAliasesFromMetadata(authorityHost?: string, cloudDiscoveryMetadata?: CloudDiscoveryMetadata[], source?: AuthorityMetadataSource
|
|
32
|
+
export declare function getAliasesFromMetadata(logger: Logger, correlationId: string, authorityHost?: string, cloudDiscoveryMetadata?: CloudDiscoveryMetadata[], source?: AuthorityMetadataSource): string[] | null;
|
|
33
33
|
/**
|
|
34
34
|
* Get cloud discovery metadata for common authorities
|
|
35
35
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AuthorityMetadata.d.ts","sourceRoot":"","sources":["../../../src/authority/AuthorityMetadata.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAE7C,OAAO,EAAE,uBAAuB,EAAE,MAAM,uBAAuB,CAAC;AAChE,OAAO,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AAC/D,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AACrE,OAAO,EAAE,8BAA8B,EAAE,MAAM,qCAAqC,CAAC;AACrF,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAEjE,KAAK,WAAW,GAAG;IACf,gBAAgB,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,oBAAoB,CAAA;KAAE,CAAC;IAC1D,yBAAyB,EAAE,8BAA8B,CAAC;CAC7D,CAAC;
|
|
1
|
+
{"version":3,"file":"AuthorityMetadata.d.ts","sourceRoot":"","sources":["../../../src/authority/AuthorityMetadata.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAE7C,OAAO,EAAE,uBAAuB,EAAE,MAAM,uBAAuB,CAAC;AAChE,OA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5B,sBAAsB,CAAC,EAAE,8BAA8B,CAAC;CAC3D,CAAC;AAEF,eAAO,MAAM,kBAAkB;;;;;;;CAkBrB,CAAC;AACX,MAAM,MAAM,kBAAkB,GAC1B,CAAC,OAAO,kBAAkB,CAAC,CAAC,MAAM,OAAO,kBAAkB,CAAC,CAAC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ResponseMode } from "../utils/Constants.js";
|
|
2
2
|
/**
|
|
3
3
|
* Options for the OIDC protocol mode.
|
|
4
4
|
*/
|
|
5
5
|
export type OIDCOptions = {
|
|
6
|
-
|
|
6
|
+
responseMode?: ResponseMode;
|
|
7
7
|
defaultScopes?: Array<string>;
|
|
8
8
|
};
|
|
9
9
|
//# sourceMappingURL=OIDCOptions.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OIDCOptions.d.ts","sourceRoot":"","sources":["../../../src/authority/OIDCOptions.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"OIDCOptions.d.ts","sourceRoot":"","sources":["../../../src/authority/OIDCOptions.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAErD;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG;IACtB,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,aAAa,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CACjC,CAAC"}
|
|
@@ -6,10 +6,10 @@ import { Logger } from "../logger/Logger.js";
|
|
|
6
6
|
export declare class RegionDiscovery {
|
|
7
7
|
protected networkInterface: INetworkModule;
|
|
8
8
|
private logger;
|
|
9
|
-
protected performanceClient: IPerformanceClient
|
|
10
|
-
protected correlationId: string
|
|
9
|
+
protected performanceClient: IPerformanceClient;
|
|
10
|
+
protected correlationId: string;
|
|
11
11
|
protected static IMDS_OPTIONS: ImdsOptions;
|
|
12
|
-
constructor(networkInterface: INetworkModule, logger: Logger, performanceClient
|
|
12
|
+
constructor(networkInterface: INetworkModule, logger: Logger, performanceClient: IPerformanceClient, correlationId: string);
|
|
13
13
|
/**
|
|
14
14
|
* Detect the region from the application's environment.
|
|
15
15
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RegionDiscovery.d.ts","sourceRoot":"","sources":["../../../src/authority/RegionDiscovery.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;
|
|
1
|
+
{"version":3,"file":"RegionDiscovery.d.ts","sourceRoot":"","sources":["../../../src/authority/RegionDiscovery.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAI9D,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AACvE,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,kBAAkB,EAAE,MAAM,gDAAgD,CAAC;AAGpF,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAE7C,qBAAa,eAAe;IAExB,SAAS,CAAC,gBAAgB,EAAE,cAAc,CAAC;IAE3C,OAAO,CAAC,MAAM,CAAS;IAEvB,SAAS,CAAC,iBAAiB,EAAE,kBAAkB,CAAC;IAEhD,SAAS,CAAC,aAAa,EAAE,MAAM,CAAC;IAEhC,SAAS,CAAC,MAAM,CAAC,YAAY,EAAE,WAAW,CAIxC;gBAGE,gBAAgB,EAAE,cAAc,EAChC,MAAM,EAAE,MAAM,EACd,iBAAiB,EAAE,kBAAkB,EACrC,aAAa,EAAE,MAAM;IAQzB;;;;OAIG;IACU,YAAY,CACrB,iBAAiB,EAAE,MAAM,GAAG,SAAS,EACrC,uBAAuB,EAAE,uBAAuB,GACjD,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC;IA8EzB;;;;;OAKG;YACW,iBAAiB;IAW/B;;;;OAIG;YACW,iBAAiB;CAyBlC"}
|
|
@@ -75,8 +75,9 @@ export declare abstract class CacheManager implements ICacheManager {
|
|
|
75
75
|
/**
|
|
76
76
|
* fetch appMetadata entity from the platform cache
|
|
77
77
|
* @param appMetadataKey
|
|
78
|
+
* @param correlationId
|
|
78
79
|
*/
|
|
79
|
-
abstract getAppMetadata(appMetadataKey: string): AppMetadataEntity | null;
|
|
80
|
+
abstract getAppMetadata(appMetadataKey: string, correlationId: string): AppMetadataEntity | null;
|
|
80
81
|
/**
|
|
81
82
|
* set appMetadata entity to the platform cache
|
|
82
83
|
* @param appMetadata
|
|
@@ -85,19 +86,22 @@ export declare abstract class CacheManager implements ICacheManager {
|
|
|
85
86
|
/**
|
|
86
87
|
* fetch server telemetry entity from the platform cache
|
|
87
88
|
* @param serverTelemetryKey
|
|
89
|
+
* @param correlationId
|
|
88
90
|
*/
|
|
89
|
-
abstract getServerTelemetry(serverTelemetryKey: string): ServerTelemetryEntity | null;
|
|
91
|
+
abstract getServerTelemetry(serverTelemetryKey: string, correlationId: string): ServerTelemetryEntity | null;
|
|
90
92
|
/**
|
|
91
93
|
* set server telemetry entity to the platform cache
|
|
92
94
|
* @param serverTelemetryKey
|
|
93
95
|
* @param serverTelemetry
|
|
96
|
+
* @param correlationId
|
|
94
97
|
*/
|
|
95
98
|
abstract setServerTelemetry(serverTelemetryKey: string, serverTelemetry: ServerTelemetryEntity, correlationId: string): void;
|
|
96
99
|
/**
|
|
97
100
|
* fetch cloud discovery metadata entity from the platform cache
|
|
98
101
|
* @param key
|
|
102
|
+
* @param correlationId
|
|
99
103
|
*/
|
|
100
|
-
abstract getAuthorityMetadata(key: string): AuthorityMetadataEntity | null;
|
|
104
|
+
abstract getAuthorityMetadata(key: string, correlationId: string): AuthorityMetadataEntity | null;
|
|
101
105
|
/**
|
|
102
106
|
*
|
|
103
107
|
*/
|
|
@@ -106,13 +110,15 @@ export declare abstract class CacheManager implements ICacheManager {
|
|
|
106
110
|
* set cloud discovery metadata entity to the platform cache
|
|
107
111
|
* @param key
|
|
108
112
|
* @param value
|
|
113
|
+
* @param correlationId
|
|
109
114
|
*/
|
|
110
|
-
abstract setAuthorityMetadata(key: string, value: AuthorityMetadataEntity): void;
|
|
115
|
+
abstract setAuthorityMetadata(key: string, value: AuthorityMetadataEntity, correlationId: string): void;
|
|
111
116
|
/**
|
|
112
117
|
* fetch throttling entity from the platform cache
|
|
113
118
|
* @param throttlingCacheKey
|
|
119
|
+
* @param correlationId
|
|
114
120
|
*/
|
|
115
|
-
abstract getThrottlingCache(throttlingCacheKey: string): ThrottlingEntity | null;
|
|
121
|
+
abstract getThrottlingCache(throttlingCacheKey: string, correlationId: string): ThrottlingEntity | null;
|
|
116
122
|
/**
|
|
117
123
|
* set throttling entity to the platform cache
|
|
118
124
|
* @param throttlingCacheKey
|
|
@@ -151,7 +157,7 @@ export declare abstract class CacheManager implements ICacheManager {
|
|
|
151
157
|
* @param accountFilter - (Optional) filter to narrow down the accounts returned
|
|
152
158
|
* @returns Array of AccountInfo objects in cache
|
|
153
159
|
*/
|
|
154
|
-
getAllAccounts(accountFilter: AccountFilter, correlationId: string): AccountInfo[];
|
|
160
|
+
getAllAccounts(accountFilter: AccountFilter | undefined, correlationId: string): AccountInfo[];
|
|
155
161
|
/**
|
|
156
162
|
* Gets first tenanted AccountInfo object found based on provided filters
|
|
157
163
|
*/
|
|
@@ -177,9 +183,8 @@ export declare abstract class CacheManager implements ICacheManager {
|
|
|
177
183
|
/**
|
|
178
184
|
* saves a cache record
|
|
179
185
|
* @param cacheRecord {CacheRecord}
|
|
180
|
-
* @param correlationId {?string} correlation id
|
|
181
|
-
* @param kmsi - Keep Me Signed In
|
|
182
186
|
* @param storeInCache {?StoreInCache}
|
|
187
|
+
* @param correlationId {?string} correlation id
|
|
183
188
|
*/
|
|
184
189
|
saveCacheRecord(cacheRecord: CacheRecord, correlationId: string, kmsi: boolean, storeInCache?: StoreInCache): Promise<void>;
|
|
185
190
|
/**
|
|
@@ -197,19 +202,22 @@ export declare abstract class CacheManager implements ICacheManager {
|
|
|
197
202
|
* Returns whether or not the given credential entity matches the filter
|
|
198
203
|
* @param entity
|
|
199
204
|
* @param filter
|
|
205
|
+
* @param correlationId
|
|
200
206
|
* @returns
|
|
201
207
|
*/
|
|
202
|
-
credentialMatchesFilter(entity: ValidCredentialType, filter: CredentialFilter): boolean;
|
|
208
|
+
credentialMatchesFilter(entity: ValidCredentialType, filter: CredentialFilter, correlationId: string): boolean;
|
|
203
209
|
/**
|
|
204
210
|
* retrieve appMetadata matching all provided filters; if no filter is set, get all appMetadata
|
|
205
211
|
* @param filter
|
|
212
|
+
* @param correlationId
|
|
206
213
|
*/
|
|
207
|
-
getAppMetadataFilteredBy(filter: AppMetadataFilter): AppMetadataCache;
|
|
214
|
+
getAppMetadataFilteredBy(filter: AppMetadataFilter, correlationId: string): AppMetadataCache;
|
|
208
215
|
/**
|
|
209
216
|
* retrieve authorityMetadata that contains a matching alias
|
|
210
|
-
* @param
|
|
217
|
+
* @param host
|
|
218
|
+
* @param correlationId
|
|
211
219
|
*/
|
|
212
|
-
getAuthorityMetadataByAlias(host: string): AuthorityMetadataEntity | null;
|
|
220
|
+
getAuthorityMetadataByAlias(host: string, correlationId: string): AuthorityMetadataEntity | null;
|
|
213
221
|
/**
|
|
214
222
|
* Removes all accounts and related tokens from cache.
|
|
215
223
|
*/
|
|
@@ -225,7 +233,7 @@ export declare abstract class CacheManager implements ICacheManager {
|
|
|
225
233
|
*/
|
|
226
234
|
removeAccountContext(account: AccountInfo, correlationId: string): void;
|
|
227
235
|
/**
|
|
228
|
-
*
|
|
236
|
+
* returns a boolean if the given credential is removed
|
|
229
237
|
* @param key
|
|
230
238
|
* @param correlationId
|
|
231
239
|
*/
|
|
@@ -242,7 +250,7 @@ export declare abstract class CacheManager implements ICacheManager {
|
|
|
242
250
|
* @param performanceClient {?IPerformanceClient}
|
|
243
251
|
* @param correlationId {?string}
|
|
244
252
|
*/
|
|
245
|
-
getIdToken(account: AccountInfo, correlationId: string, tokenKeys?: TokenKeys, targetRealm?: string
|
|
253
|
+
getIdToken(account: AccountInfo, correlationId: string, tokenKeys?: TokenKeys, targetRealm?: string): IdTokenEntity | null;
|
|
246
254
|
/**
|
|
247
255
|
* Gets all idTokens matching the given filter
|
|
248
256
|
* @param filter
|
|
@@ -270,7 +278,6 @@ export declare abstract class CacheManager implements ICacheManager {
|
|
|
270
278
|
* Retrieve AccessTokenEntity from cache
|
|
271
279
|
* @param account {AccountInfo}
|
|
272
280
|
* @param request {BaseAuthRequest}
|
|
273
|
-
* @param correlationId {?string}
|
|
274
281
|
* @param tokenKeys {?TokenKeys}
|
|
275
282
|
* @param performanceClient {?IPerformanceClient}
|
|
276
283
|
*/
|
|
@@ -293,11 +300,11 @@ export declare abstract class CacheManager implements ICacheManager {
|
|
|
293
300
|
* Helper to retrieve the appropriate refresh token from cache
|
|
294
301
|
* @param account {AccountInfo}
|
|
295
302
|
* @param familyRT {boolean}
|
|
296
|
-
* @param correlationId {?string}
|
|
297
303
|
* @param tokenKeys {?TokenKeys}
|
|
298
304
|
* @param performanceClient {?IPerformanceClient}
|
|
305
|
+
* @param correlationId {?string}
|
|
299
306
|
*/
|
|
300
|
-
getRefreshToken(account: AccountInfo, familyRT: boolean, correlationId: string, tokenKeys?: TokenKeys
|
|
307
|
+
getRefreshToken(account: AccountInfo, familyRT: boolean, correlationId: string, tokenKeys?: TokenKeys): RefreshTokenEntity | null;
|
|
301
308
|
/**
|
|
302
309
|
* Validate the cache key against filter before retrieving and parsing cache value
|
|
303
310
|
* @param key
|
|
@@ -307,13 +314,13 @@ export declare abstract class CacheManager implements ICacheManager {
|
|
|
307
314
|
/**
|
|
308
315
|
* Retrieve AppMetadataEntity from cache
|
|
309
316
|
*/
|
|
310
|
-
readAppMetadataFromCache(environment: string): AppMetadataEntity | null;
|
|
317
|
+
readAppMetadataFromCache(environment: string, correlationId: string): AppMetadataEntity | null;
|
|
311
318
|
/**
|
|
312
319
|
* Return the family_id value associated with FOCI
|
|
313
320
|
* @param environment
|
|
314
321
|
* @param clientId
|
|
315
322
|
*/
|
|
316
|
-
isAppMetadataFOCI(environment: string): boolean;
|
|
323
|
+
isAppMetadataFOCI(environment: string, correlationId: string): boolean;
|
|
317
324
|
/**
|
|
318
325
|
* helper to match account ids
|
|
319
326
|
* @param value
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CacheManager.d.ts","sourceRoot":"","sources":["../../../src/cache/CacheManager.ts"],"names":[],"mappings":"AAKA,OAAO,EACH,aAAa,EACb,gBAAgB,EAChB,mBAAmB,EACnB,iBAAiB,EACjB,gBAAgB,EAChB,SAAS,EAEZ,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"CacheManager.d.ts","sourceRoot":"","sources":["../../../src/cache/CacheManager.ts"],"names":[],"mappings":"AAKA,OAAO,EACH,aAAa,EACb,gBAAgB,EAChB,mBAAmB,EACnB,iBAAiB,EACjB,gBAAgB,EAChB,SAAS,EAEZ,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAExD,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAElE,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAC5D,OAAO,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AACpE,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAC5D,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AACtE,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAK7D,OAAO,EACH,WAAW,EAGd,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AACpE,OAAO,EAAE,qBAAqB,EAAE,MAAM,qCAAqC,CAAC;AAC5E,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAg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,OAAO,CAAC,IAAI,CAAC;IAG/C,wBAAwB,IAAI,iBAAiB;IAGvC,yBAAyB,IAAI,OAAO,CAAC,IAAI,CAAC;IAGhD,yBAAyB,IAAI,kBAAkB;IAG/C,cAAc,IAAI,IAAI;IAGtB,cAAc,IAAI,iBAAiB;IAGnC,kBAAkB,IAAI,IAAI;IAG1B,kBAAkB,IAAI,qBAAqB;IAG3C,oBAAoB,IAAI,IAAI;IAG5B,oBAAoB,IAAI,uBAAuB,GAAG,IAAI;IAGtD,wBAAwB,IAAI,KAAK,CAAC,MAAM,CAAC;IAGzC,kBAAkB,IAAI,IAAI;IAG1B,kBAAkB,IAAI,gBAAgB;IAGtC,UAAU,IAAI,OAAO;IAGrB,OAAO,IAAI,MAAM,EAAE;IAGnB,cAAc,IAAI,MAAM,EAAE;IAG1B,YAAY,IAAI,SAAS;IAGzB,qBAAqB,IAAI,MAAM;IAG/B,kBAAkB,IAAI,MAAM;CAG/B"}
|
|
@@ -18,9 +18,5 @@ export type AccessTokenEntity = CredentialEntity & {
|
|
|
18
18
|
refreshOn?: string;
|
|
19
19
|
/** Matches the authentication scheme for which the token was issued (i.e. Bearer or pop) */
|
|
20
20
|
tokenType?: AuthenticationScheme;
|
|
21
|
-
/** Stringified claims object */
|
|
22
|
-
requestedClaims?: string;
|
|
23
|
-
/** Matches the SHA 256 hash of the claims object included in the token request */
|
|
24
|
-
requestedClaimsHash?: string;
|
|
25
21
|
};
|
|
26
22
|
//# sourceMappingURL=AccessTokenEntity.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AccessTokenEntity.d.ts","sourceRoot":"","sources":["../../../../src/cache/entities/AccessTokenEntity.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAEhE;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG,gBAAgB,GAAG;IAC/C,2EAA2E;IAC3E,KAAK,EAAE,MAAM,CAAC;IACd,kGAAkG;IAClG,MAAM,EAAE,MAAM,CAAC;IACf,gEAAgE;IAChE,QAAQ,EAAE,MAAM,CAAC;IACjB,mGAAmG;IACnG,SAAS,EAAE,MAAM,CAAC;IAClB,qIAAqI;IACrI,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,iCAAiC;IACjC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,4FAA4F;IAC5F,SAAS,CAAC,EAAE,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"AccessTokenEntity.d.ts","sourceRoot":"","sources":["../../../../src/cache/entities/AccessTokenEntity.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAEhE;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG,gBAAgB,GAAG;IAC/C,2EAA2E;IAC3E,KAAK,EAAE,MAAM,CAAC;IACd,kGAAkG;IAClG,MAAM,EAAE,MAAM,CAAC;IACf,gEAAgE;IAChE,QAAQ,EAAE,MAAM,CAAC;IACjB,mGAAmG;IACnG,SAAS,EAAE,MAAM,CAAC;IAClB,qIAAqI;IACrI,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,iCAAiC;IACjC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,4FAA4F;IAC5F,SAAS,CAAC,EAAE,oBAAoB,CAAC;CACpC,CAAC"}
|
|
@@ -1,9 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { ICrypto } from "../../crypto/ICrypto.js";
|
|
3
|
-
import { AccountInfo, TenantProfile, DataBoundary } from "../../account/AccountInfo.js";
|
|
4
|
-
import { AuthorityType } from "../../authority/AuthorityType.js";
|
|
5
|
-
import { Logger } from "../../logger/Logger.js";
|
|
6
|
-
import { TokenClaims } from "../../account/TokenClaims.js";
|
|
1
|
+
import { TenantProfile, DataBoundary } from "../../account/AccountInfo.js";
|
|
7
2
|
/**
|
|
8
3
|
* Type that defines required and optional parameters for an Account field (based on universal cache schema implemented by all MSALs).
|
|
9
4
|
*
|
|
@@ -27,7 +22,7 @@ import { TokenClaims } from "../../account/TokenClaims.js";
|
|
|
27
22
|
* }
|
|
28
23
|
* @internal
|
|
29
24
|
*/
|
|
30
|
-
export
|
|
25
|
+
export type AccountEntity = {
|
|
31
26
|
homeAccountId: string;
|
|
32
27
|
environment: string;
|
|
33
28
|
realm: string;
|
|
@@ -43,55 +38,8 @@ export declare class AccountEntity {
|
|
|
43
38
|
msGraphHost?: string;
|
|
44
39
|
nativeAccountId?: string;
|
|
45
40
|
tenantProfiles?: Array<TenantProfile>;
|
|
41
|
+
/** Timestamp when the entry was last updated */
|
|
46
42
|
lastUpdatedAt: string;
|
|
47
43
|
dataBoundary?: DataBoundary;
|
|
48
|
-
|
|
49
|
-
* Returns the AccountInfo interface for this account.
|
|
50
|
-
*/
|
|
51
|
-
static getAccountInfo(accountEntity: AccountEntity): AccountInfo;
|
|
52
|
-
/**
|
|
53
|
-
* Returns true if the account entity is in single tenant format (outdated), false otherwise
|
|
54
|
-
*/
|
|
55
|
-
isSingleTenant(): boolean;
|
|
56
|
-
/**
|
|
57
|
-
* Build Account cache from IdToken, clientInfo and authority/policy. Associated with AAD.
|
|
58
|
-
* @param accountDetails
|
|
59
|
-
*/
|
|
60
|
-
static createAccount(accountDetails: {
|
|
61
|
-
homeAccountId: string;
|
|
62
|
-
idTokenClaims?: TokenClaims;
|
|
63
|
-
clientInfo?: string;
|
|
64
|
-
cloudGraphHostName?: string;
|
|
65
|
-
msGraphHost?: string;
|
|
66
|
-
environment?: string;
|
|
67
|
-
nativeAccountId?: string;
|
|
68
|
-
tenantProfiles?: Array<TenantProfile>;
|
|
69
|
-
}, authority: Authority, base64Decode?: (input: string) => string): AccountEntity;
|
|
70
|
-
/**
|
|
71
|
-
* Creates an AccountEntity object from AccountInfo
|
|
72
|
-
* @param accountInfo
|
|
73
|
-
* @param cloudGraphHostName
|
|
74
|
-
* @param msGraphHost
|
|
75
|
-
* @returns
|
|
76
|
-
*/
|
|
77
|
-
static createFromAccountInfo(accountInfo: AccountInfo, cloudGraphHostName?: string, msGraphHost?: string): AccountEntity;
|
|
78
|
-
/**
|
|
79
|
-
* Generate HomeAccountId from server response
|
|
80
|
-
* @param serverClientInfo
|
|
81
|
-
* @param authType
|
|
82
|
-
*/
|
|
83
|
-
static generateHomeAccountId(serverClientInfo: string, authType: AuthorityType, logger: Logger, cryptoObj: ICrypto, idTokenClaims?: TokenClaims): string;
|
|
84
|
-
/**
|
|
85
|
-
* Validates an entity: checks for all expected params
|
|
86
|
-
* @param entity
|
|
87
|
-
*/
|
|
88
|
-
static isAccountEntity(entity: object): entity is AccountEntity;
|
|
89
|
-
/**
|
|
90
|
-
* Helper function to determine whether 2 accountInfo objects represent the same account
|
|
91
|
-
* @param accountA
|
|
92
|
-
* @param accountB
|
|
93
|
-
* @param compareClaims - If set to true idTokenClaims will also be compared to determine account equality
|
|
94
|
-
*/
|
|
95
|
-
static accountInfoIsEqual(accountA: AccountInfo | null, accountB: AccountInfo | null, compareClaims?: boolean): boolean;
|
|
96
|
-
}
|
|
44
|
+
};
|
|
97
45
|
//# sourceMappingURL=AccountEntity.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AccountEntity.d.ts","sourceRoot":"","sources":["../../../../src/cache/entities/AccountEntity.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AccountEntity.d.ts","sourceRoot":"","sources":["../../../../src/cache/entities/AccountEntity.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAE3E;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,MAAM,MAAM,aAAa,GAAG;IACxB,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,cAAc,EAAE,MAAM,CAAC;IACvB,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,cAAc,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,CAAC;IACtC,gDAAgD;IAChD,aAAa,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,YAAY,CAAC;CAC/B,CAAC"}
|
|
@@ -25,8 +25,6 @@ export type CredentialEntity = {
|
|
|
25
25
|
tokenType?: AuthenticationScheme;
|
|
26
26
|
/** KeyId for PoP and SSH tokens stored in the kid claim */
|
|
27
27
|
keyId?: string;
|
|
28
|
-
/** Matches the SHA 256 hash of the claims object included in the token request */
|
|
29
|
-
requestedClaimsHash?: string;
|
|
30
28
|
/** Timestamp when the entry was last updated */
|
|
31
29
|
lastUpdatedAt: string;
|
|
32
30
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CredentialEntity.d.ts","sourceRoot":"","sources":["../../../../src/cache/entities/CredentialEntity.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,cAAc,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAEhF;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC3B,kDAAkD;IAClD,aAAa,EAAE,MAAM,CAAC;IACtB,+DAA+D;IAC/D,WAAW,EAAE,MAAM,CAAC;IACpB,yBAAyB;IACzB,cAAc,EAAE,cAAc,CAAC;IAC/B,mCAAmC;IACnC,QAAQ,EAAE,MAAM,CAAC;IACjB,oCAAoC;IACpC,MAAM,EAAE,MAAM,CAAC;IACf,iEAAiE;IACjE,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,2EAA2E;IAC3E,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,kGAAkG;IAClG,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,qEAAqE;IACrE,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,4FAA4F;IAC5F,SAAS,CAAC,EAAE,oBAAoB,CAAC;IACjC,2DAA2D;IAC3D,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,
|
|
1
|
+
{"version":3,"file":"CredentialEntity.d.ts","sourceRoot":"","sources":["../../../../src/cache/entities/CredentialEntity.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,cAAc,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAEhF;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC3B,kDAAkD;IAClD,aAAa,EAAE,MAAM,CAAC;IACtB,+DAA+D;IAC/D,WAAW,EAAE,MAAM,CAAC;IACpB,yBAAyB;IACzB,cAAc,EAAE,cAAc,CAAC;IAC/B,mCAAmC;IACnC,QAAQ,EAAE,MAAM,CAAC;IACjB,oCAAoC;IACpC,MAAM,EAAE,MAAM,CAAC;IACf,iEAAiE;IACjE,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,2EAA2E;IAC3E,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,kGAAkG;IAClG,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,qEAAqE;IACrE,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,4FAA4F;IAC5F,SAAS,CAAC,EAAE,oBAAoB,CAAC;IACjC,2DAA2D;IAC3D,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,gDAAgD;IAChD,aAAa,EAAE,MAAM,CAAC;CACzB,CAAC"}
|