@azure/msal-node 1.17.1 → 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/LICENSE +21 -21
- package/README.md +182 -181
- 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/msal-node.cjs.development.js +1 -1
- package/dist/msal-node.cjs.development.js.map +1 -1
- package/dist/msal-node.cjs.production.min.js +1 -1
- package/dist/msal-node.cjs.production.min.js.map +1 -1
- package/dist/msal-node.esm.js +1 -1
- package/dist/msal-node.esm.js.map +1 -1
- 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 +77 -68
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
/*! @azure/msal-node v2.0.0-alpha.0 2023-05-03 */
|
|
2
|
+
'use strict';
|
|
3
|
+
'use strict';
|
|
4
|
+
|
|
5
|
+
var GuidGenerator = require('./GuidGenerator.js');
|
|
6
|
+
var EncodingUtils = require('../utils/EncodingUtils.js');
|
|
7
|
+
var PkceGenerator = require('./PkceGenerator.js');
|
|
8
|
+
var HashUtils = require('./HashUtils.js');
|
|
9
|
+
|
|
10
|
+
/*
|
|
11
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
12
|
+
* Licensed under the MIT License.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* This class implements MSAL node's crypto interface, which allows it to perform base64 encoding and decoding, generating cryptographically random GUIDs and
|
|
16
|
+
* implementing Proof Key for Code Exchange specs for the OAuth Authorization Code Flow using PKCE (rfc here: https://tools.ietf.org/html/rfc7636).
|
|
17
|
+
* @public
|
|
18
|
+
*/
|
|
19
|
+
class CryptoProvider {
|
|
20
|
+
constructor() {
|
|
21
|
+
// Browser crypto needs to be validated first before any other classes can be set.
|
|
22
|
+
this.pkceGenerator = new PkceGenerator.PkceGenerator();
|
|
23
|
+
this.guidGenerator = new GuidGenerator.GuidGenerator();
|
|
24
|
+
this.hashUtils = new HashUtils.HashUtils();
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Creates a new random GUID - used to populate state and nonce.
|
|
28
|
+
* @returns string (GUID)
|
|
29
|
+
*/
|
|
30
|
+
createNewGuid() {
|
|
31
|
+
return this.guidGenerator.generateGuid();
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Encodes input string to base64.
|
|
35
|
+
* @param input - string to be encoded
|
|
36
|
+
*/
|
|
37
|
+
base64Encode(input) {
|
|
38
|
+
return EncodingUtils.EncodingUtils.base64Encode(input);
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Decodes input string from base64.
|
|
42
|
+
* @param input - string to be decoded
|
|
43
|
+
*/
|
|
44
|
+
base64Decode(input) {
|
|
45
|
+
return EncodingUtils.EncodingUtils.base64Decode(input);
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Generates PKCE codes used in Authorization Code Flow.
|
|
49
|
+
*/
|
|
50
|
+
generatePkceCodes() {
|
|
51
|
+
return this.pkceGenerator.generatePkceCodes();
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Generates a keypair, stores it and returns a thumbprint - not yet implemented for node
|
|
55
|
+
*/
|
|
56
|
+
getPublicKeyThumbprint() {
|
|
57
|
+
throw new Error("Method not implemented.");
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Removes cryptographic keypair from key store matching the keyId passed in
|
|
61
|
+
* @param kid
|
|
62
|
+
*/
|
|
63
|
+
removeTokenBindingKey() {
|
|
64
|
+
throw new Error("Method not implemented.");
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* Removes all cryptographic keys from Keystore
|
|
68
|
+
*/
|
|
69
|
+
clearKeystore() {
|
|
70
|
+
throw new Error("Method not implemented.");
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Signs the given object as a jwt payload with private key retrieved by given kid - currently not implemented for node
|
|
74
|
+
*/
|
|
75
|
+
signJwt() {
|
|
76
|
+
throw new Error("Method not implemented.");
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* Returns the SHA-256 hash of an input string
|
|
80
|
+
*/
|
|
81
|
+
async hashString(plainText) {
|
|
82
|
+
return EncodingUtils.EncodingUtils.base64EncodeUrl(this.hashUtils.sha256(plainText).toString("base64"), "base64");
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
exports.CryptoProvider = CryptoProvider;
|
|
87
|
+
//# sourceMappingURL=CryptoProvider.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CryptoProvider.js","sources":["../../src/crypto/CryptoProvider.ts"],"sourcesContent":[null],"names":["PkceGenerator","GuidGenerator","HashUtils","EncodingUtils"],"mappings":";;;;;;;;;AAAA;;;AAGG;AAQH;;;;AAIG;MACU,cAAc,CAAA;AAKvB,IAAA,WAAA,GAAA;;AAEI,QAAA,IAAI,CAAC,aAAa,GAAG,IAAIA,2BAAa,EAAE,CAAC;AACzC,QAAA,IAAI,CAAC,aAAa,GAAG,IAAIC,2BAAa,EAAE,CAAC;AACzC,QAAA,IAAI,CAAC,SAAS,GAAG,IAAIC,mBAAS,EAAE,CAAC;KACpC;AAED;;;AAGG;IACH,aAAa,GAAA;AACT,QAAA,OAAO,IAAI,CAAC,aAAa,CAAC,YAAY,EAAE,CAAC;KAC5C;AAED;;;AAGG;AACH,IAAA,YAAY,CAAC,KAAa,EAAA;AACtB,QAAA,OAAOC,2BAAa,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC;KAC5C;AAED;;;AAGG;AACH,IAAA,YAAY,CAAC,KAAa,EAAA;AACtB,QAAA,OAAOA,2BAAa,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC;KAC5C;AAED;;AAEG;IACH,iBAAiB,GAAA;AACb,QAAA,OAAO,IAAI,CAAC,aAAa,CAAC,iBAAiB,EAAE,CAAC;KACjD;AAED;;AAEG;IACH,sBAAsB,GAAA;AAClB,QAAA,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;KAC9C;AAED;;;AAGG;IACH,qBAAqB,GAAA;AACjB,QAAA,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;KAC9C;AAED;;AAEG;IACH,aAAa,GAAA;AACT,QAAA,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;KAC9C;AAED;;AAEG;IACH,OAAO,GAAA;AACH,QAAA,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;KAC9C;AAED;;AAEG;IACH,MAAM,UAAU,CAAC,SAAiB,EAAA;QAC9B,OAAOA,2BAAa,CAAC,eAAe,CAChC,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC,EACnD,QAAQ,CACX,CAAC;KACL;AACJ;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GuidGenerator.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"GuidGenerator.d.ts","sourceRoot":"","sources":["../../src/crypto/GuidGenerator.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAGpD,qBAAa,aAAc,YAAW,cAAc;IAChD;;;;OAIG;IACH,YAAY,IAAI,MAAM;IAItB;;;OAGG;IACH,MAAM,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO;CAKhC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/*! @azure/msal-node v2.0.0-alpha.0 2023-05-03 */
|
|
2
|
+
'use strict';
|
|
3
|
+
import { v4 } from 'uuid';
|
|
4
|
+
|
|
5
|
+
/*
|
|
6
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
7
|
+
* Licensed under the MIT License.
|
|
8
|
+
*/
|
|
9
|
+
class GuidGenerator {
|
|
10
|
+
/**
|
|
11
|
+
*
|
|
12
|
+
* RFC4122: The version 4 UUID is meant for generating UUIDs from truly-random or pseudo-random numbers.
|
|
13
|
+
* uuidv4 generates guids from cryprtographically-string random
|
|
14
|
+
*/
|
|
15
|
+
generateGuid() {
|
|
16
|
+
return v4();
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* verifies if a string is GUID
|
|
20
|
+
* @param guid
|
|
21
|
+
*/
|
|
22
|
+
isGuid(guid) {
|
|
23
|
+
const regexGuid = /^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i;
|
|
24
|
+
return regexGuid.test(guid);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export { GuidGenerator };
|
|
29
|
+
//# sourceMappingURL=GuidGenerator.esm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GuidGenerator.esm.js","sources":["../../src/crypto/GuidGenerator.ts"],"sourcesContent":[null],"names":["uuidv4"],"mappings":";;;;AAAA;;;AAGG;MAKU,aAAa,CAAA;AACtB;;;;AAIG;IACH,YAAY,GAAA;QACR,OAAOA,EAAM,EAAE,CAAC;KACnB;AAED;;;AAGG;AACH,IAAA,MAAM,CAAC,IAAY,EAAA;QACf,MAAM,SAAS,GACX,4EAA4E,CAAC;AACjF,QAAA,OAAO,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;KAC/B;AACJ;;;;"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/*! @azure/msal-node v2.0.0-alpha.0 2023-05-03 */
|
|
2
|
+
'use strict';
|
|
3
|
+
'use strict';
|
|
4
|
+
|
|
5
|
+
var uuid = require('uuid');
|
|
6
|
+
|
|
7
|
+
/*
|
|
8
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
9
|
+
* Licensed under the MIT License.
|
|
10
|
+
*/
|
|
11
|
+
class GuidGenerator {
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* RFC4122: The version 4 UUID is meant for generating UUIDs from truly-random or pseudo-random numbers.
|
|
15
|
+
* uuidv4 generates guids from cryprtographically-string random
|
|
16
|
+
*/
|
|
17
|
+
generateGuid() {
|
|
18
|
+
return uuid.v4();
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* verifies if a string is GUID
|
|
22
|
+
* @param guid
|
|
23
|
+
*/
|
|
24
|
+
isGuid(guid) {
|
|
25
|
+
const regexGuid = /^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i;
|
|
26
|
+
return regexGuid.test(guid);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
exports.GuidGenerator = GuidGenerator;
|
|
31
|
+
//# sourceMappingURL=GuidGenerator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GuidGenerator.js","sources":["../../src/crypto/GuidGenerator.ts"],"sourcesContent":[null],"names":["uuidv4"],"mappings":";;;;;;AAAA;;;AAGG;MAKU,aAAa,CAAA;AACtB;;;;AAIG;IACH,YAAY,GAAA;QACR,OAAOA,OAAM,EAAE,CAAC;KACnB;AAED;;;AAGG;AACH,IAAA,MAAM,CAAC,IAAY,EAAA;QACf,MAAM,SAAS,GACX,4EAA4E,CAAC;AACjF,QAAA,OAAO,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;KAC/B;AACJ;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HashUtils.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"HashUtils.d.ts","sourceRoot":"","sources":["../../src/crypto/HashUtils.ts"],"names":[],"mappings":";AAQA,qBAAa,SAAS;IAClB;;;OAGG;IACH,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM;CAGjC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/*! @azure/msal-node v2.0.0-alpha.0 2023-05-03 */
|
|
2
|
+
'use strict';
|
|
3
|
+
import { Hash } from '../utils/Constants.esm.js';
|
|
4
|
+
import crypto from 'crypto';
|
|
5
|
+
|
|
6
|
+
/*
|
|
7
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
8
|
+
* Licensed under the MIT License.
|
|
9
|
+
*/
|
|
10
|
+
class HashUtils {
|
|
11
|
+
/**
|
|
12
|
+
* generate 'SHA256' hash
|
|
13
|
+
* @param buffer
|
|
14
|
+
*/
|
|
15
|
+
sha256(buffer) {
|
|
16
|
+
return crypto.createHash(Hash.SHA256).update(buffer).digest();
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export { HashUtils };
|
|
21
|
+
//# sourceMappingURL=HashUtils.esm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HashUtils.esm.js","sources":["../../src/crypto/HashUtils.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;AAAA;;;AAGG;MAKU,SAAS,CAAA;AAClB;;;AAGG;AACH,IAAA,MAAM,CAAC,MAAc,EAAA;AACjB,QAAA,OAAO,MAAM,CAAC,UAAU,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,MAAM,EAAE,CAAC;KACjE;AACJ;;;;"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*! @azure/msal-node v2.0.0-alpha.0 2023-05-03 */
|
|
2
|
+
'use strict';
|
|
3
|
+
'use strict';
|
|
4
|
+
|
|
5
|
+
var Constants = require('../utils/Constants.js');
|
|
6
|
+
var crypto = require('crypto');
|
|
7
|
+
|
|
8
|
+
/*
|
|
9
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
10
|
+
* Licensed under the MIT License.
|
|
11
|
+
*/
|
|
12
|
+
class HashUtils {
|
|
13
|
+
/**
|
|
14
|
+
* generate 'SHA256' hash
|
|
15
|
+
* @param buffer
|
|
16
|
+
*/
|
|
17
|
+
sha256(buffer) {
|
|
18
|
+
return crypto.createHash(Constants.Hash.SHA256).update(buffer).digest();
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
exports.HashUtils = HashUtils;
|
|
23
|
+
//# sourceMappingURL=HashUtils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HashUtils.js","sources":["../../src/crypto/HashUtils.ts"],"sourcesContent":[null],"names":["Hash"],"mappings":";;;;;;;AAAA;;;AAGG;MAKU,SAAS,CAAA;AAClB;;;AAGG;AACH,IAAA,MAAM,CAAC,MAAc,EAAA;AACjB,QAAA,OAAO,MAAM,CAAC,UAAU,CAACA,cAAI,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,MAAM,EAAE,CAAC;KACjE;AACJ;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PkceGenerator.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"PkceGenerator.d.ts","sourceRoot":"","sources":["../../src/crypto/PkceGenerator.ts"],"names":[],"mappings":"AAKA,OAAO,EAAa,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAM1D;;GAEG;AACH,qBAAa,aAAa;IACtB,OAAO,CAAC,SAAS,CAAY;;IAK7B;;;OAGG;IACG,iBAAiB,IAAI,OAAO,CAAC,SAAS,CAAC;IAM7C;;OAEG;IACH,OAAO,CAAC,oBAAoB;IAmB5B;;;OAGG;IACH,OAAO,CAAC,iCAAiC;CAM5C"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/*! @azure/msal-node v2.0.0-alpha.0 2023-05-03 */
|
|
2
|
+
'use strict';
|
|
3
|
+
import { Constants } from '@azure/msal-common';
|
|
4
|
+
import { RANDOM_OCTET_SIZE, CharSet } from '../utils/Constants.esm.js';
|
|
5
|
+
import { EncodingUtils } from '../utils/EncodingUtils.esm.js';
|
|
6
|
+
import { HashUtils } from './HashUtils.esm.js';
|
|
7
|
+
import crypto from 'crypto';
|
|
8
|
+
|
|
9
|
+
/*
|
|
10
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
11
|
+
* Licensed under the MIT License.
|
|
12
|
+
*/
|
|
13
|
+
/**
|
|
14
|
+
* https://tools.ietf.org/html/rfc7636#page-8
|
|
15
|
+
*/
|
|
16
|
+
class PkceGenerator {
|
|
17
|
+
constructor() {
|
|
18
|
+
this.hashUtils = new HashUtils();
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* generates the codeVerfier and the challenge from the codeVerfier
|
|
22
|
+
* reference: https://tools.ietf.org/html/rfc7636#section-4.1 and https://tools.ietf.org/html/rfc7636#section-4.2
|
|
23
|
+
*/
|
|
24
|
+
async generatePkceCodes() {
|
|
25
|
+
const verifier = this.generateCodeVerifier();
|
|
26
|
+
const challenge = this.generateCodeChallengeFromVerifier(verifier);
|
|
27
|
+
return { verifier, challenge };
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* generates the codeVerfier; reference: https://tools.ietf.org/html/rfc7636#section-4.1
|
|
31
|
+
*/
|
|
32
|
+
generateCodeVerifier() {
|
|
33
|
+
const charArr = [];
|
|
34
|
+
const maxNumber = 256 - (256 % CharSet.CV_CHARSET.length);
|
|
35
|
+
while (charArr.length <= RANDOM_OCTET_SIZE) {
|
|
36
|
+
const byte = crypto.randomBytes(1)[0];
|
|
37
|
+
if (byte >= maxNumber) {
|
|
38
|
+
/*
|
|
39
|
+
* Ignore this number to maintain randomness.
|
|
40
|
+
* Including it would result in an unequal distribution of characters after doing the modulo
|
|
41
|
+
*/
|
|
42
|
+
continue;
|
|
43
|
+
}
|
|
44
|
+
const index = byte % CharSet.CV_CHARSET.length;
|
|
45
|
+
charArr.push(CharSet.CV_CHARSET[index]);
|
|
46
|
+
}
|
|
47
|
+
const verifier = charArr.join(Constants.EMPTY_STRING);
|
|
48
|
+
return EncodingUtils.base64EncodeUrl(verifier);
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* generate the challenge from the codeVerfier; reference: https://tools.ietf.org/html/rfc7636#section-4.2
|
|
52
|
+
* @param codeVerifier
|
|
53
|
+
*/
|
|
54
|
+
generateCodeChallengeFromVerifier(codeVerifier) {
|
|
55
|
+
return EncodingUtils.base64EncodeUrl(this.hashUtils.sha256(codeVerifier).toString("base64"), "base64");
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export { PkceGenerator };
|
|
60
|
+
//# sourceMappingURL=PkceGenerator.esm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PkceGenerator.esm.js","sources":["../../src/crypto/PkceGenerator.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;AAAA;;;AAGG;AAQH;;AAEG;MACU,aAAa,CAAA;AAGtB,IAAA,WAAA,GAAA;AACI,QAAA,IAAI,CAAC,SAAS,GAAG,IAAI,SAAS,EAAE,CAAC;KACpC;AACD;;;AAGG;AACH,IAAA,MAAM,iBAAiB,GAAA;AACnB,QAAA,MAAM,QAAQ,GAAG,IAAI,CAAC,oBAAoB,EAAE,CAAC;QAC7C,MAAM,SAAS,GAAG,IAAI,CAAC,iCAAiC,CAAC,QAAQ,CAAC,CAAC;AACnE,QAAA,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;KAClC;AAED;;AAEG;IACK,oBAAoB,GAAA;QACxB,MAAM,OAAO,GAAG,EAAE,CAAC;AACnB,QAAA,MAAM,SAAS,GAAG,GAAG,IAAI,GAAG,GAAG,OAAO,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC;AAC1D,QAAA,OAAO,OAAO,CAAC,MAAM,IAAI,iBAAiB,EAAE;YACxC,MAAM,IAAI,GAAG,MAAM,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;YACtC,IAAI,IAAI,IAAI,SAAS,EAAE;AACnB;;;AAGG;gBACH,SAAS;AACZ,aAAA;YACD,MAAM,KAAK,GAAG,IAAI,GAAG,OAAO,CAAC,UAAU,CAAC,MAAM,CAAC;YAC/C,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC;AAC3C,SAAA;QACD,MAAM,QAAQ,GAAW,OAAO,CAAC,IAAI,CAAC,SAAS,CAAC,YAAY,CAAC,CAAC;AAC9D,QAAA,OAAO,aAAa,CAAC,eAAe,CAAC,QAAQ,CAAC,CAAC;KAClD;AAED;;;AAGG;AACK,IAAA,iCAAiC,CAAC,YAAoB,EAAA;QAC1D,OAAO,aAAa,CAAC,eAAe,CAChC,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC,EACtD,QAAQ,CACX,CAAC;KACL;AACJ;;;;"}
|
|
@@ -0,0 +1,62 @@
|
|
|
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 Constants = require('../utils/Constants.js');
|
|
7
|
+
var EncodingUtils = require('../utils/EncodingUtils.js');
|
|
8
|
+
var HashUtils = require('./HashUtils.js');
|
|
9
|
+
var crypto = require('crypto');
|
|
10
|
+
|
|
11
|
+
/*
|
|
12
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
13
|
+
* Licensed under the MIT License.
|
|
14
|
+
*/
|
|
15
|
+
/**
|
|
16
|
+
* https://tools.ietf.org/html/rfc7636#page-8
|
|
17
|
+
*/
|
|
18
|
+
class PkceGenerator {
|
|
19
|
+
constructor() {
|
|
20
|
+
this.hashUtils = new HashUtils.HashUtils();
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* generates the codeVerfier and the challenge from the codeVerfier
|
|
24
|
+
* reference: https://tools.ietf.org/html/rfc7636#section-4.1 and https://tools.ietf.org/html/rfc7636#section-4.2
|
|
25
|
+
*/
|
|
26
|
+
async generatePkceCodes() {
|
|
27
|
+
const verifier = this.generateCodeVerifier();
|
|
28
|
+
const challenge = this.generateCodeChallengeFromVerifier(verifier);
|
|
29
|
+
return { verifier, challenge };
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* generates the codeVerfier; reference: https://tools.ietf.org/html/rfc7636#section-4.1
|
|
33
|
+
*/
|
|
34
|
+
generateCodeVerifier() {
|
|
35
|
+
const charArr = [];
|
|
36
|
+
const maxNumber = 256 - (256 % Constants.CharSet.CV_CHARSET.length);
|
|
37
|
+
while (charArr.length <= Constants.RANDOM_OCTET_SIZE) {
|
|
38
|
+
const byte = crypto.randomBytes(1)[0];
|
|
39
|
+
if (byte >= maxNumber) {
|
|
40
|
+
/*
|
|
41
|
+
* Ignore this number to maintain randomness.
|
|
42
|
+
* Including it would result in an unequal distribution of characters after doing the modulo
|
|
43
|
+
*/
|
|
44
|
+
continue;
|
|
45
|
+
}
|
|
46
|
+
const index = byte % Constants.CharSet.CV_CHARSET.length;
|
|
47
|
+
charArr.push(Constants.CharSet.CV_CHARSET[index]);
|
|
48
|
+
}
|
|
49
|
+
const verifier = charArr.join(msalCommon.Constants.EMPTY_STRING);
|
|
50
|
+
return EncodingUtils.EncodingUtils.base64EncodeUrl(verifier);
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* generate the challenge from the codeVerfier; reference: https://tools.ietf.org/html/rfc7636#section-4.2
|
|
54
|
+
* @param codeVerifier
|
|
55
|
+
*/
|
|
56
|
+
generateCodeChallengeFromVerifier(codeVerifier) {
|
|
57
|
+
return EncodingUtils.EncodingUtils.base64EncodeUrl(this.hashUtils.sha256(codeVerifier).toString("base64"), "base64");
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
exports.PkceGenerator = PkceGenerator;
|
|
62
|
+
//# sourceMappingURL=PkceGenerator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PkceGenerator.js","sources":["../../src/crypto/PkceGenerator.ts"],"sourcesContent":[null],"names":["HashUtils","CharSet","RAND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SAAS,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC,EACtD,QAAQ,CACX,CAAC;KACL;AACJ;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NodeAuthError.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"NodeAuthError.d.ts","sourceRoot":"","sources":["../../src/error/NodeAuthError.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAE/C;;GAEG;AACH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6BhC,CAAC;AAEF,qBAAa,aAAc,SAAQ,SAAS;gBAC5B,SAAS,EAAE,MAAM,EAAE,YAAY,CAAC,EAAE,MAAM;IAKpD;;OAEG;IACH,MAAM,CAAC,qCAAqC,IAAI,aAAa;IAO7D;;OAEG;IACH,MAAM,CAAC,kCAAkC,IAAI,aAAa;IAO1D;;OAEG;IACH,MAAM,CAAC,+BAA+B,IAAI,aAAa;IAOvD;;OAEG;IACH,MAAM,CAAC,iCAAiC,IAAI,aAAa;IAOzD;;OAEG;IACH,MAAM,CAAC,sCAAsC,IAAI,aAAa;IAO9D;;OAEG;IACH,MAAM,CAAC,gCAAgC,IAAI,aAAa;IAOxD;;OAEG;IACH,MAAM,CAAC,wBAAwB,IAAI,aAAa;CAMnD"}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
/*! @azure/msal-node v2.0.0-alpha.0 2023-05-03 */
|
|
2
|
+
'use strict';
|
|
3
|
+
import { AuthError } from '@azure/msal-common';
|
|
4
|
+
|
|
5
|
+
/*
|
|
6
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
7
|
+
* Licensed under the MIT License.
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* NodeAuthErrorMessage class containing string constants used by error codes and messages.
|
|
11
|
+
*/
|
|
12
|
+
const NodeAuthErrorMessage = {
|
|
13
|
+
invalidLoopbackAddressType: {
|
|
14
|
+
code: "invalid_loopback_server_address_type",
|
|
15
|
+
desc: "Loopback server address is not type string. This is unexpected.",
|
|
16
|
+
},
|
|
17
|
+
unableToLoadRedirectUri: {
|
|
18
|
+
code: "unable_to_load_redirectUrl",
|
|
19
|
+
desc: "Loopback server callback was invoked without a url. This is unexpected.",
|
|
20
|
+
},
|
|
21
|
+
noAuthCodeInResponse: {
|
|
22
|
+
code: "no_auth_code_in_response",
|
|
23
|
+
desc: "No auth code found in the server response. Please check your network trace to determine what happened.",
|
|
24
|
+
},
|
|
25
|
+
noLoopbackServerExists: {
|
|
26
|
+
code: "no_loopback_server_exists",
|
|
27
|
+
desc: "No loopback server exists yet.",
|
|
28
|
+
},
|
|
29
|
+
loopbackServerAlreadyExists: {
|
|
30
|
+
code: "loopback_server_already_exists",
|
|
31
|
+
desc: "Loopback server already exists. Cannot create another.",
|
|
32
|
+
},
|
|
33
|
+
loopbackServerTimeout: {
|
|
34
|
+
code: "loopback_server_timeout",
|
|
35
|
+
desc: "Timed out waiting for auth code listener to be registered.",
|
|
36
|
+
},
|
|
37
|
+
stateNotFoundError: {
|
|
38
|
+
code: "state_not_found",
|
|
39
|
+
desc: "State not found. Please verify that the request originated from msal.",
|
|
40
|
+
},
|
|
41
|
+
};
|
|
42
|
+
class NodeAuthError extends AuthError {
|
|
43
|
+
constructor(errorCode, errorMessage) {
|
|
44
|
+
super(errorCode, errorMessage);
|
|
45
|
+
this.name = "NodeAuthError";
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Creates an error thrown if loopback server address is of type string.
|
|
49
|
+
*/
|
|
50
|
+
static createInvalidLoopbackAddressTypeError() {
|
|
51
|
+
return new NodeAuthError(NodeAuthErrorMessage.invalidLoopbackAddressType.code, `${NodeAuthErrorMessage.invalidLoopbackAddressType.desc}`);
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Creates an error thrown if the loopback server is unable to get a url.
|
|
55
|
+
*/
|
|
56
|
+
static createUnableToLoadRedirectUrlError() {
|
|
57
|
+
return new NodeAuthError(NodeAuthErrorMessage.unableToLoadRedirectUri.code, `${NodeAuthErrorMessage.unableToLoadRedirectUri.desc}`);
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Creates an error thrown if the server response does not contain an auth code.
|
|
61
|
+
*/
|
|
62
|
+
static createNoAuthCodeInResponseError() {
|
|
63
|
+
return new NodeAuthError(NodeAuthErrorMessage.noAuthCodeInResponse.code, `${NodeAuthErrorMessage.noAuthCodeInResponse.desc}`);
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Creates an error thrown if the loopback server has not been spun up yet.
|
|
67
|
+
*/
|
|
68
|
+
static createNoLoopbackServerExistsError() {
|
|
69
|
+
return new NodeAuthError(NodeAuthErrorMessage.noLoopbackServerExists.code, `${NodeAuthErrorMessage.noLoopbackServerExists.desc}`);
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* Creates an error thrown if a loopback server already exists when attempting to create another one.
|
|
73
|
+
*/
|
|
74
|
+
static createLoopbackServerAlreadyExistsError() {
|
|
75
|
+
return new NodeAuthError(NodeAuthErrorMessage.loopbackServerAlreadyExists.code, `${NodeAuthErrorMessage.loopbackServerAlreadyExists.desc}`);
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* Creates an error thrown if the loopback server times out registering the auth code listener.
|
|
79
|
+
*/
|
|
80
|
+
static createLoopbackServerTimeoutError() {
|
|
81
|
+
return new NodeAuthError(NodeAuthErrorMessage.loopbackServerTimeout.code, `${NodeAuthErrorMessage.loopbackServerTimeout.desc}`);
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* Creates an error thrown when the state is not present.
|
|
85
|
+
*/
|
|
86
|
+
static createStateNotFoundError() {
|
|
87
|
+
return new NodeAuthError(NodeAuthErrorMessage.stateNotFoundError.code, NodeAuthErrorMessage.stateNotFoundError.desc);
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export { NodeAuthError, NodeAuthErrorMessage };
|
|
92
|
+
//# sourceMappingURL=NodeAuthError.esm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NodeAuthError.esm.js","sources":["../../src/error/NodeAuthError.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;AAAA;;;AAGG;AAIH;;AAEG;AACU,MAAA,oBAAoB,GAAG;AAChC,IAAA,0BAA0B,EAAE;AACxB,QAAA,IAAI,EAAE,sCAAsC;AAC5C,QAAA,IAAI,EAAE,iEAAiE;AAC1E,KAAA;AACD,IAAA,uBAAuB,EAAE;AACrB,QAAA,IAAI,EAAE,4BAA4B;AAClC,QAAA,IAAI,EAAE,yEAAyE;AAClF,KAAA;AACD,IAAA,oBAAoB,EAAE;AAClB,QAAA,IAAI,EAAE,0BAA0B;AAChC,QAAA,IAAI,EAAE,wGAAwG;AACjH,KAAA;AACD,IAAA,sBAAsB,EAAE;AACpB,QAAA,IAAI,EAAE,2BAA2B;AACjC,QAAA,IAAI,EAAE,gCAAgC;AACzC,KAAA;AACD,IAAA,2BAA2B,EAAE;AACzB,QAAA,IAAI,EAAE,gCAAgC;AACtC,QAAA,IAAI,EAAE,wDAAwD;AACjE,KAAA;AACD,IAAA,qBAAqB,EAAE;AACnB,QAAA,IAAI,EAAE,yBAAyB;AAC/B,QAAA,IAAI,EAAE,4DAA4D;AACrE,KAAA;AACD,IAAA,kBAAkB,EAAE;AAChB,QAAA,IAAI,EAAE,iBAAiB;AACvB,QAAA,IAAI,EAAE,uEAAuE;AAChF,KAAA;EACH;AAEI,MAAO,aAAc,SAAQ,SAAS,CAAA;IACxC,WAAY,CAAA,SAAiB,EAAE,YAAqB,EAAA;AAChD,QAAA,KAAK,CAAC,SAAS,EAAE,YAAY,CAAC,CAAC;AAC/B,QAAA,IAAI,CAAC,IAAI,GAAG,eAAe,CAAC;KAC/B;AAED;;AAEG;AACH,IAAA,OAAO,qCAAq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oB,CAAC,kBAAkB,CAAC,IAAI,EAC5C,oBAAoB,CAAC,kBAAkB,CAAC,IAAI,CAC/C,CAAC;KACL;AACJ;;;;"}
|
|
@@ -0,0 +1,95 @@
|
|
|
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
|
+
|
|
7
|
+
/*
|
|
8
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
9
|
+
* Licensed under the MIT License.
|
|
10
|
+
*/
|
|
11
|
+
/**
|
|
12
|
+
* NodeAuthErrorMessage class containing string constants used by error codes and messages.
|
|
13
|
+
*/
|
|
14
|
+
const NodeAuthErrorMessage = {
|
|
15
|
+
invalidLoopbackAddressType: {
|
|
16
|
+
code: "invalid_loopback_server_address_type",
|
|
17
|
+
desc: "Loopback server address is not type string. This is unexpected.",
|
|
18
|
+
},
|
|
19
|
+
unableToLoadRedirectUri: {
|
|
20
|
+
code: "unable_to_load_redirectUrl",
|
|
21
|
+
desc: "Loopback server callback was invoked without a url. This is unexpected.",
|
|
22
|
+
},
|
|
23
|
+
noAuthCodeInResponse: {
|
|
24
|
+
code: "no_auth_code_in_response",
|
|
25
|
+
desc: "No auth code found in the server response. Please check your network trace to determine what happened.",
|
|
26
|
+
},
|
|
27
|
+
noLoopbackServerExists: {
|
|
28
|
+
code: "no_loopback_server_exists",
|
|
29
|
+
desc: "No loopback server exists yet.",
|
|
30
|
+
},
|
|
31
|
+
loopbackServerAlreadyExists: {
|
|
32
|
+
code: "loopback_server_already_exists",
|
|
33
|
+
desc: "Loopback server already exists. Cannot create another.",
|
|
34
|
+
},
|
|
35
|
+
loopbackServerTimeout: {
|
|
36
|
+
code: "loopback_server_timeout",
|
|
37
|
+
desc: "Timed out waiting for auth code listener to be registered.",
|
|
38
|
+
},
|
|
39
|
+
stateNotFoundError: {
|
|
40
|
+
code: "state_not_found",
|
|
41
|
+
desc: "State not found. Please verify that the request originated from msal.",
|
|
42
|
+
},
|
|
43
|
+
};
|
|
44
|
+
class NodeAuthError extends msalCommon.AuthError {
|
|
45
|
+
constructor(errorCode, errorMessage) {
|
|
46
|
+
super(errorCode, errorMessage);
|
|
47
|
+
this.name = "NodeAuthError";
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Creates an error thrown if loopback server address is of type string.
|
|
51
|
+
*/
|
|
52
|
+
static createInvalidLoopbackAddressTypeError() {
|
|
53
|
+
return new NodeAuthError(NodeAuthErrorMessage.invalidLoopbackAddressType.code, `${NodeAuthErrorMessage.invalidLoopbackAddressType.desc}`);
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Creates an error thrown if the loopback server is unable to get a url.
|
|
57
|
+
*/
|
|
58
|
+
static createUnableToLoadRedirectUrlError() {
|
|
59
|
+
return new NodeAuthError(NodeAuthErrorMessage.unableToLoadRedirectUri.code, `${NodeAuthErrorMessage.unableToLoadRedirectUri.desc}`);
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Creates an error thrown if the server response does not contain an auth code.
|
|
63
|
+
*/
|
|
64
|
+
static createNoAuthCodeInResponseError() {
|
|
65
|
+
return new NodeAuthError(NodeAuthErrorMessage.noAuthCodeInResponse.code, `${NodeAuthErrorMessage.noAuthCodeInResponse.desc}`);
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Creates an error thrown if the loopback server has not been spun up yet.
|
|
69
|
+
*/
|
|
70
|
+
static createNoLoopbackServerExistsError() {
|
|
71
|
+
return new NodeAuthError(NodeAuthErrorMessage.noLoopbackServerExists.code, `${NodeAuthErrorMessage.noLoopbackServerExists.desc}`);
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* Creates an error thrown if a loopback server already exists when attempting to create another one.
|
|
75
|
+
*/
|
|
76
|
+
static createLoopbackServerAlreadyExistsError() {
|
|
77
|
+
return new NodeAuthError(NodeAuthErrorMessage.loopbackServerAlreadyExists.code, `${NodeAuthErrorMessage.loopbackServerAlreadyExists.desc}`);
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* Creates an error thrown if the loopback server times out registering the auth code listener.
|
|
81
|
+
*/
|
|
82
|
+
static createLoopbackServerTimeoutError() {
|
|
83
|
+
return new NodeAuthError(NodeAuthErrorMessage.loopbackServerTimeout.code, `${NodeAuthErrorMessage.loopbackServerTimeout.desc}`);
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* Creates an error thrown when the state is not present.
|
|
87
|
+
*/
|
|
88
|
+
static createStateNotFoundError() {
|
|
89
|
+
return new NodeAuthError(NodeAuthErrorMessage.stateNotFoundError.code, NodeAuthErrorMessage.stateNotFoundError.desc);
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
exports.NodeAuthError = NodeAuthError;
|
|
94
|
+
exports.NodeAuthErrorMessage = NodeAuthErrorMessage;
|
|
95
|
+
//# sourceMappingURL=NodeAuthError.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NodeAuthError.js","sources":["../../src/error/NodeAuthError.ts"],"sourcesContent":[null],"names":["AuthError"],"mappings":";;;;;;AAAA;;;AAGG;AAIH;;AAEG;AACU,MAAA,oBAAoB,GAAG;AAChC,IAAA,0BAA0B,EAAE;AACxB,QAAA,IAAI,EAAE,sCAAsC;AAC5C,QAAA,IAAI,EAAE,iEAAiE;AAC1E,KAAA;AACD,IAAA,uBAAuB,EAAE;AACrB,QAAA,IAAI,EAAE,4BAA4B;AAClC,QAAA,IAAI,EAAE,yEAAyE;AAClF,KAAA;AACD,IAAA,oBAAoB,EAAE;AAClB,QAAA,IAAI,EAAE,0BAA0B;AAChC,QAAA,IAAI,EAAE,wGAAwG;AACjH,KAAA;AACD,IAAA,sBAAsB,EAAE;AACpB,QAAA,IAAI,EAAE,2BAA2B;AACjC,QAAA,IAAI,EAAE,gCAAgC;AACzC,KAAA;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AAoB,CAAC,sBAAsB,CAAC,IAAI,CAAA,CAAE,CACxD,CAAC;KACL;AAED;;AAEG;AACH,IAAA,OAAO,sCAAsC,GAAA;AACzC,QAAA,OAAO,IAAI,aAAa,CACpB,oBAAoB,CAAC,2BAA2B,CAAC,IAAI,EACrD,CAAA,EAAG,oBAAoB,CAAC,2BAA2B,CAAC,IAAI,CAAA,CAAE,CAC7D,CAAC;KACL;AAED;;AAEG;AACH,IAAA,OAAO,gCAAgC,GAAA;AACnC,QAAA,OAAO,IAAI,aAAa,CACpB,oBAAoB,CAAC,qBAAqB,CAAC,IAAI,EAC/C,CAAA,EAAG,oBAAoB,CAAC,qBAAqB,CAAC,IAAI,CAAA,CAAE,CACvD,CAAC;KACL;AAED;;AAEG;AACH,IAAA,OAAO,wBAAwB,GAAA;AAC3B,QAAA,OAAO,IAAI,aAAa,CACpB,oBAAoB,CAAC,kBAAkB,CAAC,IAAI,EAC5C,oBAAoB,CAAC,kBAAkB,CAAC,IAAI,CAC/C,CAAC;KACL;AACJ;;;;;"}
|
package/dist/index.d.ts
CHANGED
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
* @packageDocumentation
|
|
3
3
|
* @module @azure/msal-node
|
|
4
4
|
*/
|
|
5
|
+
/**
|
|
6
|
+
* Warning: This set of exports is purely intended to be used by other MSAL libraries, and should be considered potentially unstable. We strongly discourage using them directly, you do so at your own risk.
|
|
7
|
+
* Breaking changes to these APIs will be shipped under a minor version, instead of a major version.
|
|
8
|
+
*/
|
|
9
|
+
import * as internals from "./internals";
|
|
10
|
+
export { internals };
|
|
5
11
|
export { IPublicClientApplication } from "./client/IPublicClientApplication";
|
|
6
12
|
export { IConfidentialClientApplication } from "./client/IConfidentialClientApplication";
|
|
7
13
|
export { ITokenCache } from "./cache/ITokenCache";
|
|
@@ -11,11 +17,15 @@ export { ILoopbackClient } from "./network/ILoopbackClient";
|
|
|
11
17
|
export { PublicClientApplication } from "./client/PublicClientApplication";
|
|
12
18
|
export { ConfidentialClientApplication } from "./client/ConfidentialClientApplication";
|
|
13
19
|
export { ClientApplication } from "./client/ClientApplication";
|
|
14
|
-
export {
|
|
20
|
+
export { ClientCredentialClient } from "./client/ClientCredentialClient";
|
|
21
|
+
export { DeviceCodeClient } from "./client/DeviceCodeClient";
|
|
22
|
+
export { OnBehalfOfClient } from "./client/OnBehalfOfClient";
|
|
23
|
+
export { UsernamePasswordClient } from "./client/UsernamePasswordClient";
|
|
24
|
+
export { Configuration, buildAppConfiguration, NodeAuthOptions, NodeSystemOptions, CacheOptions, } from "./config/Configuration";
|
|
15
25
|
export { ClientAssertion } from "./client/ClientAssertion";
|
|
16
26
|
export { TokenCache } from "./cache/TokenCache";
|
|
17
27
|
export { NodeStorage } from "./cache/NodeStorage";
|
|
18
|
-
export { CacheKVStore, JsonCache, InMemoryCache, SerializedAccountEntity, SerializedIdTokenEntity, SerializedAccessTokenEntity, SerializedAppMetadataEntity, SerializedRefreshTokenEntity } from "./cache/serializer/SerializerTypes";
|
|
28
|
+
export { CacheKVStore, JsonCache, InMemoryCache, SerializedAccountEntity, SerializedIdTokenEntity, SerializedAccessTokenEntity, SerializedAppMetadataEntity, SerializedRefreshTokenEntity, } from "./cache/serializer/SerializerTypes";
|
|
19
29
|
export { DistributedCachePlugin } from "./cache/distributed/DistributedCachePlugin";
|
|
20
30
|
export { CryptoProvider } from "./crypto/CryptoProvider";
|
|
21
31
|
export type { AuthorizationCodeRequest } from "./request/AuthorizationCodeRequest";
|
|
@@ -27,6 +37,6 @@ export type { UsernamePasswordRequest } from "./request/UsernamePasswordRequest"
|
|
|
27
37
|
export type { RefreshTokenRequest } from "./request/RefreshTokenRequest";
|
|
28
38
|
export type { SilentFlowRequest } from "./request/SilentFlowRequest";
|
|
29
39
|
export type { InteractiveRequest } from "./request/InteractiveRequest";
|
|
30
|
-
export { PromptValue, ResponseMode, AuthorizationCodePayload, AuthenticationResult, AccountInfo, ValidCacheType, AuthError, AuthErrorMessage, ClientAuthError, ClientAuthErrorMessage, ClientConfigurationError, ClientConfigurationErrorMessage, InteractionRequiredAuthError, InteractionRequiredAuthErrorMessage, ServerError, INetworkModule, NetworkRequestOptions, NetworkResponse, Logger, LogLevel, ProtocolMode, ICachePlugin, TokenCacheContext, ISerializableTokenCache, AzureCloudInstance, AzureCloudOptions, IAppTokenProvider, AppTokenProviderParameters, AppTokenProviderResult } from "@azure/msal-common";
|
|
40
|
+
export { PromptValue, ResponseMode, AuthorizationCodePayload, AuthenticationResult, AccountInfo, ValidCacheType, AuthError, AuthErrorMessage, ClientAuthError, ClientAuthErrorMessage, ClientConfigurationError, ClientConfigurationErrorMessage, InteractionRequiredAuthError, InteractionRequiredAuthErrorMessage, ServerError, INetworkModule, NetworkRequestOptions, NetworkResponse, Logger, LogLevel, ProtocolMode, ICachePlugin, TokenCacheContext, ISerializableTokenCache, AzureCloudInstance, AzureCloudOptions, IAppTokenProvider, AppTokenProviderParameters, AppTokenProviderResult, } from "@azure/msal-common";
|
|
31
41
|
export { version } from "./packageMetadata";
|
|
32
42
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["src/index.ts"],"names":[],"mappings":"AAKA;;;GAGG;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAKA;;;GAGG;AAEH;;;GAGG;AAEH,OAAO,KAAK,SAAS,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,SAAS,EAAE,CAAC;AAGrB,OAAO,EAAE,wBAAwB,EAAE,MAAM,mCAAmC,CAAC;AAC7E,OAAO,EAAE,8BAA8B,EAAE,MAAM,yCAAyC,CAAC;AACzF,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAChE,OAAO,EAAE,iBAAiB,EAAE,MAAM,uCAAuC,CA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