@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
|
@@ -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"}
|
|
@@ -14,145 +14,174 @@ export interface ICacheManager {
|
|
|
14
14
|
/**
|
|
15
15
|
* fetch the account entity from the platform cache
|
|
16
16
|
* @param accountKey
|
|
17
|
+
* @param correlationId
|
|
17
18
|
*/
|
|
18
19
|
getAccount(accountKey: string, correlationId: string): AccountEntity | null;
|
|
19
20
|
/**
|
|
20
21
|
* set account entity in the platform cache
|
|
21
22
|
* @param account
|
|
23
|
+
* @param correlationId
|
|
22
24
|
*/
|
|
23
25
|
setAccount(account: AccountEntity, correlationId: string): Promise<void>;
|
|
24
26
|
/**
|
|
25
27
|
* fetch the idToken entity from the platform cache
|
|
26
28
|
* @param idTokenKey
|
|
29
|
+
* @param correlationId
|
|
27
30
|
*/
|
|
28
31
|
getIdTokenCredential(idTokenKey: string, correlationId: string): IdTokenEntity | null;
|
|
29
32
|
/**
|
|
30
33
|
* set idToken entity to the platform cache
|
|
31
34
|
* @param idToken
|
|
35
|
+
* @param correlationId
|
|
32
36
|
*/
|
|
33
37
|
setIdTokenCredential(idToken: IdTokenEntity, correlationId: string): Promise<void>;
|
|
34
38
|
/**
|
|
35
39
|
* fetch the idToken entity from the platform cache
|
|
36
40
|
* @param accessTokenKey
|
|
41
|
+
* @param correlationId
|
|
37
42
|
*/
|
|
38
43
|
getAccessTokenCredential(accessTokenKey: string, correlationId: string): AccessTokenEntity | null;
|
|
39
44
|
/**
|
|
40
45
|
* set idToken entity to the platform cache
|
|
41
46
|
* @param accessToken
|
|
47
|
+
* @param correlationId
|
|
42
48
|
*/
|
|
43
49
|
setAccessTokenCredential(accessToken: AccessTokenEntity, correlationId: string): Promise<void>;
|
|
44
50
|
/**
|
|
45
51
|
* fetch the idToken entity from the platform cache
|
|
46
52
|
* @param refreshTokenKey
|
|
53
|
+
* @param correlationId
|
|
47
54
|
*/
|
|
48
55
|
getRefreshTokenCredential(refreshTokenKey: string, correlationId: string): RefreshTokenEntity | null;
|
|
49
56
|
/**
|
|
50
57
|
* set idToken entity to the platform cache
|
|
51
58
|
* @param refreshToken
|
|
59
|
+
* @param correlationId
|
|
52
60
|
*/
|
|
53
61
|
setRefreshTokenCredential(refreshToken: RefreshTokenEntity, correlationId: string): Promise<void>;
|
|
54
62
|
/**
|
|
55
63
|
* fetch appMetadata entity from the platform cache
|
|
56
64
|
* @param appMetadataKey
|
|
65
|
+
* @param correlationId
|
|
57
66
|
*/
|
|
58
|
-
getAppMetadata(appMetadataKey: string): AppMetadataEntity | null;
|
|
67
|
+
getAppMetadata(appMetadataKey: string, correlationId: string): AppMetadataEntity | null;
|
|
59
68
|
/**
|
|
60
69
|
* set appMetadata entity to the platform cache
|
|
61
70
|
* @param appMetadata
|
|
71
|
+
* @param correlationId
|
|
62
72
|
*/
|
|
63
73
|
setAppMetadata(appMetadata: AppMetadataEntity, correlationId: string): void;
|
|
64
74
|
/**
|
|
65
75
|
* fetch server telemetry entity from the platform cache
|
|
66
76
|
* @param serverTelemetryKey
|
|
77
|
+
* @param correlationId
|
|
67
78
|
*/
|
|
68
|
-
getServerTelemetry(serverTelemetryKey: string): ServerTelemetryEntity | null;
|
|
79
|
+
getServerTelemetry(serverTelemetryKey: string, correlationId: string): ServerTelemetryEntity | null;
|
|
69
80
|
/**
|
|
70
81
|
* set server telemetry entity to the platform cache
|
|
71
82
|
* @param serverTelemetryKey
|
|
72
83
|
* @param serverTelemetry
|
|
84
|
+
* @param correlationId
|
|
73
85
|
*/
|
|
74
86
|
setServerTelemetry(serverTelemetryKey: string, serverTelemetry: ServerTelemetryEntity, correlationId: string): void;
|
|
75
87
|
/**
|
|
76
88
|
* fetch cloud discovery metadata entity from the platform cache
|
|
77
89
|
* @param key
|
|
90
|
+
* @param correlationId
|
|
78
91
|
*/
|
|
79
|
-
getAuthorityMetadata(key: string): AuthorityMetadataEntity | null;
|
|
92
|
+
getAuthorityMetadata(key: string, correlationId: string): AuthorityMetadataEntity | null;
|
|
80
93
|
/**
|
|
81
94
|
* Get cache keys for authority metadata
|
|
95
|
+
* @param correlationId
|
|
82
96
|
*/
|
|
83
|
-
getAuthorityMetadataKeys(): Array<string>;
|
|
97
|
+
getAuthorityMetadataKeys(correlationId: string): Array<string>;
|
|
84
98
|
/**
|
|
85
99
|
* set cloud discovery metadata entity to the platform cache
|
|
86
100
|
* @param key
|
|
87
101
|
* @param value
|
|
102
|
+
* @param correlationId
|
|
88
103
|
*/
|
|
89
|
-
setAuthorityMetadata(key: string, value: AuthorityMetadataEntity): void;
|
|
104
|
+
setAuthorityMetadata(key: string, value: AuthorityMetadataEntity, correlationId: string): void;
|
|
90
105
|
/**
|
|
91
106
|
* Provide an alias to find a matching AuthorityMetadataEntity in cache
|
|
92
107
|
* @param host
|
|
108
|
+
* @param correlationId
|
|
93
109
|
*/
|
|
94
|
-
getAuthorityMetadataByAlias(host: string): AuthorityMetadataEntity | null;
|
|
110
|
+
getAuthorityMetadataByAlias(host: string, correlationId: string): AuthorityMetadataEntity | null;
|
|
95
111
|
/**
|
|
96
112
|
* given an authority generates the cache key for authorityMetadata
|
|
97
113
|
* @param authority
|
|
114
|
+
* @param correlationId
|
|
98
115
|
*/
|
|
99
|
-
generateAuthorityMetadataCacheKey(authority: string): string;
|
|
116
|
+
generateAuthorityMetadataCacheKey(authority: string, correlationId: string): string;
|
|
100
117
|
/**
|
|
101
118
|
* fetch throttling entity from the platform cache
|
|
102
119
|
* @param throttlingCacheKey
|
|
120
|
+
* @param correlationId
|
|
103
121
|
*/
|
|
104
|
-
getThrottlingCache(throttlingCacheKey: string): ThrottlingEntity | null;
|
|
122
|
+
getThrottlingCache(throttlingCacheKey: string, correlationId: string): ThrottlingEntity | null;
|
|
105
123
|
/**
|
|
106
124
|
* set throttling entity to the platform cache
|
|
107
125
|
* @param throttlingCacheKey
|
|
108
126
|
* @param throttlingCache
|
|
127
|
+
* @param correlationId
|
|
109
128
|
*/
|
|
110
129
|
setThrottlingCache(throttlingCacheKey: string, throttlingCache: ThrottlingEntity, correlationId: string): void;
|
|
111
130
|
/**
|
|
112
131
|
* Returns all accounts in cache
|
|
132
|
+
* @param filter
|
|
133
|
+
* @param correlationId
|
|
113
134
|
*/
|
|
114
|
-
getAllAccounts(
|
|
135
|
+
getAllAccounts(filter: AccountFilter, correlationId: string): AccountInfo[];
|
|
115
136
|
/**
|
|
116
137
|
* saves a cache record
|
|
117
138
|
* @param cacheRecord
|
|
139
|
+
* @param correlationId
|
|
140
|
+
* @param storeInCache
|
|
118
141
|
*/
|
|
119
142
|
saveCacheRecord(cacheRecord: CacheRecord, correlationId: string, storeInCache?: StoreInCache): Promise<void>;
|
|
120
143
|
/**
|
|
121
144
|
* retrieve accounts matching all provided filters; if no filter is set, get all accounts
|
|
122
|
-
* @param
|
|
123
|
-
* @param
|
|
124
|
-
* @param realm
|
|
145
|
+
* @param filter
|
|
146
|
+
* @param correlationId
|
|
125
147
|
*/
|
|
126
148
|
getAccountsFilteredBy(filter: AccountFilter, correlationId: string): AccountEntity[];
|
|
127
149
|
/**
|
|
128
150
|
* Get AccountInfo object based on provided filters
|
|
129
151
|
* @param filter
|
|
152
|
+
* @param correlationId
|
|
130
153
|
*/
|
|
131
154
|
getAccountInfoFilteredBy(filter: AccountFilter, correlationId: string): AccountInfo | null;
|
|
132
155
|
/**
|
|
133
156
|
* Removes all accounts and related tokens from cache.
|
|
157
|
+
* @param correlationId
|
|
134
158
|
*/
|
|
135
159
|
removeAllAccounts(correlationId: string): void;
|
|
136
160
|
/**
|
|
137
161
|
* returns a boolean if the given account is removed
|
|
138
162
|
* @param account
|
|
163
|
+
* @param correlationId
|
|
139
164
|
*/
|
|
140
165
|
removeAccount(account: AccountInfo, correlationId: string): void;
|
|
141
166
|
/**
|
|
142
167
|
* returns a boolean if the given account is removed
|
|
143
168
|
* @param account
|
|
169
|
+
* @param correlationId
|
|
144
170
|
*/
|
|
145
171
|
removeAccountContext(account: AccountInfo, correlationId: string): void;
|
|
146
172
|
/**
|
|
147
173
|
* @param key
|
|
174
|
+
* @param correlationId
|
|
148
175
|
*/
|
|
149
176
|
removeIdToken(key: string, correlationId: string): void;
|
|
150
177
|
/**
|
|
151
178
|
* @param key
|
|
179
|
+
* @param correlationId
|
|
152
180
|
*/
|
|
153
181
|
removeAccessToken(key: string, correlationId: string): void;
|
|
154
182
|
/**
|
|
155
183
|
* @param key
|
|
184
|
+
* @param correlationId
|
|
156
185
|
*/
|
|
157
186
|
removeRefreshToken(key: string, correlationId: string): void;
|
|
158
187
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ICacheManager.d.ts","sourceRoot":"","sources":["../../../src/cache/interface/ICacheManager.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AACzD,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAC7D,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAC3D,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AACrE,OAAO,EAAE,qBAAqB,EAAE,MAAM,sCAAsC,CAAC;AAC7E,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AACnE,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAC7D,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AACrE,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AACvE,OAAO,EAAE,uBAAuB,EAAE,MAAM,wCAAwC,CAAC;AACjF,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAE7D,MAAM,WAAW,aAAa;IAC1B
|
|
1
|
+
{"version":3,"file":"ICacheManager.d.ts","sourceRoot":"","sources":["../../../src/cache/interface/ICacheManager.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AACzD,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAC7D,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAC3D,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AACrE,OAAO,EAAE,qBAAqB,EAAE,MAAM,sC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G;IACH,cAAc,CAAC,MAAM,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,GAAG,WAAW,EAAE,CAAC;IAE5E;;;;;OAKG;IACH,eAAe,CACX,WAAW,EAAE,WAAW,EACxB,aAAa,EAAE,MAAM,EACrB,YAAY,CAAC,EAAE,YAAY,GAC5B,OAAO,CAAC,IAAI,CAAC,CAAC;IAEjB;;;;OAIG;IACH,qBAAqB,CACjB,MAAM,EAAE,aAAa,EACrB,aAAa,EAAE,MAAM,GACtB,aAAa,EAAE,CAAC;IAEnB;;;;OAIG;IACH,wBAAwB,CACpB,MAAM,EAAE,aAAa,EACrB,aAAa,EAAE,MAAM,GACtB,WAAW,GAAG,IAAI,CAAC;IAEtB;;;OAGG;IACH,iBAAiB,CAAC,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAE/C;;;;OAIG;IACH,aAAa,CAAC,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAEjE;;;;OAIG;IACH,oBAAoB,CAAC,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAExE;;;OAGG;IACH,aAAa,CAAC,GAAG,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAExD;;;OAGG;IACH,iBAAiB,CAAC,GAAG,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAE5D;;;OAGG;IACH,kBAAkB,CAAC,GAAG,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;CAChE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TokenCacheContext.mjs","sources":["../../../src/cache/persistence/TokenCacheContext.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAAA;;;AAGG;AAIH;;;UAGiB,iBAAiB,CAAA;IAU9B,
|
|
1
|
+
{"version":3,"file":"TokenCacheContext.mjs","sources":["../../../src/cache/persistence/TokenCacheContext.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAAA;;;AAGG;AAIH;;;UAGiB,iBAAiB,CAAA;IAU9B,WAAA,CAAY,UAAmC,EAAE,UAAmB,EAAA;AAChE,QAAA,IAAI,CAAC,KAAK,GAAG,UAAU,CAAC;AACxB,QAAA,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;IACjC,CAAC;AAED;;AAEG;AACH,IAAA,IAAI,eAAe,GAAA;QACf,OAAO,IAAI,CAAC,UAAU,CAAC;IAC3B,CAAC;AAED;;AAEG;AACH,IAAA,IAAI,UAAU,GAAA;QACV,OAAO,IAAI,CAAC,KAAK,CAAC;IACtB,CAAC;AACJ;;;;"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { Authority } from "../../authority/Authority.js";
|
|
2
|
+
import { ICrypto } from "../../crypto/ICrypto.js";
|
|
3
|
+
import { AccountInfo, TenantProfile } 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";
|
|
7
|
+
import { AccountEntity } from "../entities/AccountEntity.js";
|
|
8
|
+
/**
|
|
9
|
+
* Generate Account Id key component as per the schema: <home_account_id>-<environment>
|
|
10
|
+
*/
|
|
11
|
+
export declare function generateAccountId(accountEntity: AccountEntity): string;
|
|
12
|
+
/**
|
|
13
|
+
* Returns the AccountInfo interface for this account.
|
|
14
|
+
*/
|
|
15
|
+
export declare function getAccountInfo(accountEntity: AccountEntity): AccountInfo;
|
|
16
|
+
/**
|
|
17
|
+
* Returns true if the account entity is in single tenant format (outdated), false otherwise
|
|
18
|
+
*/
|
|
19
|
+
export declare function isSingleTenant(accountEntity: AccountEntity): boolean;
|
|
20
|
+
/**
|
|
21
|
+
* Build Account cache from IdToken, clientInfo and authority/policy. Associated with AAD.
|
|
22
|
+
* @param accountDetails
|
|
23
|
+
*/
|
|
24
|
+
export declare function createAccountEntity(accountDetails: {
|
|
25
|
+
homeAccountId: string;
|
|
26
|
+
idTokenClaims?: TokenClaims;
|
|
27
|
+
clientInfo?: string;
|
|
28
|
+
cloudGraphHostName?: string;
|
|
29
|
+
msGraphHost?: string;
|
|
30
|
+
environment?: string;
|
|
31
|
+
nativeAccountId?: string;
|
|
32
|
+
tenantProfiles?: Array<TenantProfile>;
|
|
33
|
+
}, authority: Authority, base64Decode?: (input: string) => string): AccountEntity;
|
|
34
|
+
/**
|
|
35
|
+
* Creates an AccountEntity object from AccountInfo
|
|
36
|
+
* @param accountInfo
|
|
37
|
+
* @param cloudGraphHostName
|
|
38
|
+
* @param msGraphHost
|
|
39
|
+
* @returns
|
|
40
|
+
*/
|
|
41
|
+
export declare function createAccountEntityFromAccountInfo(accountInfo: AccountInfo, cloudGraphHostName?: string, msGraphHost?: string): AccountEntity;
|
|
42
|
+
/**
|
|
43
|
+
* Generate HomeAccountId from server response
|
|
44
|
+
* @param serverClientInfo
|
|
45
|
+
* @param authType
|
|
46
|
+
*/
|
|
47
|
+
export declare function generateHomeAccountId(serverClientInfo: string, authType: AuthorityType, logger: Logger, cryptoObj: ICrypto, correlationId: string, idTokenClaims?: TokenClaims): string;
|
|
48
|
+
/**
|
|
49
|
+
* Validates an entity: checks for all expected params
|
|
50
|
+
* @param entity
|
|
51
|
+
*/
|
|
52
|
+
export declare function isAccountEntity(entity: object): entity is AccountEntity;
|
|
53
|
+
/**
|
|
54
|
+
* Helper function to determine whether 2 accountInfo objects represent the same account
|
|
55
|
+
* @param accountA
|
|
56
|
+
* @param accountB
|
|
57
|
+
* @param compareClaims - If set to true idTokenClaims will also be compared to determine account equality
|
|
58
|
+
*/
|
|
59
|
+
export declare function accountInfoIsEqual(accountA: AccountInfo | null, accountB: AccountInfo | null, compareClaims?: boolean): boolean;
|
|
60
|
+
//# sourceMappingURL=AccountEntityUtils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AccountEntityUtils.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WAAW,CAAC,EAAE,MAAM,GACrB,aAAa,CAgBf;AAED;;;;GAIG;AACH,wBAAgB,qBAAqB,CACjC,gBAAgB,EAAE,MAAM,EACxB,QAAQ,EAAE,aAAa,EACvB,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,OAAO,EAClB,aAAa,EAAE,MAAM,EACrB,aAAa,CAAC,EAAE,WAAW,GAC5B,MAAM,CAoBR;AAED;;;GAGG;AACH,wBAAgB,eAAe,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,IAAI,aAAa,CAavE;AAED;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAC9B,QAAQ,EAAE,WAAW,GAAG,IAAI,EAC5B,QAAQ,EAAE,WAAW,GAAG,IAAI,EAC5B,aAAa,CAAC,EAAE,OAAO,GACxB,OAAO,CAyBT"}
|
|
@@ -0,0 +1,212 @@
|
|
|
1
|
+
/*! @azure/msal-common v16.0.0-alpha.0 2025-10-02 */
|
|
2
|
+
'use strict';
|
|
3
|
+
import { CACHE_KEY_SEPARATOR, CACHE_ACCOUNT_TYPE_GENERIC, CACHE_ACCOUNT_TYPE_ADFS, CACHE_ACCOUNT_TYPE_MSSTS } from '../../utils/Constants.mjs';
|
|
4
|
+
import { buildClientInfo } from '../../account/ClientInfo.mjs';
|
|
5
|
+
import { buildTenantProfile } from '../../account/AccountInfo.mjs';
|
|
6
|
+
import { createClientAuthError } from '../../error/ClientAuthError.mjs';
|
|
7
|
+
import { AuthorityType } from '../../authority/AuthorityType.mjs';
|
|
8
|
+
import { getTenantIdFromIdTokenClaims } from '../../account/TokenClaims.mjs';
|
|
9
|
+
import { ProtocolMode } from '../../authority/ProtocolMode.mjs';
|
|
10
|
+
import { invalidCacheEnvironment } from '../../error/ClientAuthErrorCodes.mjs';
|
|
11
|
+
|
|
12
|
+
/*
|
|
13
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
14
|
+
* Licensed under the MIT License.
|
|
15
|
+
*/
|
|
16
|
+
/**
|
|
17
|
+
* Generate Account Id key component as per the schema: <home_account_id>-<environment>
|
|
18
|
+
*/
|
|
19
|
+
function generateAccountId(accountEntity) {
|
|
20
|
+
const accountId = [
|
|
21
|
+
accountEntity.homeAccountId,
|
|
22
|
+
accountEntity.environment,
|
|
23
|
+
];
|
|
24
|
+
return accountId.join(CACHE_KEY_SEPARATOR).toLowerCase();
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Returns the AccountInfo interface for this account.
|
|
28
|
+
*/
|
|
29
|
+
function getAccountInfo(accountEntity) {
|
|
30
|
+
return {
|
|
31
|
+
homeAccountId: accountEntity.homeAccountId,
|
|
32
|
+
environment: accountEntity.environment,
|
|
33
|
+
tenantId: accountEntity.realm,
|
|
34
|
+
username: accountEntity.username,
|
|
35
|
+
localAccountId: accountEntity.localAccountId,
|
|
36
|
+
loginHint: accountEntity.loginHint,
|
|
37
|
+
name: accountEntity.name,
|
|
38
|
+
nativeAccountId: accountEntity.nativeAccountId,
|
|
39
|
+
authorityType: accountEntity.authorityType,
|
|
40
|
+
// Deserialize tenant profiles array into a Map
|
|
41
|
+
tenantProfiles: new Map((accountEntity.tenantProfiles || []).map((tenantProfile) => {
|
|
42
|
+
return [tenantProfile.tenantId, tenantProfile];
|
|
43
|
+
})),
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Returns true if the account entity is in single tenant format (outdated), false otherwise
|
|
48
|
+
*/
|
|
49
|
+
function isSingleTenant(accountEntity) {
|
|
50
|
+
return !accountEntity.tenantProfiles;
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Build Account cache from IdToken, clientInfo and authority/policy. Associated with AAD.
|
|
54
|
+
* @param accountDetails
|
|
55
|
+
*/
|
|
56
|
+
function createAccountEntity(accountDetails, authority, base64Decode) {
|
|
57
|
+
let authorityType;
|
|
58
|
+
if (authority.authorityType === AuthorityType.Adfs) {
|
|
59
|
+
authorityType = CACHE_ACCOUNT_TYPE_ADFS;
|
|
60
|
+
}
|
|
61
|
+
else if (authority.protocolMode === ProtocolMode.OIDC) {
|
|
62
|
+
authorityType = CACHE_ACCOUNT_TYPE_GENERIC;
|
|
63
|
+
}
|
|
64
|
+
else {
|
|
65
|
+
authorityType = CACHE_ACCOUNT_TYPE_MSSTS;
|
|
66
|
+
}
|
|
67
|
+
let clientInfo;
|
|
68
|
+
if (accountDetails.clientInfo && base64Decode) {
|
|
69
|
+
clientInfo = buildClientInfo(accountDetails.clientInfo, base64Decode);
|
|
70
|
+
}
|
|
71
|
+
const env = accountDetails.environment ||
|
|
72
|
+
(authority && authority.getPreferredCache());
|
|
73
|
+
if (!env) {
|
|
74
|
+
throw createClientAuthError(invalidCacheEnvironment);
|
|
75
|
+
}
|
|
76
|
+
/*
|
|
77
|
+
* In B2C scenarios the emails claim is used instead of preferred_username and it is an array.
|
|
78
|
+
* In most cases it will contain a single email. This field should not be relied upon if a custom
|
|
79
|
+
* policy is configured to return more than 1 email.
|
|
80
|
+
*/
|
|
81
|
+
const preferredUsername = accountDetails.idTokenClaims?.preferred_username ||
|
|
82
|
+
accountDetails.idTokenClaims?.upn;
|
|
83
|
+
const email = accountDetails.idTokenClaims?.emails
|
|
84
|
+
? accountDetails.idTokenClaims.emails[0]
|
|
85
|
+
: null;
|
|
86
|
+
const username = preferredUsername || email || "";
|
|
87
|
+
const loginHint = accountDetails.idTokenClaims?.login_hint;
|
|
88
|
+
const realm = clientInfo?.utid ||
|
|
89
|
+
getTenantIdFromIdTokenClaims(accountDetails.idTokenClaims) ||
|
|
90
|
+
""; // non-AAD scenarios can have empty realm
|
|
91
|
+
// How do you account for MSA CID here?
|
|
92
|
+
const localAccountId = clientInfo?.uid ||
|
|
93
|
+
accountDetails.idTokenClaims?.oid ||
|
|
94
|
+
accountDetails.idTokenClaims?.sub ||
|
|
95
|
+
"";
|
|
96
|
+
let tenantProfiles;
|
|
97
|
+
if (accountDetails.tenantProfiles) {
|
|
98
|
+
tenantProfiles = accountDetails.tenantProfiles;
|
|
99
|
+
}
|
|
100
|
+
else {
|
|
101
|
+
const tenantProfile = buildTenantProfile(accountDetails.homeAccountId, localAccountId, realm, accountDetails.idTokenClaims);
|
|
102
|
+
tenantProfiles = [tenantProfile];
|
|
103
|
+
}
|
|
104
|
+
return {
|
|
105
|
+
homeAccountId: accountDetails.homeAccountId,
|
|
106
|
+
environment: env,
|
|
107
|
+
realm: realm,
|
|
108
|
+
localAccountId: localAccountId,
|
|
109
|
+
username: username,
|
|
110
|
+
authorityType: authorityType,
|
|
111
|
+
loginHint: loginHint,
|
|
112
|
+
clientInfo: accountDetails.clientInfo,
|
|
113
|
+
name: accountDetails.idTokenClaims?.name || "",
|
|
114
|
+
lastModificationTime: undefined,
|
|
115
|
+
lastModificationApp: undefined,
|
|
116
|
+
cloudGraphHostName: accountDetails.cloudGraphHostName,
|
|
117
|
+
msGraphHost: accountDetails.msGraphHost,
|
|
118
|
+
nativeAccountId: accountDetails.nativeAccountId,
|
|
119
|
+
tenantProfiles: tenantProfiles,
|
|
120
|
+
};
|
|
121
|
+
}
|
|
122
|
+
/**
|
|
123
|
+
* Creates an AccountEntity object from AccountInfo
|
|
124
|
+
* @param accountInfo
|
|
125
|
+
* @param cloudGraphHostName
|
|
126
|
+
* @param msGraphHost
|
|
127
|
+
* @returns
|
|
128
|
+
*/
|
|
129
|
+
function createAccountEntityFromAccountInfo(accountInfo, cloudGraphHostName, msGraphHost) {
|
|
130
|
+
return {
|
|
131
|
+
authorityType: accountInfo.authorityType || CACHE_ACCOUNT_TYPE_GENERIC,
|
|
132
|
+
homeAccountId: accountInfo.homeAccountId,
|
|
133
|
+
localAccountId: accountInfo.localAccountId,
|
|
134
|
+
nativeAccountId: accountInfo.nativeAccountId,
|
|
135
|
+
realm: accountInfo.tenantId,
|
|
136
|
+
environment: accountInfo.environment,
|
|
137
|
+
username: accountInfo.username,
|
|
138
|
+
loginHint: accountInfo.loginHint,
|
|
139
|
+
name: accountInfo.name,
|
|
140
|
+
cloudGraphHostName: cloudGraphHostName,
|
|
141
|
+
msGraphHost: msGraphHost,
|
|
142
|
+
tenantProfiles: Array.from(accountInfo.tenantProfiles?.values() || []),
|
|
143
|
+
};
|
|
144
|
+
}
|
|
145
|
+
/**
|
|
146
|
+
* Generate HomeAccountId from server response
|
|
147
|
+
* @param serverClientInfo
|
|
148
|
+
* @param authType
|
|
149
|
+
*/
|
|
150
|
+
function generateHomeAccountId(serverClientInfo, authType, logger, cryptoObj, correlationId, idTokenClaims) {
|
|
151
|
+
// since ADFS/DSTS do not have tid and does not set client_info
|
|
152
|
+
if (!(authType === AuthorityType.Adfs || authType === AuthorityType.Dsts)) {
|
|
153
|
+
// for cases where there is clientInfo
|
|
154
|
+
if (serverClientInfo) {
|
|
155
|
+
try {
|
|
156
|
+
const clientInfo = buildClientInfo(serverClientInfo, cryptoObj.base64Decode);
|
|
157
|
+
if (clientInfo.uid && clientInfo.utid) {
|
|
158
|
+
return `${clientInfo.uid}.${clientInfo.utid}`;
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
catch (e) { }
|
|
162
|
+
}
|
|
163
|
+
logger.warning("No client info in response", correlationId);
|
|
164
|
+
}
|
|
165
|
+
// default to "sub" claim
|
|
166
|
+
return idTokenClaims?.sub || "";
|
|
167
|
+
}
|
|
168
|
+
/**
|
|
169
|
+
* Validates an entity: checks for all expected params
|
|
170
|
+
* @param entity
|
|
171
|
+
*/
|
|
172
|
+
function isAccountEntity(entity) {
|
|
173
|
+
if (!entity) {
|
|
174
|
+
return false;
|
|
175
|
+
}
|
|
176
|
+
return (entity.hasOwnProperty("homeAccountId") &&
|
|
177
|
+
entity.hasOwnProperty("environment") &&
|
|
178
|
+
entity.hasOwnProperty("realm") &&
|
|
179
|
+
entity.hasOwnProperty("localAccountId") &&
|
|
180
|
+
entity.hasOwnProperty("username") &&
|
|
181
|
+
entity.hasOwnProperty("authorityType"));
|
|
182
|
+
}
|
|
183
|
+
/**
|
|
184
|
+
* Helper function to determine whether 2 accountInfo objects represent the same account
|
|
185
|
+
* @param accountA
|
|
186
|
+
* @param accountB
|
|
187
|
+
* @param compareClaims - If set to true idTokenClaims will also be compared to determine account equality
|
|
188
|
+
*/
|
|
189
|
+
function accountInfoIsEqual(accountA, accountB, compareClaims) {
|
|
190
|
+
if (!accountA || !accountB) {
|
|
191
|
+
return false;
|
|
192
|
+
}
|
|
193
|
+
let claimsMatch = true; // default to true so as to not fail comparison below if compareClaims: false
|
|
194
|
+
if (compareClaims) {
|
|
195
|
+
const accountAClaims = (accountA.idTokenClaims || {});
|
|
196
|
+
const accountBClaims = (accountB.idTokenClaims || {});
|
|
197
|
+
// issued at timestamp and nonce are expected to change each time a new id token is acquired
|
|
198
|
+
claimsMatch =
|
|
199
|
+
accountAClaims.iat === accountBClaims.iat &&
|
|
200
|
+
accountAClaims.nonce === accountBClaims.nonce;
|
|
201
|
+
}
|
|
202
|
+
return (accountA.homeAccountId === accountB.homeAccountId &&
|
|
203
|
+
accountA.localAccountId === accountB.localAccountId &&
|
|
204
|
+
accountA.username === accountB.username &&
|
|
205
|
+
accountA.tenantId === accountB.tenantId &&
|
|
206
|
+
accountA.environment === accountB.environment &&
|
|
207
|
+
accountA.nativeAccountId === accountB.nativeAccountId &&
|
|
208
|
+
claimsMatch);
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
export { accountInfoIsEqual, createAccountEntity, createAccountEntityFromAccountInfo, generateAccountId, generateHomeAccountId, getAccountInfo, isAccountEntity, isSingleTenant };
|
|
212
|
+
//# sourceMappingURL=AccountEntityUtils.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AccountEntityUtils.mjs","sources":["../../../src/cache/utils/AccountEntityUtils.ts"],"sourcesContent":[null],"names":["Constants.CACHE_KEY_SEPARATOR","Constants.CACHE_ACCOUNT_TYPE_ADFS","Constants.CACHE_ACCOUNT_TYPE_GENERIC","Constants.CACHE_ACCOUNT_TYPE_MSSTS","ClientAuthErrorCodes.invalidCacheEnvironment"],"mapp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1
|
import { CloudDiscoveryMetadata } from "../../authority/CloudDiscoveryMetadata.js";
|
|
2
2
|
import { OpenIdConfigResponse } from "../../authority/OpenIdConfigResponse.js";
|
|
3
|
-
import
|
|
3
|
+
import * as Constants from "../../utils/Constants.js";
|
|
4
4
|
import { AccessTokenEntity } from "../entities/AccessTokenEntity.js";
|
|
5
5
|
import { AppMetadataEntity } from "../entities/AppMetadataEntity.js";
|
|
6
6
|
import { AuthorityMetadataEntity } from "../entities/AuthorityMetadataEntity.js";
|
|
@@ -26,7 +26,7 @@ export declare function createIdTokenEntity(homeAccountId: string, environment:
|
|
|
26
26
|
* @param expiresOn
|
|
27
27
|
* @param extExpiresOn
|
|
28
28
|
*/
|
|
29
|
-
export declare function createAccessTokenEntity(homeAccountId: string, environment: string, accessToken: string, clientId: string, tenantId: string, scopes: string, expiresOn: number, extExpiresOn: number, base64Decode: (input: string) => string, refreshOn?: number, tokenType?: AuthenticationScheme, userAssertionHash?: string, keyId?: string
|
|
29
|
+
export declare function createAccessTokenEntity(homeAccountId: string, environment: string, accessToken: string, clientId: string, tenantId: string, scopes: string, expiresOn: number, extExpiresOn: number, base64Decode: (input: string) => string, refreshOn?: number, tokenType?: Constants.AuthenticationScheme, userAssertionHash?: string, keyId?: string): AccessTokenEntity;
|
|
30
30
|
/**
|
|
31
31
|
* Create RefreshTokenEntity
|
|
32
32
|
* @param homeAccountId
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CacheHelpers.d.ts","sourceRoot":"","sources":["../../../src/cache/utils/CacheHelpers.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,sBAAsB,EAAE,MAAM,2CAA2C,CAAC;AACnF,OAAO,EAAE,oBAAoB,EAAE,MAAM,yCAAyC,CAAC;AAK/E,OAAO,
|
|
1
|
+
{"version":3,"file":"CacheHelpers.d.ts","sourceRoot":"","sources":["../../../src/cache/utils/CacheHelpers.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,sBAAsB,EAAE,MAAM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