@azure/msal-common 15.13.0 → 16.0.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/account/AccountInfo.d.ts +0 -4
- package/dist/account/AccountInfo.d.ts.map +1 -1
- package/dist/account/AccountInfo.mjs +1 -1
- package/dist/account/AccountInfo.mjs.map +1 -1
- package/dist/account/AuthToken.mjs +1 -1
- package/dist/account/AuthToken.mjs.map +1 -1
- package/dist/account/CcsCredential.mjs +1 -1
- package/dist/account/CcsCredential.mjs.map +1 -1
- package/dist/account/ClientInfo.d.ts +1 -5
- package/dist/account/ClientInfo.d.ts.map +1 -1
- package/dist/account/ClientInfo.mjs +4 -6
- package/dist/account/ClientInfo.mjs.map +1 -1
- package/dist/account/TokenClaims.mjs +1 -1
- package/dist/account/TokenClaims.mjs.map +1 -1
- package/dist/authority/Authority.d.ts +2 -2
- package/dist/authority/Authority.d.ts.map +1 -1
- package/dist/authority/Authority.mjs +89 -105
- package/dist/authority/Authority.mjs.map +1 -1
- package/dist/authority/AuthorityFactory.d.ts +6 -2
- package/dist/authority/AuthorityFactory.d.ts.map +1 -1
- package/dist/authority/AuthorityFactory.mjs +8 -5
- package/dist/authority/AuthorityFactory.mjs.map +1 -1
- package/dist/authority/AuthorityMetadata.d.ts +2 -2
- package/dist/authority/AuthorityMetadata.d.ts.map +1 -1
- package/dist/authority/AuthorityMetadata.mjs +8 -8
- package/dist/authority/AuthorityMetadata.mjs.map +1 -1
- package/dist/authority/AuthorityOptions.d.ts +0 -1
- package/dist/authority/AuthorityOptions.d.ts.map +1 -1
- package/dist/authority/AuthorityOptions.mjs +1 -1
- package/dist/authority/AuthorityOptions.mjs.map +1 -1
- package/dist/authority/AuthorityType.mjs +1 -1
- package/dist/authority/AuthorityType.mjs.map +1 -1
- package/dist/authority/CloudInstanceDiscoveryErrorResponse.mjs +1 -1
- package/dist/authority/CloudInstanceDiscoveryResponse.mjs +1 -1
- package/dist/authority/OIDCOptions.d.ts +2 -2
- package/dist/authority/OIDCOptions.d.ts.map +1 -1
- package/dist/authority/OpenIdConfigResponse.mjs +1 -1
- package/dist/authority/ProtocolMode.mjs +1 -1
- package/dist/authority/ProtocolMode.mjs.map +1 -1
- package/dist/authority/RegionDiscovery.d.ts +3 -3
- package/dist/authority/RegionDiscovery.d.ts.map +1 -1
- package/dist/authority/RegionDiscovery.mjs +14 -15
- package/dist/authority/RegionDiscovery.mjs.map +1 -1
- package/dist/cache/CacheManager.d.ts +25 -17
- package/dist/cache/CacheManager.d.ts.map +1 -1
- package/dist/cache/CacheManager.mjs +69 -80
- package/dist/cache/CacheManager.mjs.map +1 -1
- package/dist/cache/entities/AccessTokenEntity.d.ts +0 -4
- package/dist/cache/entities/AccessTokenEntity.d.ts.map +1 -1
- package/dist/cache/entities/AccountEntity.d.ts +4 -57
- package/dist/cache/entities/AccountEntity.d.ts.map +1 -1
- package/dist/cache/entities/CredentialEntity.d.ts +0 -2
- package/dist/cache/entities/CredentialEntity.d.ts.map +1 -1
- package/dist/cache/interface/ICacheManager.d.ts +41 -12
- package/dist/cache/interface/ICacheManager.d.ts.map +1 -1
- package/dist/cache/persistence/TokenCacheContext.mjs +1 -1
- package/dist/cache/persistence/TokenCacheContext.mjs.map +1 -1
- package/dist/cache/utils/AccountEntityUtils.d.ts +60 -0
- package/dist/cache/utils/AccountEntityUtils.d.ts.map +1 -0
- package/dist/cache/utils/AccountEntityUtils.mjs +212 -0
- package/dist/cache/utils/AccountEntityUtils.mjs.map +1 -0
- package/dist/cache/utils/CacheHelpers.d.ts +2 -2
- package/dist/cache/utils/CacheHelpers.d.ts.map +1 -1
- package/dist/cache/utils/CacheHelpers.mjs +10 -13
- package/dist/cache/utils/CacheHelpers.mjs.map +1 -1
- package/dist/cache/utils/CacheTypes.d.ts +0 -1
- package/dist/cache/utils/CacheTypes.d.ts.map +1 -1
- package/dist/client/AuthorizationCodeClient.d.ts +1 -1
- package/dist/client/AuthorizationCodeClient.d.ts.map +1 -1
- package/dist/client/AuthorizationCodeClient.mjs +16 -20
- package/dist/client/AuthorizationCodeClient.mjs.map +1 -1
- package/dist/client/BaseClient.d.ts +3 -3
- package/dist/client/BaseClient.d.ts.map +1 -1
- package/dist/client/BaseClient.mjs +7 -12
- package/dist/client/BaseClient.mjs.map +1 -1
- package/dist/client/RefreshTokenClient.d.ts +1 -1
- package/dist/client/RefreshTokenClient.d.ts.map +1 -1
- package/dist/client/RefreshTokenClient.mjs +22 -27
- package/dist/client/RefreshTokenClient.mjs.map +1 -1
- package/dist/client/SilentFlowClient.d.ts +1 -1
- package/dist/client/SilentFlowClient.d.ts.map +1 -1
- package/dist/client/SilentFlowClient.mjs +8 -12
- package/dist/client/SilentFlowClient.mjs.map +1 -1
- package/dist/config/ClientConfiguration.d.ts +2 -22
- package/dist/config/ClientConfiguration.d.ts.map +1 -1
- package/dist/config/ClientConfiguration.mjs +9 -15
- package/dist/config/ClientConfiguration.mjs.map +1 -1
- package/dist/constants/AADServerParamKeys.mjs +1 -1
- package/dist/crypto/ICrypto.d.ts +5 -3
- package/dist/crypto/ICrypto.d.ts.map +1 -1
- package/dist/crypto/ICrypto.mjs +1 -1
- package/dist/crypto/ICrypto.mjs.map +1 -1
- package/dist/crypto/JoseHeader.mjs +1 -1
- package/dist/crypto/JoseHeader.mjs.map +1 -1
- package/dist/crypto/PopTokenGenerator.d.ts +2 -2
- package/dist/crypto/PopTokenGenerator.d.ts.map +1 -1
- package/dist/crypto/PopTokenGenerator.mjs +3 -5
- package/dist/crypto/PopTokenGenerator.mjs.map +1 -1
- package/dist/error/AuthError.d.ts +1 -18
- package/dist/error/AuthError.d.ts.map +1 -1
- package/dist/error/AuthError.mjs +12 -34
- package/dist/error/AuthError.mjs.map +1 -1
- package/dist/error/AuthErrorCodes.mjs +1 -1
- package/dist/error/CacheError.d.ts +1 -6
- package/dist/error/CacheError.d.ts.map +1 -1
- package/dist/error/CacheError.mjs +6 -13
- package/dist/error/CacheError.mjs.map +1 -1
- package/dist/error/CacheErrorCodes.mjs +1 -1
- package/dist/error/ClientAuthError.d.ts +0 -224
- package/dist/error/ClientAuthError.d.ts.map +1 -1
- package/dist/error/ClientAuthError.mjs +3 -235
- package/dist/error/ClientAuthError.mjs.map +1 -1
- package/dist/error/ClientAuthErrorCodes.d.ts +0 -8
- package/dist/error/ClientAuthErrorCodes.d.ts.map +1 -1
- package/dist/error/ClientAuthErrorCodes.mjs +2 -10
- package/dist/error/ClientAuthErrorCodes.mjs.map +1 -1
- package/dist/error/ClientConfigurationError.d.ts +0 -123
- package/dist/error/ClientConfigurationError.d.ts.map +1 -1
- package/dist/error/ClientConfigurationError.mjs +3 -129
- package/dist/error/ClientConfigurationError.mjs.map +1 -1
- package/dist/error/ClientConfigurationErrorCodes.d.ts +0 -2
- package/dist/error/ClientConfigurationErrorCodes.d.ts.map +1 -1
- package/dist/error/ClientConfigurationErrorCodes.mjs +3 -5
- package/dist/error/ClientConfigurationErrorCodes.mjs.map +1 -1
- package/dist/error/InteractionRequiredAuthError.d.ts +1 -19
- package/dist/error/InteractionRequiredAuthError.d.ts.map +1 -1
- package/dist/error/InteractionRequiredAuthError.mjs +10 -35
- package/dist/error/InteractionRequiredAuthError.mjs.map +1 -1
- package/dist/error/InteractionRequiredAuthErrorCodes.mjs +1 -1
- package/dist/error/JoseHeaderError.d.ts +0 -4
- package/dist/error/JoseHeaderError.d.ts.map +1 -1
- package/dist/error/JoseHeaderError.mjs +3 -8
- package/dist/error/JoseHeaderError.mjs.map +1 -1
- package/dist/error/JoseHeaderErrorCodes.mjs +1 -1
- package/dist/error/NetworkError.mjs +1 -1
- package/dist/error/NetworkError.mjs.map +1 -1
- package/dist/error/ServerError.mjs +1 -1
- package/dist/error/ServerError.mjs.map +1 -1
- package/dist/exports-browser-only.d.ts +4 -3
- package/dist/exports-browser-only.d.ts.map +1 -1
- package/dist/exports-common.d.ts +8 -6
- package/dist/exports-common.d.ts.map +1 -1
- package/dist/exports-node-only.d.ts +1 -4
- package/dist/exports-node-only.d.ts.map +1 -1
- package/dist/index-browser.mjs +12 -8
- package/dist/index-browser.mjs.map +1 -1
- package/dist/index-node.mjs +10 -7
- package/dist/index-node.mjs.map +1 -1
- package/dist/index.mjs +12 -8
- package/dist/index.mjs.map +1 -1
- package/dist/logger/Logger.d.ts +12 -13
- package/dist/logger/Logger.d.ts.map +1 -1
- package/dist/logger/Logger.mjs +16 -21
- package/dist/logger/Logger.mjs.map +1 -1
- package/dist/network/INetworkModule.mjs +1 -1
- package/dist/network/INetworkModule.mjs.map +1 -1
- package/dist/network/RequestThumbprint.mjs +1 -1
- package/dist/network/ThrottlingUtils.d.ts.map +1 -1
- package/dist/network/ThrottlingUtils.mjs +6 -7
- package/dist/network/ThrottlingUtils.mjs.map +1 -1
- package/dist/packageMetadata.d.ts +1 -1
- package/dist/packageMetadata.d.ts.map +1 -1
- package/dist/packageMetadata.mjs +2 -2
- package/dist/protocol/Authorize.d.ts +1 -2
- package/dist/protocol/Authorize.d.ts.map +1 -1
- package/dist/protocol/Authorize.mjs +14 -14
- package/dist/protocol/Authorize.mjs.map +1 -1
- package/dist/request/AuthenticationHeaderParser.d.ts.map +1 -1
- package/dist/request/AuthenticationHeaderParser.mjs +3 -3
- package/dist/request/AuthenticationHeaderParser.mjs.map +1 -1
- package/dist/request/BaseAuthRequest.d.ts +1 -7
- package/dist/request/BaseAuthRequest.d.ts.map +1 -1
- package/dist/request/RequestParameterBuilder.d.ts +3 -9
- package/dist/request/RequestParameterBuilder.d.ts.map +1 -1
- package/dist/request/RequestParameterBuilder.mjs +7 -20
- package/dist/request/RequestParameterBuilder.mjs.map +1 -1
- package/dist/request/ScopeSet.mjs +5 -5
- package/dist/request/ScopeSet.mjs.map +1 -1
- package/dist/response/AuthenticationResult.d.ts +1 -1
- package/dist/response/AuthenticationResult.d.ts.map +1 -1
- package/dist/response/ResponseHandler.d.ts +6 -5
- package/dist/response/ResponseHandler.d.ts.map +1 -1
- package/dist/response/ResponseHandler.mjs +39 -41
- package/dist/response/ResponseHandler.mjs.map +1 -1
- package/dist/telemetry/performance/IPerformanceClient.d.ts +1 -31
- package/dist/telemetry/performance/IPerformanceClient.d.ts.map +1 -1
- package/dist/telemetry/performance/PerformanceClient.d.ts +6 -85
- package/dist/telemetry/performance/PerformanceClient.d.ts.map +1 -1
- package/dist/telemetry/performance/PerformanceClient.mjs +28 -188
- package/dist/telemetry/performance/PerformanceClient.mjs.map +1 -1
- package/dist/telemetry/performance/PerformanceEvent.d.ts +0 -282
- package/dist/telemetry/performance/PerformanceEvent.d.ts.map +1 -1
- package/dist/telemetry/performance/PerformanceEvent.mjs +2 -483
- package/dist/telemetry/performance/PerformanceEvent.mjs.map +1 -1
- package/dist/telemetry/performance/PerformanceEvents.d.ts +65 -0
- package/dist/telemetry/performance/PerformanceEvents.d.ts.map +1 -0
- package/dist/telemetry/performance/PerformanceEvents.mjs +73 -0
- package/dist/telemetry/performance/PerformanceEvents.mjs.map +1 -0
- package/dist/telemetry/performance/StubPerformanceClient.d.ts +0 -4
- package/dist/telemetry/performance/StubPerformanceClient.d.ts.map +1 -1
- package/dist/telemetry/performance/StubPerformanceClient.mjs +2 -26
- package/dist/telemetry/performance/StubPerformanceClient.mjs.map +1 -1
- package/dist/telemetry/server/ServerTelemetryManager.d.ts +2 -2
- package/dist/telemetry/server/ServerTelemetryManager.d.ts.map +1 -1
- package/dist/telemetry/server/ServerTelemetryManager.mjs +28 -30
- package/dist/telemetry/server/ServerTelemetryManager.mjs.map +1 -1
- package/dist/url/UrlString.d.ts +0 -5
- package/dist/url/UrlString.d.ts.map +1 -1
- package/dist/url/UrlString.mjs +5 -13
- package/dist/url/UrlString.mjs.map +1 -1
- package/dist/utils/ClientAssertionUtils.mjs +1 -1
- package/dist/utils/ClientAssertionUtils.mjs.map +1 -1
- package/dist/utils/Constants.d.ts +81 -117
- package/dist/utils/Constants.d.ts.map +1 -1
- package/dist/utils/Constants.mjs +100 -131
- package/dist/utils/Constants.mjs.map +1 -1
- package/dist/utils/FunctionWrappers.d.ts +2 -2
- package/dist/utils/FunctionWrappers.d.ts.map +1 -1
- package/dist/utils/FunctionWrappers.mjs +19 -20
- package/dist/utils/FunctionWrappers.mjs.map +1 -1
- package/dist/utils/ProtocolUtils.mjs +7 -7
- package/dist/utils/ProtocolUtils.mjs.map +1 -1
- package/dist/utils/StringUtils.mjs +1 -1
- package/dist/utils/StringUtils.mjs.map +1 -1
- package/dist/utils/TimeUtils.mjs +1 -1
- package/dist/utils/TimeUtils.mjs.map +1 -1
- package/dist/utils/UrlUtils.d.ts +1 -2
- package/dist/utils/UrlUtils.d.ts.map +1 -1
- package/dist/utils/UrlUtils.mjs +3 -10
- package/dist/utils/UrlUtils.mjs.map +1 -1
- package/lib/index-browser.cjs +29 -222
- package/lib/index-browser.cjs.map +1 -1
- package/lib/{index-node-D8Iaiqq3.js → index-node-FrCFfFuh.js} +1606 -2493
- package/lib/index-node-FrCFfFuh.js.map +1 -0
- package/lib/index-node.cjs +4 -33
- package/lib/index-node.cjs.map +1 -1
- package/lib/index.cjs +3 -33
- package/lib/index.cjs.map +1 -1
- package/lib/types/account/AccountInfo.d.ts +0 -4
- package/lib/types/account/AccountInfo.d.ts.map +1 -1
- package/lib/types/account/ClientInfo.d.ts +1 -5
- package/lib/types/account/ClientInfo.d.ts.map +1 -1
- package/lib/types/authority/Authority.d.ts +2 -2
- package/lib/types/authority/Authority.d.ts.map +1 -1
- package/lib/types/authority/AuthorityFactory.d.ts +6 -2
- package/lib/types/authority/AuthorityFactory.d.ts.map +1 -1
- package/lib/types/authority/AuthorityMetadata.d.ts +2 -2
- package/lib/types/authority/AuthorityMetadata.d.ts.map +1 -1
- package/lib/types/authority/AuthorityOptions.d.ts +0 -1
- package/lib/types/authority/AuthorityOptions.d.ts.map +1 -1
- package/lib/types/authority/OIDCOptions.d.ts +2 -2
- package/lib/types/authority/OIDCOptions.d.ts.map +1 -1
- package/lib/types/authority/RegionDiscovery.d.ts +3 -3
- package/lib/types/authority/RegionDiscovery.d.ts.map +1 -1
- package/lib/types/cache/CacheManager.d.ts +25 -17
- package/lib/types/cache/CacheManager.d.ts.map +1 -1
- package/lib/types/cache/entities/AccessTokenEntity.d.ts +0 -4
- package/lib/types/cache/entities/AccessTokenEntity.d.ts.map +1 -1
- package/lib/types/cache/entities/AccountEntity.d.ts +4 -57
- package/lib/types/cache/entities/AccountEntity.d.ts.map +1 -1
- package/lib/types/cache/entities/CredentialEntity.d.ts +0 -2
- package/lib/types/cache/entities/CredentialEntity.d.ts.map +1 -1
- package/lib/types/cache/interface/ICacheManager.d.ts +41 -12
- package/lib/types/cache/interface/ICacheManager.d.ts.map +1 -1
- package/lib/types/cache/utils/AccountEntityUtils.d.ts +60 -0
- package/lib/types/cache/utils/AccountEntityUtils.d.ts.map +1 -0
- package/lib/types/cache/utils/CacheHelpers.d.ts +2 -2
- package/lib/types/cache/utils/CacheHelpers.d.ts.map +1 -1
- package/lib/types/cache/utils/CacheTypes.d.ts +0 -1
- package/lib/types/cache/utils/CacheTypes.d.ts.map +1 -1
- package/lib/types/client/AuthorizationCodeClient.d.ts +1 -1
- package/lib/types/client/AuthorizationCodeClient.d.ts.map +1 -1
- package/lib/types/client/BaseClient.d.ts +3 -3
- package/lib/types/client/BaseClient.d.ts.map +1 -1
- package/lib/types/client/RefreshTokenClient.d.ts +1 -1
- package/lib/types/client/RefreshTokenClient.d.ts.map +1 -1
- package/lib/types/client/SilentFlowClient.d.ts +1 -1
- package/lib/types/client/SilentFlowClient.d.ts.map +1 -1
- package/lib/types/config/ClientConfiguration.d.ts +2 -22
- package/lib/types/config/ClientConfiguration.d.ts.map +1 -1
- package/lib/types/crypto/ICrypto.d.ts +5 -3
- package/lib/types/crypto/ICrypto.d.ts.map +1 -1
- package/lib/types/crypto/PopTokenGenerator.d.ts +2 -2
- package/lib/types/crypto/PopTokenGenerator.d.ts.map +1 -1
- package/lib/types/error/AuthError.d.ts +1 -18
- package/lib/types/error/AuthError.d.ts.map +1 -1
- package/lib/types/error/CacheError.d.ts +1 -6
- package/lib/types/error/CacheError.d.ts.map +1 -1
- package/lib/types/error/ClientAuthError.d.ts +0 -224
- package/lib/types/error/ClientAuthError.d.ts.map +1 -1
- package/lib/types/error/ClientAuthErrorCodes.d.ts +0 -8
- package/lib/types/error/ClientAuthErrorCodes.d.ts.map +1 -1
- package/lib/types/error/ClientConfigurationError.d.ts +0 -123
- package/lib/types/error/ClientConfigurationError.d.ts.map +1 -1
- package/lib/types/error/ClientConfigurationErrorCodes.d.ts +0 -2
- package/lib/types/error/ClientConfigurationErrorCodes.d.ts.map +1 -1
- package/lib/types/error/InteractionRequiredAuthError.d.ts +1 -19
- package/lib/types/error/InteractionRequiredAuthError.d.ts.map +1 -1
- package/lib/types/error/JoseHeaderError.d.ts +0 -4
- package/lib/types/error/JoseHeaderError.d.ts.map +1 -1
- package/lib/types/exports-browser-only.d.ts +4 -3
- package/lib/types/exports-browser-only.d.ts.map +1 -1
- package/lib/types/exports-common.d.ts +8 -6
- package/lib/types/exports-common.d.ts.map +1 -1
- package/lib/types/exports-node-only.d.ts +1 -4
- package/lib/types/exports-node-only.d.ts.map +1 -1
- package/lib/types/logger/Logger.d.ts +12 -13
- package/lib/types/logger/Logger.d.ts.map +1 -1
- package/lib/types/network/ThrottlingUtils.d.ts.map +1 -1
- package/lib/types/packageMetadata.d.ts +1 -1
- package/lib/types/packageMetadata.d.ts.map +1 -1
- package/lib/types/protocol/Authorize.d.ts +1 -2
- package/lib/types/protocol/Authorize.d.ts.map +1 -1
- package/lib/types/request/AuthenticationHeaderParser.d.ts.map +1 -1
- package/lib/types/request/BaseAuthRequest.d.ts +1 -7
- package/lib/types/request/BaseAuthRequest.d.ts.map +1 -1
- package/lib/types/request/RequestParameterBuilder.d.ts +3 -9
- package/lib/types/request/RequestParameterBuilder.d.ts.map +1 -1
- package/lib/types/response/AuthenticationResult.d.ts +1 -1
- package/lib/types/response/AuthenticationResult.d.ts.map +1 -1
- package/lib/types/response/ResponseHandler.d.ts +6 -5
- package/lib/types/response/ResponseHandler.d.ts.map +1 -1
- package/lib/types/telemetry/performance/IPerformanceClient.d.ts +1 -31
- package/lib/types/telemetry/performance/IPerformanceClient.d.ts.map +1 -1
- package/lib/types/telemetry/performance/PerformanceClient.d.ts +6 -85
- package/lib/types/telemetry/performance/PerformanceClient.d.ts.map +1 -1
- package/lib/types/telemetry/performance/PerformanceEvent.d.ts +0 -282
- package/lib/types/telemetry/performance/PerformanceEvent.d.ts.map +1 -1
- package/lib/types/telemetry/performance/PerformanceEvents.d.ts +65 -0
- package/lib/types/telemetry/performance/PerformanceEvents.d.ts.map +1 -0
- package/lib/types/telemetry/performance/StubPerformanceClient.d.ts +0 -4
- package/lib/types/telemetry/performance/StubPerformanceClient.d.ts.map +1 -1
- package/lib/types/telemetry/server/ServerTelemetryManager.d.ts +2 -2
- package/lib/types/telemetry/server/ServerTelemetryManager.d.ts.map +1 -1
- package/lib/types/url/UrlString.d.ts +0 -5
- package/lib/types/url/UrlString.d.ts.map +1 -1
- package/lib/types/utils/Constants.d.ts +81 -117
- package/lib/types/utils/Constants.d.ts.map +1 -1
- package/lib/types/utils/FunctionWrappers.d.ts +2 -2
- package/lib/types/utils/FunctionWrappers.d.ts.map +1 -1
- package/lib/types/utils/UrlUtils.d.ts +1 -2
- package/lib/types/utils/UrlUtils.d.ts.map +1 -1
- package/package.json +120 -122
- package/src/account/AccountInfo.ts +0 -6
- package/src/account/ClientInfo.ts +4 -11
- package/src/authority/Authority.ts +145 -146
- package/src/authority/AuthorityFactory.ts +7 -7
- package/src/authority/AuthorityMetadata.ts +21 -12
- package/src/authority/AuthorityOptions.ts +0 -1
- package/src/authority/OIDCOptions.ts +2 -2
- package/src/authority/RegionDiscovery.ts +20 -33
- package/src/cache/CacheManager.ts +176 -126
- package/src/cache/entities/AccessTokenEntity.ts +0 -4
- package/src/cache/entities/AccountEntity.ts +4 -293
- package/src/cache/entities/CredentialEntity.ts +0 -2
- package/src/cache/interface/ICacheManager.ts +61 -15
- package/src/cache/utils/AccountEntityUtils.ts +287 -0
- package/src/cache/utils/CacheHelpers.ts +23 -37
- package/src/cache/utils/CacheTypes.ts +0 -1
- package/src/client/AuthorizationCodeClient.ts +28 -49
- package/src/client/BaseClient.ts +8 -20
- package/src/client/RefreshTokenClient.ts +29 -61
- package/src/client/SilentFlowClient.ts +11 -20
- package/src/config/ClientConfiguration.ts +9 -37
- package/src/crypto/ICrypto.ts +5 -3
- package/src/crypto/PopTokenGenerator.ts +3 -13
- package/src/error/AuthError.ts +11 -30
- package/src/error/CacheError.ts +4 -15
- package/src/error/ClientAuthError.ts +1 -311
- package/src/error/ClientAuthErrorCodes.ts +0 -8
- package/src/error/ClientConfigurationError.ts +1 -194
- package/src/error/ClientConfigurationErrorCodes.ts +0 -3
- package/src/error/InteractionRequiredAuthError.ts +8 -48
- package/src/error/JoseHeaderError.ts +1 -8
- package/src/exports-browser-only.ts +2 -6
- package/src/exports-common.ts +4 -34
- package/src/exports-node-only.ts +1 -4
- package/src/logger/Logger.ts +26 -39
- package/src/network/ThrottlingUtils.ts +12 -15
- package/src/packageMetadata.ts +1 -1
- package/src/protocol/Authorize.ts +24 -20
- package/src/request/AuthenticationHeaderParser.ts +2 -4
- package/src/request/BaseAuthRequest.ts +1 -7
- package/src/request/RequestParameterBuilder.ts +30 -45
- package/src/request/ScopeSet.ts +4 -4
- package/src/response/AuthenticationResult.ts +1 -1
- package/src/response/ResponseHandler.ts +53 -58
- package/src/telemetry/performance/IPerformanceClient.ts +1 -43
- package/src/telemetry/performance/PerformanceClient.ts +32 -295
- package/src/telemetry/performance/PerformanceEvent.ts +0 -586
- package/src/telemetry/performance/PerformanceEvents.ts +97 -0
- package/src/telemetry/performance/StubPerformanceClient.ts +0 -16
- package/src/telemetry/server/ServerTelemetryManager.ts +33 -44
- package/src/url/UrlString.ts +3 -12
- package/src/utils/Constants.ts +103 -146
- package/src/utils/FunctionWrappers.ts +28 -29
- package/src/utils/ProtocolUtils.ts +6 -6
- package/src/utils/UrlUtils.ts +2 -15
- package/dist/cache/entities/AccountEntity.mjs +0 -232
- package/dist/cache/entities/AccountEntity.mjs.map +0 -1
- package/dist/request/CommonClientCredentialRequest.d.ts +0 -18
- package/dist/request/CommonClientCredentialRequest.d.ts.map +0 -1
- package/dist/request/CommonDeviceCodeRequest.d.ts +0 -22
- package/dist/request/CommonDeviceCodeRequest.d.ts.map +0 -1
- package/dist/request/CommonOnBehalfOfRequest.d.ts +0 -14
- package/dist/request/CommonOnBehalfOfRequest.d.ts.map +0 -1
- package/dist/request/CommonUsernamePasswordRequest.d.ts +0 -18
- package/dist/request/CommonUsernamePasswordRequest.d.ts.map +0 -1
- package/lib/index-node-D8Iaiqq3.js.map +0 -1
- package/lib/types/request/CommonClientCredentialRequest.d.ts +0 -18
- package/lib/types/request/CommonClientCredentialRequest.d.ts.map +0 -1
- package/lib/types/request/CommonDeviceCodeRequest.d.ts +0 -22
- package/lib/types/request/CommonDeviceCodeRequest.d.ts.map +0 -1
- package/lib/types/request/CommonOnBehalfOfRequest.d.ts +0 -14
- package/lib/types/request/CommonOnBehalfOfRequest.d.ts.map +0 -1
- package/lib/types/request/CommonUsernamePasswordRequest.d.ts +0 -18
- package/lib/types/request/CommonUsernamePasswordRequest.d.ts.map +0 -1
- package/src/request/CommonClientCredentialRequest.ts +0 -23
- package/src/request/CommonDeviceCodeRequest.ts +0 -31
- package/src/request/CommonOnBehalfOfRequest.ts +0 -19
- package/src/request/CommonUsernamePasswordRequest.ts +0 -23
package/lib/index.cjs
CHANGED
|
@@ -1,21 +1,18 @@
|
|
|
1
|
-
/*! @azure/msal-common
|
|
1
|
+
/*! @azure/msal-common v16.0.0-alpha.0 2025-10-02 */
|
|
2
2
|
'use strict';
|
|
3
3
|
'use strict';
|
|
4
4
|
|
|
5
|
-
var indexNode = require('./index-node-
|
|
5
|
+
var indexNode = require('./index-node-FrCFfFuh.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;
|
|
@@ -23,71 +20,44 @@ exports.AuthorizationCodeClient = indexNode.AuthorizationCodeClient;
|
|
|
23
20
|
exports.AuthorizeProtocol = indexNode.Authorize;
|
|
24
21
|
exports.AzureCloudInstance = indexNode.AzureCloudInstance;
|
|
25
22
|
exports.BaseClient = indexNode.BaseClient;
|
|
26
|
-
exports.CacheAccountType = indexNode.CacheAccountType;
|
|
27
23
|
exports.CacheError = indexNode.CacheError;
|
|
28
24
|
exports.CacheErrorCodes = indexNode.CacheErrorCodes;
|
|
29
25
|
exports.CacheHelpers = indexNode.CacheHelpers;
|
|
30
26
|
exports.CacheManager = indexNode.CacheManager;
|
|
31
|
-
exports.CacheOutcome = indexNode.CacheOutcome;
|
|
32
|
-
exports.CacheType = indexNode.CacheType;
|
|
33
27
|
exports.CcsCredentialType = indexNode.CcsCredentialType;
|
|
34
|
-
exports.ClaimsRequestKeys = indexNode.ClaimsRequestKeys;
|
|
35
28
|
exports.ClientAssertionUtils = indexNode.ClientAssertionUtils;
|
|
36
29
|
exports.ClientAuthError = indexNode.ClientAuthError;
|
|
37
30
|
exports.ClientAuthErrorCodes = indexNode.ClientAuthErrorCodes;
|
|
38
|
-
exports.ClientAuthErrorMessage = indexNode.ClientAuthErrorMessage;
|
|
39
31
|
exports.ClientConfigurationError = indexNode.ClientConfigurationError;
|
|
40
32
|
exports.ClientConfigurationErrorCodes = indexNode.ClientConfigurationErrorCodes;
|
|
41
|
-
exports.ClientConfigurationErrorMessage = indexNode.ClientConfigurationErrorMessage;
|
|
42
|
-
exports.CodeChallengeMethodValues = indexNode.CodeChallengeMethodValues;
|
|
43
33
|
exports.Constants = indexNode.Constants;
|
|
44
|
-
exports.CredentialType = indexNode.CredentialType;
|
|
45
34
|
exports.DEFAULT_CRYPTO_IMPLEMENTATION = indexNode.DEFAULT_CRYPTO_IMPLEMENTATION;
|
|
46
35
|
exports.DEFAULT_SYSTEM_OPTIONS = indexNode.DEFAULT_SYSTEM_OPTIONS;
|
|
47
|
-
exports.DEFAULT_TOKEN_RENEWAL_OFFSET_SEC = indexNode.DEFAULT_TOKEN_RENEWAL_OFFSET_SEC;
|
|
48
36
|
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
37
|
exports.IntFields = indexNode.IntFields;
|
|
56
38
|
exports.InteractionRequiredAuthError = indexNode.InteractionRequiredAuthError;
|
|
57
39
|
exports.InteractionRequiredAuthErrorCodes = indexNode.InteractionRequiredAuthErrorCodes;
|
|
58
|
-
exports.InteractionRequiredAuthErrorMessage = indexNode.InteractionRequiredAuthErrorMessage;
|
|
59
|
-
exports.JsonWebTokenTypes = indexNode.JsonWebTokenTypes;
|
|
60
40
|
Object.defineProperty(exports, "LogLevel", {
|
|
61
41
|
enumerable: true,
|
|
62
42
|
get: function () { return indexNode.LogLevel; }
|
|
63
43
|
});
|
|
64
44
|
exports.Logger = indexNode.Logger;
|
|
65
45
|
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
46
|
exports.PerformanceEventStatus = indexNode.PerformanceEventStatus;
|
|
71
47
|
exports.PerformanceEvents = indexNode.PerformanceEvents;
|
|
72
|
-
exports.PersistentCacheKeys = indexNode.PersistentCacheKeys;
|
|
73
48
|
exports.PopTokenGenerator = indexNode.PopTokenGenerator;
|
|
74
|
-
exports.PromptValue = indexNode.PromptValue;
|
|
75
49
|
exports.ProtocolMode = indexNode.ProtocolMode;
|
|
76
50
|
exports.ProtocolUtils = indexNode.ProtocolUtils;
|
|
77
51
|
exports.RefreshTokenClient = indexNode.RefreshTokenClient;
|
|
78
52
|
exports.RequestParameterBuilder = indexNode.RequestParameterBuilder;
|
|
79
53
|
exports.ResponseHandler = indexNode.ResponseHandler;
|
|
80
|
-
exports.ResponseMode = indexNode.ResponseMode;
|
|
81
54
|
exports.ScopeSet = indexNode.ScopeSet;
|
|
82
55
|
exports.ServerError = indexNode.ServerError;
|
|
83
|
-
exports.ServerResponseType = indexNode.ServerResponseType;
|
|
84
56
|
exports.ServerTelemetryManager = indexNode.ServerTelemetryManager;
|
|
85
57
|
exports.SilentFlowClient = indexNode.SilentFlowClient;
|
|
86
58
|
exports.StringUtils = indexNode.StringUtils;
|
|
87
59
|
exports.StubPerformanceClient = indexNode.StubPerformanceClient;
|
|
88
60
|
exports.StubbedNetworkModule = indexNode.StubbedNetworkModule;
|
|
89
|
-
exports.THE_FAMILY_ID = indexNode.THE_FAMILY_ID;
|
|
90
|
-
exports.ThrottlingConstants = indexNode.ThrottlingConstants;
|
|
91
61
|
exports.ThrottlingUtils = indexNode.ThrottlingUtils;
|
|
92
62
|
exports.TimeUtils = indexNode.TimeUtils;
|
|
93
63
|
exports.TokenCacheContext = indexNode.TokenCacheContext;
|
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,5 +1,4 @@
|
|
|
1
1
|
import { TokenClaims } from "./TokenClaims.js";
|
|
2
|
-
export type DataBoundary = "EU" | "None";
|
|
3
2
|
/**
|
|
4
3
|
* Account object with the following signature:
|
|
5
4
|
* - homeAccountId - Home account identifier for this account object
|
|
@@ -12,7 +11,6 @@ export type DataBoundary = "EU" | "None";
|
|
|
12
11
|
* - idTokenClaims - Object contains claims from ID token
|
|
13
12
|
* - nativeAccountId - The user's native account ID
|
|
14
13
|
* - tenantProfiles - Map of tenant profile objects for each tenant that the account has authenticated with in the browser
|
|
15
|
-
* - dataBoundary - Data boundary extracted from clientInfo
|
|
16
14
|
*/
|
|
17
15
|
export type AccountInfo = {
|
|
18
16
|
homeAccountId: string;
|
|
@@ -29,7 +27,6 @@ export type AccountInfo = {
|
|
|
29
27
|
nativeAccountId?: string;
|
|
30
28
|
authorityType?: string;
|
|
31
29
|
tenantProfiles?: Map<string, TenantProfile>;
|
|
32
|
-
dataBoundary?: DataBoundary;
|
|
33
30
|
};
|
|
34
31
|
/**
|
|
35
32
|
* Account details that vary across tenants for the same user
|
|
@@ -44,7 +41,6 @@ export type ActiveAccountFilters = {
|
|
|
44
41
|
homeAccountId: string;
|
|
45
42
|
localAccountId: string;
|
|
46
43
|
tenantId?: string;
|
|
47
|
-
lastUpdatedAt?: string;
|
|
48
44
|
};
|
|
49
45
|
/**
|
|
50
46
|
* Returns true if tenantId matches the utid portion of homeAccountId
|
|
@@ -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;
|
|
1
|
+
{"version":3,"file":"AccountInfo.d.ts","sourceRoot":"","sources":["../../../src/account/AccountInfo.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C;;;;;;;;;;;;GAYG;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,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,aAAa,CAAC,EAAE,WAAW,GAAG;QAC1B,CAAC,GAAG,EAAE,MAAM,GACN,MAAM,GACN,MAAM,GACN,MAAM,EAAE,GACR,MAAM,GACN,SAAS,GACT,OAAO,CAAC;KACjB,CAAC;IACF,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,cAAc,CAAC,EAAE,GAAG,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC;CAC/C,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,IAAI,CAC5B,WAAW,EACX,UAAU,GAAG,gBAAgB,GAAG,MAAM,GAAG,UAAU,GAAG,WAAW,CACpE,GAAG;IACA;;OAEG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;CAC1B,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG;IAC/B,aAAa,EAAE,MAAM,CAAC;IACtB,cAAc,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF;;;;;GAKG;AACH,wBAAgB,yBAAyB,CACrC,QAAQ,CAAC,EAAE,MAAM,EACjB,aAAa,CAAC,EAAE,MAAM,GACvB,OAAO,CAMT;AAED;;;;;;;GAOG;AACH,wBAAgB,kBAAkB,CAC9B,aAAa,EAAE,MAAM,EACrB,cAAc,EAAE,MAAM,EACtB,QAAQ,EAAE,MAAM,EAChB,aAAa,CAAC,EAAE,WAAW,GAC5B,aAAa,CAsCf;AAED;;;;;GAKG;AACH,wBAAgB,8BAA8B,CAC1C,eAAe,EAAE,WAAW,EAC5B,aAAa,CAAC,EAAE,aAAa,EAC7B,aAAa,CAAC,EAAE,WAAW,EAC3B,aAAa,CAAC,EAAE,MAAM,GACvB,WAAW,CAgCb"}
|
|
@@ -1,13 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Client info object which consists of
|
|
3
|
-
* uid: user id
|
|
4
|
-
* utid: tenant id
|
|
5
|
-
* xms_tdbr: optional, only for non-US tenants
|
|
2
|
+
* Client info object which consists of two IDs. Need to add more info here.
|
|
6
3
|
*/
|
|
7
4
|
export type ClientInfo = {
|
|
8
5
|
uid: string;
|
|
9
6
|
utid: string;
|
|
10
|
-
xms_tdbr?: string;
|
|
11
7
|
};
|
|
12
8
|
/**
|
|
13
9
|
* Function to build a client info object from server clientInfo string
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ClientInfo.d.ts","sourceRoot":"","sources":["../../../src/account/ClientInfo.ts"],"names":[],"mappings":"AAWA
|
|
1
|
+
{"version":3,"file":"ClientInfo.d.ts","sourceRoot":"","sources":["../../../src/account/ClientInfo.ts"],"names":[],"mappings":"AAWA;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG;IACrB,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;CAChB,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,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAEH,oBAAoB,EACvB,MAAM,2BAA2B,CAAC;AAEnC,OAAO,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AAKtC,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;
|
|
1
|
+
{"version":3,"file":"Authority.d.ts","sourceRoot":"","sources":["../../../src/authority/Authority.ts"],"names":[],"mappings":"AAKA,OAAO,EA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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;AAEF,eAAO,MAAM,cAAc,EAAE,WA8E5B,CAAC;AAEF,eAAO,MAAM,gBAAgB;;CAAkC,CAAC;AAChE,eAAO,MAAM,yBAAyB,gCACM,CAAC;AAE7C,eAAO,MAAM,gCAAgC,EAAE,GAAG,CAAC,MAAM,CAAa,CAAC;AASvE;;;;;GAKG;AACH,wBAAgB,2BAA2B,CACvC,sBAAsB,EAAE,sBAAsB,EAC9C,MAAM,
|
|
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,sBAA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C,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
|
*/
|
|
@@ -196,19 +202,22 @@ export declare abstract class CacheManager implements ICacheManager {
|
|
|
196
202
|
* Returns whether or not the given credential entity matches the filter
|
|
197
203
|
* @param entity
|
|
198
204
|
* @param filter
|
|
205
|
+
* @param correlationId
|
|
199
206
|
* @returns
|
|
200
207
|
*/
|
|
201
|
-
credentialMatchesFilter(entity: ValidCredentialType, filter: CredentialFilter): boolean;
|
|
208
|
+
credentialMatchesFilter(entity: ValidCredentialType, filter: CredentialFilter, correlationId: string): boolean;
|
|
202
209
|
/**
|
|
203
210
|
* retrieve appMetadata matching all provided filters; if no filter is set, get all appMetadata
|
|
204
211
|
* @param filter
|
|
212
|
+
* @param correlationId
|
|
205
213
|
*/
|
|
206
|
-
getAppMetadataFilteredBy(filter: AppMetadataFilter): AppMetadataCache;
|
|
214
|
+
getAppMetadataFilteredBy(filter: AppMetadataFilter, correlationId: string): AppMetadataCache;
|
|
207
215
|
/**
|
|
208
216
|
* retrieve authorityMetadata that contains a matching alias
|
|
209
|
-
* @param
|
|
217
|
+
* @param host
|
|
218
|
+
* @param correlationId
|
|
210
219
|
*/
|
|
211
|
-
getAuthorityMetadataByAlias(host: string): AuthorityMetadataEntity | null;
|
|
220
|
+
getAuthorityMetadataByAlias(host: string, correlationId: string): AuthorityMetadataEntity | null;
|
|
212
221
|
/**
|
|
213
222
|
* Removes all accounts and related tokens from cache.
|
|
214
223
|
*/
|
|
@@ -224,7 +233,7 @@ export declare abstract class CacheManager implements ICacheManager {
|
|
|
224
233
|
*/
|
|
225
234
|
removeAccountContext(account: AccountInfo, correlationId: string): void;
|
|
226
235
|
/**
|
|
227
|
-
*
|
|
236
|
+
* returns a boolean if the given credential is removed
|
|
228
237
|
* @param key
|
|
229
238
|
* @param correlationId
|
|
230
239
|
*/
|
|
@@ -241,7 +250,7 @@ export declare abstract class CacheManager implements ICacheManager {
|
|
|
241
250
|
* @param performanceClient {?IPerformanceClient}
|
|
242
251
|
* @param correlationId {?string}
|
|
243
252
|
*/
|
|
244
|
-
getIdToken(account: AccountInfo, correlationId: string, tokenKeys?: TokenKeys, targetRealm?: string
|
|
253
|
+
getIdToken(account: AccountInfo, correlationId: string, tokenKeys?: TokenKeys, targetRealm?: string): IdTokenEntity | null;
|
|
245
254
|
/**
|
|
246
255
|
* Gets all idTokens matching the given filter
|
|
247
256
|
* @param filter
|
|
@@ -269,7 +278,6 @@ export declare abstract class CacheManager implements ICacheManager {
|
|
|
269
278
|
* Retrieve AccessTokenEntity from cache
|
|
270
279
|
* @param account {AccountInfo}
|
|
271
280
|
* @param request {BaseAuthRequest}
|
|
272
|
-
* @param correlationId {?string}
|
|
273
281
|
* @param tokenKeys {?TokenKeys}
|
|
274
282
|
* @param performanceClient {?IPerformanceClient}
|
|
275
283
|
*/
|
|
@@ -292,11 +300,11 @@ export declare abstract class CacheManager implements ICacheManager {
|
|
|
292
300
|
* Helper to retrieve the appropriate refresh token from cache
|
|
293
301
|
* @param account {AccountInfo}
|
|
294
302
|
* @param familyRT {boolean}
|
|
295
|
-
* @param correlationId {?string}
|
|
296
303
|
* @param tokenKeys {?TokenKeys}
|
|
297
304
|
* @param performanceClient {?IPerformanceClient}
|
|
305
|
+
* @param correlationId {?string}
|
|
298
306
|
*/
|
|
299
|
-
getRefreshToken(account: AccountInfo, familyRT: boolean, correlationId: string, tokenKeys?: TokenKeys
|
|
307
|
+
getRefreshToken(account: AccountInfo, familyRT: boolean, correlationId: string, tokenKeys?: TokenKeys): RefreshTokenEntity | null;
|
|
300
308
|
/**
|
|
301
309
|
* Validate the cache key against filter before retrieving and parsing cache value
|
|
302
310
|
* @param key
|
|
@@ -306,13 +314,13 @@ export declare abstract class CacheManager implements ICacheManager {
|
|
|
306
314
|
/**
|
|
307
315
|
* Retrieve AppMetadataEntity from cache
|
|
308
316
|
*/
|
|
309
|
-
readAppMetadataFromCache(environment: string): AppMetadataEntity | null;
|
|
317
|
+
readAppMetadataFromCache(environment: string, correlationId: string): AppMetadataEntity | null;
|
|
310
318
|
/**
|
|
311
319
|
* Return the family_id value associated with FOCI
|
|
312
320
|
* @param environment
|
|
313
321
|
* @param clientId
|
|
314
322
|
*/
|
|
315
|
-
isAppMetadataFOCI(environment: string): boolean;
|
|
323
|
+
isAppMetadataFOCI(environment: string, correlationId: string): boolean;
|
|
316
324
|
/**
|
|
317
325
|
* helper to match account ids
|
|
318
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,M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E;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 } 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,7 @@ 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
|
-
|
|
48
|
-
/**
|
|
49
|
-
* Returns the AccountInfo interface for this account.
|
|
50
|
-
*/
|
|
51
|
-
getAccountInfo(): 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): boolean;
|
|
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
|
-
}
|
|
43
|
+
};
|
|
97
44
|
//# 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,MAAM,8BAA8B,CAAC;AAE7D;;;;;;;;;;;;;;;;;;;;;;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;CACzB,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"}
|