@azure/msal-node 1.17.2 → 2.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/README.md +1 -0
- package/dist/cache/ITokenCache.d.ts.map +1 -1
- package/dist/cache/NodeStorage.d.ts.map +1 -1
- package/dist/cache/NodeStorage.esm.js +410 -0
- package/dist/cache/NodeStorage.esm.js.map +1 -0
- package/dist/cache/NodeStorage.js +412 -0
- package/dist/cache/NodeStorage.js.map +1 -0
- package/dist/cache/TokenCache.d.ts.map +1 -1
- package/dist/cache/TokenCache.esm.js +278 -0
- package/dist/cache/TokenCache.esm.js.map +1 -0
- package/dist/cache/TokenCache.js +280 -0
- package/dist/cache/TokenCache.js.map +1 -0
- package/dist/cache/distributed/DistributedCachePlugin.d.ts.map +1 -1
- package/dist/cache/distributed/DistributedCachePlugin.esm.js +33 -0
- package/dist/cache/distributed/DistributedCachePlugin.esm.js.map +1 -0
- package/dist/cache/distributed/DistributedCachePlugin.js +35 -0
- package/dist/cache/distributed/DistributedCachePlugin.js.map +1 -0
- package/dist/cache/distributed/ICacheClient.d.ts.map +1 -1
- package/dist/cache/distributed/IPartitionManager.d.ts.map +1 -1
- package/dist/cache/serializer/Deserializer.d.ts.map +1 -1
- package/dist/cache/serializer/Deserializer.esm.js +182 -0
- package/dist/cache/serializer/Deserializer.esm.js.map +1 -0
- package/dist/cache/serializer/Deserializer.js +184 -0
- package/dist/cache/serializer/Deserializer.js.map +1 -0
- package/dist/cache/serializer/Serializer.d.ts.map +1 -1
- package/dist/cache/serializer/Serializer.esm.js +139 -0
- package/dist/cache/serializer/Serializer.esm.js.map +1 -0
- package/dist/cache/serializer/Serializer.js +141 -0
- package/dist/cache/serializer/Serializer.js.map +1 -0
- package/dist/cache/serializer/SerializerTypes.d.ts +8 -8
- package/dist/cache/serializer/SerializerTypes.d.ts.map +1 -1
- package/dist/client/ClientApplication.d.ts +1 -1
- package/dist/client/ClientApplication.d.ts.map +1 -1
- package/dist/client/ClientApplication.esm.js +342 -0
- package/dist/client/ClientApplication.esm.js.map +1 -0
- package/dist/client/ClientApplication.js +344 -0
- package/dist/client/ClientApplication.js.map +1 -0
- package/dist/client/ClientAssertion.d.ts.map +1 -1
- package/dist/client/ClientAssertion.esm.js +126 -0
- package/dist/client/ClientAssertion.esm.js.map +1 -0
- package/dist/client/ClientAssertion.js +128 -0
- package/dist/client/ClientAssertion.js.map +1 -0
- package/dist/client/ClientCredentialClient.d.ts +34 -0
- package/dist/client/ClientCredentialClient.d.ts.map +1 -0
- package/dist/client/ClientCredentialClient.esm.js +164 -0
- package/dist/client/ClientCredentialClient.esm.js.map +1 -0
- package/dist/client/ClientCredentialClient.js +166 -0
- package/dist/client/ClientCredentialClient.js.map +1 -0
- package/dist/client/ConfidentialClientApplication.d.ts.map +1 -1
- package/dist/client/ConfidentialClientApplication.esm.js +175 -0
- package/dist/client/ConfidentialClientApplication.esm.js.map +1 -0
- package/dist/client/ConfidentialClientApplication.js +177 -0
- package/dist/client/ConfidentialClientApplication.js.map +1 -0
- package/dist/client/DeviceCodeClient.d.ts +54 -0
- package/dist/client/DeviceCodeClient.d.ts.map +1 -0
- package/dist/client/DeviceCodeClient.esm.js +214 -0
- package/dist/client/DeviceCodeClient.esm.js.map +1 -0
- package/dist/client/DeviceCodeClient.js +216 -0
- package/dist/client/DeviceCodeClient.js.map +1 -0
- package/dist/client/IConfidentialClientApplication.d.ts.map +1 -1
- package/dist/client/IPublicClientApplication.d.ts +1 -1
- package/dist/client/IPublicClientApplication.d.ts.map +1 -1
- package/dist/client/OnBehalfOfClient.d.ts +48 -0
- package/dist/client/OnBehalfOfClient.d.ts.map +1 -0
- package/dist/client/OnBehalfOfClient.esm.js +211 -0
- package/dist/client/OnBehalfOfClient.esm.js.map +1 -0
- package/dist/client/OnBehalfOfClient.js +213 -0
- package/dist/client/OnBehalfOfClient.js.map +1 -0
- package/dist/client/PublicClientApplication.d.ts +1 -1
- package/dist/client/PublicClientApplication.d.ts.map +1 -1
- package/dist/client/PublicClientApplication.esm.js +187 -0
- package/dist/client/PublicClientApplication.esm.js.map +1 -0
- package/dist/client/PublicClientApplication.js +189 -0
- package/dist/client/PublicClientApplication.js.map +1 -0
- package/dist/client/UsernamePasswordClient.d.ts +26 -0
- package/dist/client/UsernamePasswordClient.d.ts.map +1 -0
- package/dist/client/UsernamePasswordClient.esm.js +109 -0
- package/dist/client/UsernamePasswordClient.esm.js.map +1 -0
- package/dist/client/UsernamePasswordClient.js +111 -0
- package/dist/client/UsernamePasswordClient.js.map +1 -0
- package/dist/config/Configuration.d.ts +9 -8
- package/dist/config/Configuration.d.ts.map +1 -1
- package/dist/config/Configuration.esm.js +78 -0
- package/dist/config/Configuration.esm.js.map +1 -0
- package/dist/config/Configuration.js +80 -0
- package/dist/config/Configuration.js.map +1 -0
- package/dist/crypto/CryptoProvider.d.ts.map +1 -1
- package/dist/crypto/CryptoProvider.esm.js +85 -0
- package/dist/crypto/CryptoProvider.esm.js.map +1 -0
- package/dist/crypto/CryptoProvider.js +87 -0
- package/dist/crypto/CryptoProvider.js.map +1 -0
- package/dist/crypto/GuidGenerator.d.ts.map +1 -1
- package/dist/crypto/GuidGenerator.esm.js +29 -0
- package/dist/crypto/GuidGenerator.esm.js.map +1 -0
- package/dist/crypto/GuidGenerator.js +31 -0
- package/dist/crypto/GuidGenerator.js.map +1 -0
- package/dist/crypto/HashUtils.d.ts.map +1 -1
- package/dist/crypto/HashUtils.esm.js +21 -0
- package/dist/crypto/HashUtils.esm.js.map +1 -0
- package/dist/crypto/HashUtils.js +23 -0
- package/dist/crypto/HashUtils.js.map +1 -0
- package/dist/crypto/PkceGenerator.d.ts.map +1 -1
- package/dist/crypto/PkceGenerator.esm.js +60 -0
- package/dist/crypto/PkceGenerator.esm.js.map +1 -0
- package/dist/crypto/PkceGenerator.js +62 -0
- package/dist/crypto/PkceGenerator.js.map +1 -0
- package/dist/error/NodeAuthError.d.ts.map +1 -1
- package/dist/error/NodeAuthError.esm.js +92 -0
- package/dist/error/NodeAuthError.esm.js.map +1 -0
- package/dist/error/NodeAuthError.js +95 -0
- package/dist/error/NodeAuthError.js.map +1 -0
- package/dist/index.d.ts +13 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.esm.js +20 -0
- package/dist/index.esm.js.map +1 -0
- package/dist/index.js +101 -6
- package/dist/index.js.map +1 -0
- package/dist/internals.d.ts +7 -0
- package/dist/internals.d.ts.map +1 -0
- package/dist/internals.esm.js +10 -0
- package/dist/internals.esm.js.map +1 -0
- package/dist/internals.js +15 -0
- package/dist/internals.js.map +1 -0
- package/dist/network/HttpClient.d.ts +1 -0
- package/dist/network/HttpClient.d.ts.map +1 -1
- package/dist/network/HttpClient.esm.js +286 -0
- package/dist/network/HttpClient.esm.js.map +1 -0
- package/dist/network/HttpClient.js +288 -0
- package/dist/network/HttpClient.js.map +1 -0
- package/dist/network/ILoopbackClient.d.ts.map +1 -1
- package/dist/network/LoopbackClient.d.ts.map +1 -1
- package/dist/network/LoopbackClient.esm.js +94 -0
- package/dist/network/LoopbackClient.esm.js.map +1 -0
- package/dist/network/LoopbackClient.js +96 -0
- package/dist/network/LoopbackClient.js.map +1 -0
- package/dist/packageMetadata.d.ts +1 -1
- package/dist/packageMetadata.d.ts.map +1 -1
- package/dist/packageMetadata.esm.js +8 -0
- package/dist/packageMetadata.esm.js.map +1 -0
- package/dist/packageMetadata.js +11 -0
- package/dist/packageMetadata.js.map +1 -0
- package/dist/request/AuthorizationCodeRequest.d.ts +1 -1
- package/dist/request/AuthorizationCodeRequest.d.ts.map +1 -1
- package/dist/request/AuthorizationUrlRequest.d.ts +1 -1
- package/dist/request/AuthorizationUrlRequest.d.ts.map +1 -1
- package/dist/request/ClientCredentialRequest.d.ts +1 -1
- package/dist/request/ClientCredentialRequest.d.ts.map +1 -1
- package/dist/request/DeviceCodeRequest.d.ts +1 -1
- package/dist/request/DeviceCodeRequest.d.ts.map +1 -1
- package/dist/request/InteractiveRequest.d.ts +1 -1
- package/dist/request/InteractiveRequest.d.ts.map +1 -1
- package/dist/request/OnBehalfOfRequest.d.ts +1 -1
- package/dist/request/OnBehalfOfRequest.d.ts.map +1 -1
- package/dist/request/RefreshTokenRequest.d.ts +1 -1
- package/dist/request/RefreshTokenRequest.d.ts.map +1 -1
- package/dist/request/SignOutRequest.d.ts +1 -1
- package/dist/request/SignOutRequest.d.ts.map +1 -1
- package/dist/request/SilentFlowRequest.d.ts +1 -1
- package/dist/request/SilentFlowRequest.d.ts.map +1 -1
- package/dist/request/UsernamePasswordRequest.d.ts +1 -1
- package/dist/request/UsernamePasswordRequest.d.ts.map +1 -1
- package/dist/utils/Constants.d.ts.map +1 -1
- package/dist/utils/Constants.esm.js +98 -0
- package/dist/utils/Constants.esm.js.map +1 -0
- package/dist/utils/Constants.js +106 -0
- package/dist/utils/Constants.js.map +1 -0
- package/dist/utils/EncodingUtils.d.ts.map +1 -1
- package/dist/utils/EncodingUtils.esm.js +51 -0
- package/dist/utils/EncodingUtils.esm.js.map +1 -0
- package/dist/utils/EncodingUtils.js +53 -0
- package/dist/utils/EncodingUtils.js.map +1 -0
- package/dist/utils/NetworkUtils.d.ts.map +1 -1
- package/dist/utils/NetworkUtils.esm.js +43 -0
- package/dist/utils/NetworkUtils.esm.js.map +1 -0
- package/dist/utils/NetworkUtils.js +45 -0
- package/dist/utils/NetworkUtils.js.map +1 -0
- package/node_modules/@azure/msal-common/LICENSE +21 -0
- package/node_modules/@azure/msal-common/README.md +62 -0
- package/node_modules/@azure/msal-common/dist/account/AccountInfo.d.ts +32 -0
- package/node_modules/@azure/msal-common/dist/account/AccountInfo.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/account/AuthToken.d.ts +21 -0
- package/node_modules/@azure/msal-common/dist/account/AuthToken.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/account/AuthToken.js +56 -0
- package/node_modules/@azure/msal-common/dist/account/AuthToken.js.map +1 -0
- package/node_modules/@azure/msal-common/dist/account/CcsCredential.d.ts +9 -0
- package/node_modules/@azure/msal-common/dist/account/CcsCredential.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/account/CcsCredential.js +14 -0
- package/node_modules/@azure/msal-common/dist/account/CcsCredential.js.map +1 -0
- package/node_modules/@azure/msal-common/dist/account/ClientCredentials.d.ts +15 -0
- package/node_modules/@azure/msal-common/dist/account/ClientCredentials.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/account/ClientInfo.d.ts +20 -0
- package/node_modules/@azure/msal-common/dist/account/ClientInfo.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/account/ClientInfo.js +46 -0
- package/node_modules/@azure/msal-common/dist/account/ClientInfo.js.map +1 -0
- package/node_modules/@azure/msal-common/dist/account/DecodedAuthToken.d.ts +9 -0
- package/node_modules/@azure/msal-common/dist/account/DecodedAuthToken.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/account/TokenClaims.d.ts +66 -0
- package/node_modules/@azure/msal-common/dist/account/TokenClaims.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/authority/Authority.d.ts +216 -0
- package/node_modules/@azure/msal-common/dist/authority/Authority.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/authority/Authority.js +688 -0
- package/node_modules/@azure/msal-common/dist/authority/Authority.js.map +1 -0
- package/node_modules/@azure/msal-common/dist/authority/AuthorityFactory.d.ts +31 -0
- package/node_modules/@azure/msal-common/dist/authority/AuthorityFactory.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/authority/AuthorityFactory.js +58 -0
- package/node_modules/@azure/msal-common/dist/authority/AuthorityFactory.js.map +1 -0
- package/node_modules/@azure/msal-common/dist/authority/AuthorityMetadata.d.ts +623 -0
- package/node_modules/@azure/msal-common/dist/authority/AuthorityMetadata.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/authority/AuthorityMetadata.js +881 -0
- package/node_modules/@azure/msal-common/dist/authority/AuthorityMetadata.js.map +1 -0
- package/node_modules/@azure/msal-common/dist/authority/AuthorityOptions.d.ts +19 -0
- package/node_modules/@azure/msal-common/dist/authority/AuthorityOptions.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/authority/AuthorityOptions.js +24 -0
- package/node_modules/@azure/msal-common/dist/authority/AuthorityOptions.js.map +1 -0
- package/node_modules/@azure/msal-common/dist/authority/AuthorityType.d.ts +10 -0
- package/node_modules/@azure/msal-common/dist/authority/AuthorityType.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/authority/AuthorityType.js +19 -0
- package/node_modules/@azure/msal-common/dist/authority/AuthorityType.js.map +1 -0
- package/node_modules/@azure/msal-common/dist/authority/AzureRegion.d.ts +2 -0
- package/node_modules/@azure/msal-common/dist/authority/AzureRegion.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/authority/AzureRegionConfiguration.d.ts +6 -0
- package/node_modules/@azure/msal-common/dist/authority/AzureRegionConfiguration.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/authority/CloudDiscoveryMetadata.d.ts +6 -0
- package/node_modules/@azure/msal-common/dist/authority/CloudDiscoveryMetadata.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/authority/CloudInstanceDiscoveryErrorResponse.d.ts +14 -0
- package/node_modules/@azure/msal-common/dist/authority/CloudInstanceDiscoveryErrorResponse.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/authority/CloudInstanceDiscoveryErrorResponse.js +13 -0
- package/node_modules/@azure/msal-common/dist/authority/CloudInstanceDiscoveryErrorResponse.js.map +1 -0
- package/node_modules/@azure/msal-common/dist/authority/CloudInstanceDiscoveryResponse.d.ts +10 -0
- package/node_modules/@azure/msal-common/dist/authority/CloudInstanceDiscoveryResponse.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/authority/CloudInstanceDiscoveryResponse.js +13 -0
- package/node_modules/@azure/msal-common/dist/authority/CloudInstanceDiscoveryResponse.js.map +1 -0
- package/node_modules/@azure/msal-common/dist/authority/ImdsOptions.d.ts +6 -0
- package/node_modules/@azure/msal-common/dist/authority/ImdsOptions.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/authority/OpenIdConfigResponse.d.ts +12 -0
- package/node_modules/@azure/msal-common/dist/authority/OpenIdConfigResponse.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/authority/OpenIdConfigResponse.js +15 -0
- package/node_modules/@azure/msal-common/dist/authority/OpenIdConfigResponse.js.map +1 -0
- package/node_modules/@azure/msal-common/dist/authority/ProtocolMode.d.ts +8 -0
- package/node_modules/@azure/msal-common/dist/authority/ProtocolMode.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/authority/ProtocolMode.js +17 -0
- package/node_modules/@azure/msal-common/dist/authority/ProtocolMode.js.map +1 -0
- package/node_modules/@azure/msal-common/dist/authority/RegionDiscovery.d.ts +31 -0
- package/node_modules/@azure/msal-common/dist/authority/RegionDiscovery.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/authority/RegionDiscovery.js +116 -0
- package/node_modules/@azure/msal-common/dist/authority/RegionDiscovery.js.map +1 -0
- package/node_modules/@azure/msal-common/dist/authority/RegionDiscoveryMetadata.d.ts +7 -0
- package/node_modules/@azure/msal-common/dist/authority/RegionDiscoveryMetadata.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/broker/nativeBroker/INativeBrokerPlugin.d.ts +16 -0
- package/node_modules/@azure/msal-common/dist/broker/nativeBroker/INativeBrokerPlugin.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/cache/CacheManager.d.ts +444 -0
- package/node_modules/@azure/msal-common/dist/cache/CacheManager.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/cache/CacheManager.js +1024 -0
- package/node_modules/@azure/msal-common/dist/cache/CacheManager.js.map +1 -0
- package/node_modules/@azure/msal-common/dist/cache/entities/AccessTokenEntity.d.ts +57 -0
- package/node_modules/@azure/msal-common/dist/cache/entities/AccessTokenEntity.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/cache/entities/AccessTokenEntity.js +123 -0
- package/node_modules/@azure/msal-common/dist/cache/entities/AccessTokenEntity.js.map +1 -0
- package/node_modules/@azure/msal-common/dist/cache/entities/AccountEntity.d.ts +100 -0
- package/node_modules/@azure/msal-common/dist/cache/entities/AccountEntity.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/cache/entities/AccountEntity.js +259 -0
- package/node_modules/@azure/msal-common/dist/cache/entities/AccountEntity.js.map +1 -0
- package/node_modules/@azure/msal-common/dist/cache/entities/AppMetadataEntity.d.ts +40 -0
- package/node_modules/@azure/msal-common/dist/cache/entities/AppMetadataEntity.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/cache/entities/AppMetadataEntity.js +73 -0
- package/node_modules/@azure/msal-common/dist/cache/entities/AppMetadataEntity.js.map +1 -0
- package/node_modules/@azure/msal-common/dist/cache/entities/AuthorityMetadataEntity.d.ts +48 -0
- package/node_modules/@azure/msal-common/dist/cache/entities/AuthorityMetadataEntity.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/cache/entities/AuthorityMetadataEntity.js +85 -0
- package/node_modules/@azure/msal-common/dist/cache/entities/AuthorityMetadataEntity.js.map +1 -0
- package/node_modules/@azure/msal-common/dist/cache/entities/CacheRecord.d.ts +14 -0
- package/node_modules/@azure/msal-common/dist/cache/entities/CacheRecord.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/cache/entities/CacheRecord.js +18 -0
- package/node_modules/@azure/msal-common/dist/cache/entities/CacheRecord.js.map +1 -0
- package/node_modules/@azure/msal-common/dist/cache/entities/CredentialEntity.d.ts +89 -0
- package/node_modules/@azure/msal-common/dist/cache/entities/CredentialEntity.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/cache/entities/CredentialEntity.js +144 -0
- package/node_modules/@azure/msal-common/dist/cache/entities/CredentialEntity.js.map +1 -0
- package/node_modules/@azure/msal-common/dist/cache/entities/IdTokenEntity.d.ts +35 -0
- package/node_modules/@azure/msal-common/dist/cache/entities/IdTokenEntity.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/cache/entities/IdTokenEntity.js +64 -0
- package/node_modules/@azure/msal-common/dist/cache/entities/IdTokenEntity.js.map +1 -0
- package/node_modules/@azure/msal-common/dist/cache/entities/RefreshTokenEntity.d.ts +37 -0
- package/node_modules/@azure/msal-common/dist/cache/entities/RefreshTokenEntity.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/cache/entities/RefreshTokenEntity.js +67 -0
- package/node_modules/@azure/msal-common/dist/cache/entities/RefreshTokenEntity.js.map +1 -0
- package/node_modules/@azure/msal-common/dist/cache/entities/ServerTelemetryEntity.d.ts +13 -0
- package/node_modules/@azure/msal-common/dist/cache/entities/ServerTelemetryEntity.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/cache/entities/ServerTelemetryEntity.js +34 -0
- package/node_modules/@azure/msal-common/dist/cache/entities/ServerTelemetryEntity.js.map +1 -0
- package/node_modules/@azure/msal-common/dist/cache/entities/ThrottlingEntity.d.ts +14 -0
- package/node_modules/@azure/msal-common/dist/cache/entities/ThrottlingEntity.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/cache/entities/ThrottlingEntity.js +30 -0
- package/node_modules/@azure/msal-common/dist/cache/entities/ThrottlingEntity.js.map +1 -0
- package/node_modules/@azure/msal-common/dist/cache/interface/ICacheManager.d.ts +166 -0
- package/node_modules/@azure/msal-common/dist/cache/interface/ICacheManager.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/cache/interface/ICachePlugin.d.ts +6 -0
- package/node_modules/@azure/msal-common/dist/cache/interface/ICachePlugin.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/cache/interface/ISerializableTokenCache.d.ts +5 -0
- package/node_modules/@azure/msal-common/dist/cache/interface/ISerializableTokenCache.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/cache/persistence/TokenCacheContext.d.ts +24 -0
- package/node_modules/@azure/msal-common/dist/cache/persistence/TokenCacheContext.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/cache/persistence/TokenCacheContext.js +30 -0
- package/node_modules/@azure/msal-common/dist/cache/persistence/TokenCacheContext.js.map +1 -0
- package/node_modules/@azure/msal-common/dist/cache/utils/CacheTypes.d.ts +63 -0
- package/node_modules/@azure/msal-common/dist/cache/utils/CacheTypes.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/client/AuthorizationCodeClient.d.ts +72 -0
- package/node_modules/@azure/msal-common/dist/client/AuthorizationCodeClient.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/client/AuthorizationCodeClient.js +453 -0
- package/node_modules/@azure/msal-common/dist/client/AuthorizationCodeClient.js.map +1 -0
- package/node_modules/@azure/msal-common/dist/client/BaseClient.d.ts +51 -0
- package/node_modules/@azure/msal-common/dist/client/BaseClient.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/client/BaseClient.js +107 -0
- package/node_modules/@azure/msal-common/dist/client/BaseClient.js.map +1 -0
- package/node_modules/@azure/msal-common/dist/client/RefreshTokenClient.d.ts +35 -0
- package/node_modules/@azure/msal-common/dist/client/RefreshTokenClient.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/client/RefreshTokenClient.js +260 -0
- package/node_modules/@azure/msal-common/dist/client/RefreshTokenClient.js.map +1 -0
- package/node_modules/@azure/msal-common/dist/client/SilentFlowClient.d.ts +25 -0
- package/node_modules/@azure/msal-common/dist/client/SilentFlowClient.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/client/SilentFlowClient.js +108 -0
- package/node_modules/@azure/msal-common/dist/client/SilentFlowClient.js.map +1 -0
- package/node_modules/@azure/msal-common/dist/config/AppTokenProvider.d.ts +39 -0
- package/node_modules/@azure/msal-common/dist/config/AppTokenProvider.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/config/ClientConfiguration.d.ts +134 -0
- package/node_modules/@azure/msal-common/dist/config/ClientConfiguration.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/config/ClientConfiguration.js +101 -0
- package/node_modules/@azure/msal-common/dist/config/ClientConfiguration.js.map +1 -0
- package/node_modules/@azure/msal-common/dist/crypto/ICrypto.d.ts +63 -0
- package/node_modules/@azure/msal-common/dist/crypto/ICrypto.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/crypto/ICrypto.js +49 -0
- package/node_modules/@azure/msal-common/dist/crypto/ICrypto.js.map +1 -0
- package/node_modules/@azure/msal-common/dist/crypto/IGuidGenerator.d.ts +5 -0
- package/node_modules/@azure/msal-common/dist/crypto/IGuidGenerator.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/crypto/JoseHeader.d.ts +22 -0
- package/node_modules/@azure/msal-common/dist/crypto/JoseHeader.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/crypto/JoseHeader.js +44 -0
- package/node_modules/@azure/msal-common/dist/crypto/JoseHeader.js.map +1 -0
- package/node_modules/@azure/msal-common/dist/crypto/PopTokenGenerator.d.ts +58 -0
- package/node_modules/@azure/msal-common/dist/crypto/PopTokenGenerator.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/crypto/PopTokenGenerator.js +92 -0
- package/node_modules/@azure/msal-common/dist/crypto/PopTokenGenerator.js.map +1 -0
- package/node_modules/@azure/msal-common/dist/crypto/SignedHttpRequest.d.ts +12 -0
- package/node_modules/@azure/msal-common/dist/crypto/SignedHttpRequest.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/error/AuthError.d.ts +48 -0
- package/node_modules/@azure/msal-common/dist/error/AuthError.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/error/AuthError.js +58 -0
- package/node_modules/@azure/msal-common/dist/error/AuthError.js.map +1 -0
- package/node_modules/@azure/msal-common/dist/error/ClientAuthError.d.ts +413 -0
- package/node_modules/@azure/msal-common/dist/error/ClientAuthError.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/error/ClientAuthError.js +526 -0
- package/node_modules/@azure/msal-common/dist/error/ClientAuthError.js.map +1 -0
- package/node_modules/@azure/msal-common/dist/error/ClientConfigurationError.d.ts +199 -0
- package/node_modules/@azure/msal-common/dist/error/ClientConfigurationError.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/error/ClientConfigurationError.js +256 -0
- package/node_modules/@azure/msal-common/dist/error/ClientConfigurationError.js.map +1 -0
- package/node_modules/@azure/msal-common/dist/error/InteractionRequiredAuthError.d.ts +60 -0
- package/node_modules/@azure/msal-common/dist/error/InteractionRequiredAuthError.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/error/InteractionRequiredAuthError.js +86 -0
- package/node_modules/@azure/msal-common/dist/error/InteractionRequiredAuthError.js.map +1 -0
- package/node_modules/@azure/msal-common/dist/error/JoseHeaderError.d.ts +29 -0
- package/node_modules/@azure/msal-common/dist/error/JoseHeaderError.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/error/JoseHeaderError.js +46 -0
- package/node_modules/@azure/msal-common/dist/error/JoseHeaderError.js.map +1 -0
- package/node_modules/@azure/msal-common/dist/error/ServerError.d.ts +8 -0
- package/node_modules/@azure/msal-common/dist/error/ServerError.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/error/ServerError.js +21 -0
- package/node_modules/@azure/msal-common/dist/error/ServerError.js.map +1 -0
- package/node_modules/@azure/msal-common/dist/index.cjs.js +8975 -0
- package/node_modules/@azure/msal-common/dist/index.cjs.js.map +1 -0
- package/node_modules/@azure/msal-common/dist/index.d.ts +94 -0
- package/node_modules/@azure/msal-common/dist/index.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/index.js +54 -0
- package/node_modules/@azure/msal-common/dist/index.js.map +1 -0
- package/node_modules/@azure/msal-common/dist/logger/Logger.d.ts +96 -0
- package/node_modules/@azure/msal-common/dist/logger/Logger.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/logger/Logger.js +205 -0
- package/node_modules/@azure/msal-common/dist/logger/Logger.js.map +1 -0
- package/node_modules/@azure/msal-common/dist/network/INetworkModule.d.ts +30 -0
- package/node_modules/@azure/msal-common/dist/network/INetworkModule.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/network/INetworkModule.js +21 -0
- package/node_modules/@azure/msal-common/dist/network/INetworkModule.js.map +1 -0
- package/node_modules/@azure/msal-common/dist/network/NetworkManager.d.ts +33 -0
- package/node_modules/@azure/msal-common/dist/network/NetworkManager.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/network/NetworkManager.js +42 -0
- package/node_modules/@azure/msal-common/dist/network/NetworkManager.js.map +1 -0
- package/node_modules/@azure/msal-common/dist/network/RequestThumbprint.d.ts +17 -0
- package/node_modules/@azure/msal-common/dist/network/RequestThumbprint.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/network/ThrottlingUtils.d.ts +42 -0
- package/node_modules/@azure/msal-common/dist/network/ThrottlingUtils.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/network/ThrottlingUtils.js +102 -0
- package/node_modules/@azure/msal-common/dist/network/ThrottlingUtils.js.map +1 -0
- package/node_modules/@azure/msal-common/dist/packageMetadata.d.ts +3 -0
- package/node_modules/@azure/msal-common/dist/packageMetadata.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/packageMetadata.js +8 -0
- package/node_modules/@azure/msal-common/dist/packageMetadata.js.map +1 -0
- package/node_modules/@azure/msal-common/dist/request/AuthenticationHeaderParser.d.ts +20 -0
- package/node_modules/@azure/msal-common/dist/request/AuthenticationHeaderParser.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/request/AuthenticationHeaderParser.js +63 -0
- package/node_modules/@azure/msal-common/dist/request/AuthenticationHeaderParser.js.map +1 -0
- package/node_modules/@azure/msal-common/dist/request/BaseAuthRequest.d.ts +38 -0
- package/node_modules/@azure/msal-common/dist/request/BaseAuthRequest.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/request/CommonAuthorizationCodeRequest.d.ts +28 -0
- package/node_modules/@azure/msal-common/dist/request/CommonAuthorizationCodeRequest.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/request/CommonAuthorizationUrlRequest.d.ts +51 -0
- package/node_modules/@azure/msal-common/dist/request/CommonAuthorizationUrlRequest.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/request/CommonClientCredentialRequest.d.ts +18 -0
- package/node_modules/@azure/msal-common/dist/request/CommonClientCredentialRequest.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/request/CommonDeviceCodeRequest.d.ts +22 -0
- package/node_modules/@azure/msal-common/dist/request/CommonDeviceCodeRequest.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/request/CommonEndSessionRequest.d.ts +22 -0
- package/node_modules/@azure/msal-common/dist/request/CommonEndSessionRequest.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/request/CommonOnBehalfOfRequest.d.ts +14 -0
- package/node_modules/@azure/msal-common/dist/request/CommonOnBehalfOfRequest.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/request/CommonRefreshTokenRequest.d.ts +20 -0
- package/node_modules/@azure/msal-common/dist/request/CommonRefreshTokenRequest.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/request/CommonSilentFlowRequest.d.ts +19 -0
- package/node_modules/@azure/msal-common/dist/request/CommonSilentFlowRequest.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/request/CommonUsernamePasswordRequest.d.ts +18 -0
- package/node_modules/@azure/msal-common/dist/request/CommonUsernamePasswordRequest.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/request/NativeRequest.d.ts +20 -0
- package/node_modules/@azure/msal-common/dist/request/NativeRequest.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/request/NativeSignOutRequest.d.ts +6 -0
- package/node_modules/@azure/msal-common/dist/request/NativeSignOutRequest.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/request/RequestParameterBuilder.d.ts +217 -0
- package/node_modules/@azure/msal-common/dist/request/RequestParameterBuilder.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/request/RequestParameterBuilder.js +385 -0
- package/node_modules/@azure/msal-common/dist/request/RequestParameterBuilder.js.map +1 -0
- package/node_modules/@azure/msal-common/dist/request/RequestValidator.d.ts +34 -0
- package/node_modules/@azure/msal-common/dist/request/RequestValidator.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/request/RequestValidator.js +92 -0
- package/node_modules/@azure/msal-common/dist/request/RequestValidator.js.map +1 -0
- package/node_modules/@azure/msal-common/dist/request/ScopeSet.d.ts +89 -0
- package/node_modules/@azure/msal-common/dist/request/ScopeSet.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/request/ScopeSet.js +207 -0
- package/node_modules/@azure/msal-common/dist/request/ScopeSet.js.map +1 -0
- package/node_modules/@azure/msal-common/dist/response/AuthenticationResult.d.ts +40 -0
- package/node_modules/@azure/msal-common/dist/response/AuthenticationResult.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/response/AuthorizationCodePayload.d.ts +14 -0
- package/node_modules/@azure/msal-common/dist/response/AuthorizationCodePayload.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/response/DeviceCodeResponse.d.ts +26 -0
- package/node_modules/@azure/msal-common/dist/response/DeviceCodeResponse.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/response/ExternalTokenResponse.d.ts +16 -0
- package/node_modules/@azure/msal-common/dist/response/ExternalTokenResponse.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/response/IMDSBadResponse.d.ts +5 -0
- package/node_modules/@azure/msal-common/dist/response/IMDSBadResponse.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/response/ResponseHandler.d.ts +73 -0
- package/node_modules/@azure/msal-common/dist/response/ResponseHandler.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/response/ResponseHandler.js +325 -0
- package/node_modules/@azure/msal-common/dist/response/ResponseHandler.js.map +1 -0
- package/node_modules/@azure/msal-common/dist/response/ServerAuthorizationCodeResponse.d.ts +26 -0
- package/node_modules/@azure/msal-common/dist/response/ServerAuthorizationCodeResponse.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/response/ServerAuthorizationTokenResponse.d.ts +45 -0
- package/node_modules/@azure/msal-common/dist/response/ServerAuthorizationTokenResponse.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/telemetry/performance/IPerformanceClient.d.ts +43 -0
- package/node_modules/@azure/msal-common/dist/telemetry/performance/IPerformanceClient.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/telemetry/performance/IPerformanceMeasurement.d.ts +6 -0
- package/node_modules/@azure/msal-common/dist/telemetry/performance/IPerformanceMeasurement.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/telemetry/performance/PerformanceClient.d.ts +190 -0
- package/node_modules/@azure/msal-common/dist/telemetry/performance/PerformanceClient.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/telemetry/performance/PerformanceClient.js +413 -0
- package/node_modules/@azure/msal-common/dist/telemetry/performance/PerformanceClient.js.map +1 -0
- package/node_modules/@azure/msal-common/dist/telemetry/performance/PerformanceEvent.d.ts +440 -0
- package/node_modules/@azure/msal-common/dist/telemetry/performance/PerformanceEvent.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/telemetry/performance/PerformanceEvent.js +232 -0
- package/node_modules/@azure/msal-common/dist/telemetry/performance/PerformanceEvent.js.map +1 -0
- package/node_modules/@azure/msal-common/dist/telemetry/performance/StubPerformanceClient.d.ts +20 -0
- package/node_modules/@azure/msal-common/dist/telemetry/performance/StubPerformanceClient.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/telemetry/performance/StubPerformanceClient.js +43 -0
- package/node_modules/@azure/msal-common/dist/telemetry/performance/StubPerformanceClient.js.map +1 -0
- package/node_modules/@azure/msal-common/dist/telemetry/server/ServerTelemetryManager.d.ts +66 -0
- package/node_modules/@azure/msal-common/dist/telemetry/server/ServerTelemetryManager.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/telemetry/server/ServerTelemetryManager.js +206 -0
- package/node_modules/@azure/msal-common/dist/telemetry/server/ServerTelemetryManager.js.map +1 -0
- package/node_modules/@azure/msal-common/dist/telemetry/server/ServerTelemetryRequest.d.ts +9 -0
- package/node_modules/@azure/msal-common/dist/telemetry/server/ServerTelemetryRequest.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/url/IUri.d.ts +13 -0
- package/node_modules/@azure/msal-common/dist/url/IUri.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/url/UrlString.d.ts +71 -0
- package/node_modules/@azure/msal-common/dist/url/UrlString.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/url/UrlString.js +252 -0
- package/node_modules/@azure/msal-common/dist/url/UrlString.js.map +1 -0
- package/node_modules/@azure/msal-common/dist/utils/Constants.d.ts +332 -0
- package/node_modules/@azure/msal-common/dist/utils/Constants.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/utils/Constants.js +378 -0
- package/node_modules/@azure/msal-common/dist/utils/Constants.js.map +1 -0
- package/node_modules/@azure/msal-common/dist/utils/MsalTypes.d.ts +7 -0
- package/node_modules/@azure/msal-common/dist/utils/MsalTypes.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/utils/ProtocolUtils.d.ts +43 -0
- package/node_modules/@azure/msal-common/dist/utils/ProtocolUtils.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/utils/ProtocolUtils.js +80 -0
- package/node_modules/@azure/msal-common/dist/utils/ProtocolUtils.js.map +1 -0
- package/node_modules/@azure/msal-common/dist/utils/StringUtils.d.ts +54 -0
- package/node_modules/@azure/msal-common/dist/utils/StringUtils.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/utils/StringUtils.js +131 -0
- package/node_modules/@azure/msal-common/dist/utils/StringUtils.js.map +1 -0
- package/node_modules/@azure/msal-common/dist/utils/TimeUtils.d.ts +28 -0
- package/node_modules/@azure/msal-common/dist/utils/TimeUtils.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/utils/TimeUtils.js +50 -0
- package/node_modules/@azure/msal-common/dist/utils/TimeUtils.js.map +1 -0
- package/node_modules/@azure/msal-common/package.json +79 -0
- package/package.json +27 -18
|
@@ -0,0 +1,412 @@
|
|
|
1
|
+
/*! @azure/msal-node v2.0.0-alpha.0 2023-05-03 */
|
|
2
|
+
'use strict';
|
|
3
|
+
'use strict';
|
|
4
|
+
|
|
5
|
+
var msalCommon = require('@azure/msal-common');
|
|
6
|
+
var Deserializer = require('./serializer/Deserializer.js');
|
|
7
|
+
var Serializer = require('./serializer/Serializer.js');
|
|
8
|
+
|
|
9
|
+
/*
|
|
10
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
11
|
+
* Licensed under the MIT License.
|
|
12
|
+
*/
|
|
13
|
+
/**
|
|
14
|
+
* This class implements Storage for node, reading cache from user specified storage location or an extension library
|
|
15
|
+
* @public
|
|
16
|
+
*/
|
|
17
|
+
class NodeStorage extends msalCommon.CacheManager {
|
|
18
|
+
constructor(logger, clientId, cryptoImpl) {
|
|
19
|
+
super(clientId, cryptoImpl, logger);
|
|
20
|
+
this.cache = {};
|
|
21
|
+
this.changeEmitters = [];
|
|
22
|
+
this.logger = logger;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Queue up callbacks
|
|
26
|
+
* @param func - a callback function for cache change indication
|
|
27
|
+
*/
|
|
28
|
+
registerChangeEmitter(func) {
|
|
29
|
+
this.changeEmitters.push(func);
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Invoke the callback when cache changes
|
|
33
|
+
*/
|
|
34
|
+
emitChange() {
|
|
35
|
+
this.changeEmitters.forEach((func) => func.call(null));
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Converts cacheKVStore to InMemoryCache
|
|
39
|
+
* @param cache - key value store
|
|
40
|
+
*/
|
|
41
|
+
cacheToInMemoryCache(cache) {
|
|
42
|
+
const inMemoryCache = {
|
|
43
|
+
accounts: {},
|
|
44
|
+
idTokens: {},
|
|
45
|
+
accessTokens: {},
|
|
46
|
+
refreshTokens: {},
|
|
47
|
+
appMetadata: {},
|
|
48
|
+
};
|
|
49
|
+
for (const key in cache) {
|
|
50
|
+
if (cache[key] instanceof msalCommon.AccountEntity) {
|
|
51
|
+
inMemoryCache.accounts[key] = cache[key];
|
|
52
|
+
}
|
|
53
|
+
else if (cache[key] instanceof msalCommon.IdTokenEntity) {
|
|
54
|
+
inMemoryCache.idTokens[key] = cache[key];
|
|
55
|
+
}
|
|
56
|
+
else if (cache[key] instanceof msalCommon.AccessTokenEntity) {
|
|
57
|
+
inMemoryCache.accessTokens[key] = cache[key];
|
|
58
|
+
}
|
|
59
|
+
else if (cache[key] instanceof msalCommon.RefreshTokenEntity) {
|
|
60
|
+
inMemoryCache.refreshTokens[key] = cache[key];
|
|
61
|
+
}
|
|
62
|
+
else if (cache[key] instanceof msalCommon.AppMetadataEntity) {
|
|
63
|
+
inMemoryCache.appMetadata[key] = cache[key];
|
|
64
|
+
}
|
|
65
|
+
else {
|
|
66
|
+
continue;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
return inMemoryCache;
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* converts inMemoryCache to CacheKVStore
|
|
73
|
+
* @param inMemoryCache - kvstore map for inmemory
|
|
74
|
+
*/
|
|
75
|
+
inMemoryCacheToCache(inMemoryCache) {
|
|
76
|
+
// convert in memory cache to a flat Key-Value map
|
|
77
|
+
let cache = this.getCache();
|
|
78
|
+
cache = {
|
|
79
|
+
...cache,
|
|
80
|
+
...inMemoryCache.accounts,
|
|
81
|
+
...inMemoryCache.idTokens,
|
|
82
|
+
...inMemoryCache.accessTokens,
|
|
83
|
+
...inMemoryCache.refreshTokens,
|
|
84
|
+
...inMemoryCache.appMetadata,
|
|
85
|
+
};
|
|
86
|
+
// convert in memory cache to a flat Key-Value map
|
|
87
|
+
return cache;
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* gets the current in memory cache for the client
|
|
91
|
+
*/
|
|
92
|
+
getInMemoryCache() {
|
|
93
|
+
this.logger.trace("Getting in-memory cache");
|
|
94
|
+
// convert the cache key value store to inMemoryCache
|
|
95
|
+
const inMemoryCache = this.cacheToInMemoryCache(this.getCache());
|
|
96
|
+
return inMemoryCache;
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* sets the current in memory cache for the client
|
|
100
|
+
* @param inMemoryCache - key value map in memory
|
|
101
|
+
*/
|
|
102
|
+
setInMemoryCache(inMemoryCache) {
|
|
103
|
+
this.logger.trace("Setting in-memory cache");
|
|
104
|
+
// convert and append the inMemoryCache to cacheKVStore
|
|
105
|
+
const cache = this.inMemoryCacheToCache(inMemoryCache);
|
|
106
|
+
this.setCache(cache);
|
|
107
|
+
this.emitChange();
|
|
108
|
+
}
|
|
109
|
+
/**
|
|
110
|
+
* get the current cache key-value store
|
|
111
|
+
*/
|
|
112
|
+
getCache() {
|
|
113
|
+
this.logger.trace("Getting cache key-value store");
|
|
114
|
+
return this.cache;
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* sets the current cache (key value store)
|
|
118
|
+
* @param cacheMap - key value map
|
|
119
|
+
*/
|
|
120
|
+
setCache(cache) {
|
|
121
|
+
this.logger.trace("Setting cache key value store");
|
|
122
|
+
this.cache = cache;
|
|
123
|
+
// mark change in cache
|
|
124
|
+
this.emitChange();
|
|
125
|
+
}
|
|
126
|
+
/**
|
|
127
|
+
* Gets cache item with given key.
|
|
128
|
+
* @param key - lookup key for the cache entry
|
|
129
|
+
*/
|
|
130
|
+
getItem(key) {
|
|
131
|
+
this.logger.tracePii(`Item key: ${key}`);
|
|
132
|
+
// read cache
|
|
133
|
+
const cache = this.getCache();
|
|
134
|
+
return cache[key];
|
|
135
|
+
}
|
|
136
|
+
/**
|
|
137
|
+
* Gets cache item with given key-value
|
|
138
|
+
* @param key - lookup key for the cache entry
|
|
139
|
+
* @param value - value of the cache entry
|
|
140
|
+
*/
|
|
141
|
+
setItem(key, value) {
|
|
142
|
+
this.logger.tracePii(`Item key: ${key}`);
|
|
143
|
+
// read cache
|
|
144
|
+
const cache = this.getCache();
|
|
145
|
+
cache[key] = value;
|
|
146
|
+
// write to cache
|
|
147
|
+
this.setCache(cache);
|
|
148
|
+
}
|
|
149
|
+
getAccountKeys() {
|
|
150
|
+
const inMemoryCache = this.getInMemoryCache();
|
|
151
|
+
const accountKeys = Object.keys(inMemoryCache.accounts);
|
|
152
|
+
return accountKeys;
|
|
153
|
+
}
|
|
154
|
+
getTokenKeys() {
|
|
155
|
+
const inMemoryCache = this.getInMemoryCache();
|
|
156
|
+
const tokenKeys = {
|
|
157
|
+
idToken: Object.keys(inMemoryCache.idTokens),
|
|
158
|
+
accessToken: Object.keys(inMemoryCache.accessTokens),
|
|
159
|
+
refreshToken: Object.keys(inMemoryCache.refreshTokens),
|
|
160
|
+
};
|
|
161
|
+
return tokenKeys;
|
|
162
|
+
}
|
|
163
|
+
/**
|
|
164
|
+
* fetch the account entity
|
|
165
|
+
* @param accountKey - lookup key to fetch cache type AccountEntity
|
|
166
|
+
*/
|
|
167
|
+
getAccount(accountKey) {
|
|
168
|
+
const account = this.getItem(accountKey);
|
|
169
|
+
if (msalCommon.AccountEntity.isAccountEntity(account)) {
|
|
170
|
+
return account;
|
|
171
|
+
}
|
|
172
|
+
return null;
|
|
173
|
+
}
|
|
174
|
+
/**
|
|
175
|
+
* set account entity
|
|
176
|
+
* @param account - cache value to be set of type AccountEntity
|
|
177
|
+
*/
|
|
178
|
+
setAccount(account) {
|
|
179
|
+
const accountKey = account.generateAccountKey();
|
|
180
|
+
this.setItem(accountKey, account);
|
|
181
|
+
}
|
|
182
|
+
/**
|
|
183
|
+
* fetch the idToken credential
|
|
184
|
+
* @param idTokenKey - lookup key to fetch cache type IdTokenEntity
|
|
185
|
+
*/
|
|
186
|
+
getIdTokenCredential(idTokenKey) {
|
|
187
|
+
const idToken = this.getItem(idTokenKey);
|
|
188
|
+
if (msalCommon.IdTokenEntity.isIdTokenEntity(idToken)) {
|
|
189
|
+
return idToken;
|
|
190
|
+
}
|
|
191
|
+
return null;
|
|
192
|
+
}
|
|
193
|
+
/**
|
|
194
|
+
* set idToken credential
|
|
195
|
+
* @param idToken - cache value to be set of type IdTokenEntity
|
|
196
|
+
*/
|
|
197
|
+
setIdTokenCredential(idToken) {
|
|
198
|
+
const idTokenKey = idToken.generateCredentialKey();
|
|
199
|
+
this.setItem(idTokenKey, idToken);
|
|
200
|
+
}
|
|
201
|
+
/**
|
|
202
|
+
* fetch the accessToken credential
|
|
203
|
+
* @param accessTokenKey - lookup key to fetch cache type AccessTokenEntity
|
|
204
|
+
*/
|
|
205
|
+
getAccessTokenCredential(accessTokenKey) {
|
|
206
|
+
const accessToken = this.getItem(accessTokenKey);
|
|
207
|
+
if (msalCommon.AccessTokenEntity.isAccessTokenEntity(accessToken)) {
|
|
208
|
+
return accessToken;
|
|
209
|
+
}
|
|
210
|
+
return null;
|
|
211
|
+
}
|
|
212
|
+
/**
|
|
213
|
+
* set accessToken credential
|
|
214
|
+
* @param accessToken - cache value to be set of type AccessTokenEntity
|
|
215
|
+
*/
|
|
216
|
+
setAccessTokenCredential(accessToken) {
|
|
217
|
+
const accessTokenKey = accessToken.generateCredentialKey();
|
|
218
|
+
this.setItem(accessTokenKey, accessToken);
|
|
219
|
+
}
|
|
220
|
+
/**
|
|
221
|
+
* fetch the refreshToken credential
|
|
222
|
+
* @param refreshTokenKey - lookup key to fetch cache type RefreshTokenEntity
|
|
223
|
+
*/
|
|
224
|
+
getRefreshTokenCredential(refreshTokenKey) {
|
|
225
|
+
const refreshToken = this.getItem(refreshTokenKey);
|
|
226
|
+
if (msalCommon.RefreshTokenEntity.isRefreshTokenEntity(refreshToken)) {
|
|
227
|
+
return refreshToken;
|
|
228
|
+
}
|
|
229
|
+
return null;
|
|
230
|
+
}
|
|
231
|
+
/**
|
|
232
|
+
* set refreshToken credential
|
|
233
|
+
* @param refreshToken - cache value to be set of type RefreshTokenEntity
|
|
234
|
+
*/
|
|
235
|
+
setRefreshTokenCredential(refreshToken) {
|
|
236
|
+
const refreshTokenKey = refreshToken.generateCredentialKey();
|
|
237
|
+
this.setItem(refreshTokenKey, refreshToken);
|
|
238
|
+
}
|
|
239
|
+
/**
|
|
240
|
+
* fetch appMetadata entity from the platform cache
|
|
241
|
+
* @param appMetadataKey - lookup key to fetch cache type AppMetadataEntity
|
|
242
|
+
*/
|
|
243
|
+
getAppMetadata(appMetadataKey) {
|
|
244
|
+
const appMetadata = this.getItem(appMetadataKey);
|
|
245
|
+
if (msalCommon.AppMetadataEntity.isAppMetadataEntity(appMetadataKey, appMetadata)) {
|
|
246
|
+
return appMetadata;
|
|
247
|
+
}
|
|
248
|
+
return null;
|
|
249
|
+
}
|
|
250
|
+
/**
|
|
251
|
+
* set appMetadata entity to the platform cache
|
|
252
|
+
* @param appMetadata - cache value to be set of type AppMetadataEntity
|
|
253
|
+
*/
|
|
254
|
+
setAppMetadata(appMetadata) {
|
|
255
|
+
const appMetadataKey = appMetadata.generateAppMetadataKey();
|
|
256
|
+
this.setItem(appMetadataKey, appMetadata);
|
|
257
|
+
}
|
|
258
|
+
/**
|
|
259
|
+
* fetch server telemetry entity from the platform cache
|
|
260
|
+
* @param serverTelemetrykey - lookup key to fetch cache type ServerTelemetryEntity
|
|
261
|
+
*/
|
|
262
|
+
getServerTelemetry(serverTelemetrykey) {
|
|
263
|
+
const serverTelemetryEntity = this.getItem(serverTelemetrykey);
|
|
264
|
+
if (serverTelemetryEntity &&
|
|
265
|
+
msalCommon.ServerTelemetryEntity.isServerTelemetryEntity(serverTelemetrykey, serverTelemetryEntity)) {
|
|
266
|
+
return serverTelemetryEntity;
|
|
267
|
+
}
|
|
268
|
+
return null;
|
|
269
|
+
}
|
|
270
|
+
/**
|
|
271
|
+
* set server telemetry entity to the platform cache
|
|
272
|
+
* @param serverTelemetryKey - lookup key to fetch cache type ServerTelemetryEntity
|
|
273
|
+
* @param serverTelemetry - cache value to be set of type ServerTelemetryEntity
|
|
274
|
+
*/
|
|
275
|
+
setServerTelemetry(serverTelemetryKey, serverTelemetry) {
|
|
276
|
+
this.setItem(serverTelemetryKey, serverTelemetry);
|
|
277
|
+
}
|
|
278
|
+
/**
|
|
279
|
+
* fetch authority metadata entity from the platform cache
|
|
280
|
+
* @param key - lookup key to fetch cache type AuthorityMetadataEntity
|
|
281
|
+
*/
|
|
282
|
+
getAuthorityMetadata(key) {
|
|
283
|
+
const authorityMetadataEntity = this.getItem(key);
|
|
284
|
+
if (authorityMetadataEntity &&
|
|
285
|
+
msalCommon.AuthorityMetadataEntity.isAuthorityMetadataEntity(key, authorityMetadataEntity)) {
|
|
286
|
+
return authorityMetadataEntity;
|
|
287
|
+
}
|
|
288
|
+
return null;
|
|
289
|
+
}
|
|
290
|
+
/**
|
|
291
|
+
* Get all authority metadata keys
|
|
292
|
+
*/
|
|
293
|
+
getAuthorityMetadataKeys() {
|
|
294
|
+
return this.getKeys().filter((key) => {
|
|
295
|
+
return this.isAuthorityMetadata(key);
|
|
296
|
+
});
|
|
297
|
+
}
|
|
298
|
+
/**
|
|
299
|
+
* set authority metadata entity to the platform cache
|
|
300
|
+
* @param key - lookup key to fetch cache type AuthorityMetadataEntity
|
|
301
|
+
* @param metadata - cache value to be set of type AuthorityMetadataEntity
|
|
302
|
+
*/
|
|
303
|
+
setAuthorityMetadata(key, metadata) {
|
|
304
|
+
this.setItem(key, metadata);
|
|
305
|
+
}
|
|
306
|
+
/**
|
|
307
|
+
* fetch throttling entity from the platform cache
|
|
308
|
+
* @param throttlingCacheKey - lookup key to fetch cache type ThrottlingEntity
|
|
309
|
+
*/
|
|
310
|
+
getThrottlingCache(throttlingCacheKey) {
|
|
311
|
+
const throttlingCache = this.getItem(throttlingCacheKey);
|
|
312
|
+
if (throttlingCache &&
|
|
313
|
+
msalCommon.ThrottlingEntity.isThrottlingEntity(throttlingCacheKey, throttlingCache)) {
|
|
314
|
+
return throttlingCache;
|
|
315
|
+
}
|
|
316
|
+
return null;
|
|
317
|
+
}
|
|
318
|
+
/**
|
|
319
|
+
* set throttling entity to the platform cache
|
|
320
|
+
* @param throttlingCacheKey - lookup key to fetch cache type ThrottlingEntity
|
|
321
|
+
* @param throttlingCache - cache value to be set of type ThrottlingEntity
|
|
322
|
+
*/
|
|
323
|
+
setThrottlingCache(throttlingCacheKey, throttlingCache) {
|
|
324
|
+
this.setItem(throttlingCacheKey, throttlingCache);
|
|
325
|
+
}
|
|
326
|
+
/**
|
|
327
|
+
* Removes the cache item from memory with the given key.
|
|
328
|
+
* @param key - lookup key to remove a cache entity
|
|
329
|
+
* @param inMemory - key value map of the cache
|
|
330
|
+
*/
|
|
331
|
+
removeItem(key) {
|
|
332
|
+
this.logger.tracePii(`Item key: ${key}`);
|
|
333
|
+
// read inMemoryCache
|
|
334
|
+
let result = false;
|
|
335
|
+
const cache = this.getCache();
|
|
336
|
+
if (!!cache[key]) {
|
|
337
|
+
delete cache[key];
|
|
338
|
+
result = true;
|
|
339
|
+
}
|
|
340
|
+
// write to the cache after removal
|
|
341
|
+
if (result) {
|
|
342
|
+
this.setCache(cache);
|
|
343
|
+
this.emitChange();
|
|
344
|
+
}
|
|
345
|
+
return result;
|
|
346
|
+
}
|
|
347
|
+
/**
|
|
348
|
+
* Checks whether key is in cache.
|
|
349
|
+
* @param key - look up key for a cache entity
|
|
350
|
+
*/
|
|
351
|
+
containsKey(key) {
|
|
352
|
+
return this.getKeys().includes(key);
|
|
353
|
+
}
|
|
354
|
+
/**
|
|
355
|
+
* Gets all keys in window.
|
|
356
|
+
*/
|
|
357
|
+
getKeys() {
|
|
358
|
+
this.logger.trace("Retrieving all cache keys");
|
|
359
|
+
// read cache
|
|
360
|
+
const cache = this.getCache();
|
|
361
|
+
return [...Object.keys(cache)];
|
|
362
|
+
}
|
|
363
|
+
/**
|
|
364
|
+
* Clears all cache entries created by MSAL (except tokens).
|
|
365
|
+
*/
|
|
366
|
+
async clear() {
|
|
367
|
+
this.logger.trace("Clearing cache entries created by MSAL");
|
|
368
|
+
// read inMemoryCache
|
|
369
|
+
const cacheKeys = this.getKeys();
|
|
370
|
+
// delete each element
|
|
371
|
+
cacheKeys.forEach((key) => {
|
|
372
|
+
this.removeItem(key);
|
|
373
|
+
});
|
|
374
|
+
this.emitChange();
|
|
375
|
+
}
|
|
376
|
+
/**
|
|
377
|
+
* Initialize in memory cache from an exisiting cache vault
|
|
378
|
+
* @param cache - blob formatted cache (JSON)
|
|
379
|
+
*/
|
|
380
|
+
static generateInMemoryCache(cache) {
|
|
381
|
+
return Deserializer.Deserializer.deserializeAllCache(Deserializer.Deserializer.deserializeJSONBlob(cache));
|
|
382
|
+
}
|
|
383
|
+
/**
|
|
384
|
+
* retrieves the final JSON
|
|
385
|
+
* @param inMemoryCache - itemised cache read from the JSON
|
|
386
|
+
*/
|
|
387
|
+
static generateJsonCache(inMemoryCache) {
|
|
388
|
+
return Serializer.Serializer.serializeAllCache(inMemoryCache);
|
|
389
|
+
}
|
|
390
|
+
/**
|
|
391
|
+
* Updates a credential's cache key if the current cache key is outdated
|
|
392
|
+
*/
|
|
393
|
+
updateCredentialCacheKey(currentCacheKey, credential) {
|
|
394
|
+
const updatedCacheKey = credential.generateCredentialKey();
|
|
395
|
+
if (currentCacheKey !== updatedCacheKey) {
|
|
396
|
+
const cacheItem = this.getItem(currentCacheKey);
|
|
397
|
+
if (cacheItem) {
|
|
398
|
+
this.removeItem(currentCacheKey);
|
|
399
|
+
this.setItem(updatedCacheKey, cacheItem);
|
|
400
|
+
this.logger.verbose(`Updated an outdated ${credential.credentialType} cache key`);
|
|
401
|
+
return updatedCacheKey;
|
|
402
|
+
}
|
|
403
|
+
else {
|
|
404
|
+
this.logger.error(`Attempted to update an outdated ${credential.credentialType} cache key but no item matching the outdated key was found in storage`);
|
|
405
|
+
}
|
|
406
|
+
}
|
|
407
|
+
return currentCacheKey;
|
|
408
|
+
}
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
exports.NodeStorage = NodeStorage;
|
|
412
|
+
//# sourceMappingURL=NodeStorage.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NodeStorage.js","sources":["../../src/cache/NodeStorage.ts"],"sourcesContent":[null],"names":["CacheManager","AccountEntity","IdTokenEntity","AccessTokenEntity","RefreshTokenEntity","AppMetadataEntity","ServerTelemetryEntity","AuthorityMetadataEntity","ThrottlingEntity","Deserializer","Serializer"],"mappings":";;;;;;;;AAAA;;;AAGG;AA2BH;;;AAGG;AACG,MAAO,WAAY,SAAQA,uBAAY,CAAA;AAMzC,IAAA,WAAA,CAAY,MAAc,EAAE,QAAgB,EAAE,UAAmB,EAAA;AAC7D,QAAA,KAAK,CAAC,QAAQ,EAAE,UAAU,EAAE,MAAM,CAAC,CAAC;QAJhC,IAAK,CAAA,KAAA,GAAiB,EAAE,CAAC;QACzB,IAAc,CAAA,cAAA,GAAoB,EAAE,CAAC;AAIzC,QAAA,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;KACxB;AAED;;;AAGG;AACH,IAAA,qBAAqB,CAAC,IAAgB,EAAA;AAClC,QAAA,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;KAClC;AAED;;AAEG;IACH,UAAU,GAAA;AACN,QAAA,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,IAAI,KAAK,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;KAC1D;AAED;;;AAGG;AACH,IAAA,oBAAoB,CAAC,KAAmB,EAAA;AACpC,QAAA,MAAM,aAAa,GAAkB;AACjC,YAAA,QAAQ,EAAE,EAAE;AACZ,YAAA,QAAQ,EAAE,EAAE;AACZ,YAAA,YAAY,EAAE,EAAE;AAChB,YAAA,aAAa,EAAE,EAAE;AACjB,YAAA,WAAW,EAAE,EAAE;SAClB,CAAC;AAEF,QAAA,KAAK,MAAM,GAAG,IAAI,KAAK,E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Ae,GAAG,UAAU,CAAC,qBAAqB,EAAE,CAAC;QAE3D,IAAI,eAAe,KAAK,eAAe,EAAE;YACrC,MAAM,SAAS,GAAG,IAAI,CAAC,OAAO,CAAC,eAAe,CAAC,CAAC;AAChD,YAAA,IAAI,SAAS,EAAE;AACX,gBAAA,IAAI,CAAC,UAAU,CAAC,eAAe,CAAC,CAAC;AACjC,gBAAA,IAAI,CAAC,OAAO,CAAC,eAAe,EAAE,SAAS,CAAC,CAAC;gBACzC,IAAI,CAAC,MAAM,CAAC,OAAO,CACf,CAAuB,oBAAA,EAAA,UAAU,CAAC,cAAc,CAAY,UAAA,CAAA,CAC/D,CAAC;AACF,gBAAA,OAAO,eAAe,CAAC;AAC1B,aAAA;AAAM,iBAAA;gBACH,IAAI,CAAC,MAAM,CAAC,KAAK,CACb,CAAmC,gCAAA,EAAA,UAAU,CAAC,cAAc,CAAuE,qEAAA,CAAA,CACtI,CAAC;AACL,aAAA;AACJ,SAAA;AAED,QAAA,OAAO,eAAe,CAAC;KAC1B;AACJ;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TokenCache.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"TokenCache.d.ts","sourceRoot":"","sources":["../../src/cache/TokenCache.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAGH,WAAW,EACX,MAAM,EACN,uBAAuB,EACvB,YAAY,EAEf,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAQH,YAAY,EACf,MAAM,8BAA8B,CAAC;AAGtC,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAU5C;;;GAGG;AACH,qBAAa,UAAW,YAAW,uBAAuB,EAAE,WAAW;IACnE,OAAO,CAAC,OAAO,CAAc;IAC7B,OAAO,CAAC,eAAe,CAAU;IACjC,OAAO,CAAC,aAAa,CAAS;IAC9B,OAAO,CAAC,QAAQ,CAAC,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