@azure/msal-browser 2.36.0 → 3.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 +213 -213
- package/dist/app/IPublicClientApplication.d.ts.map +1 -1
- package/dist/app/IPublicClientApplication.js +33 -33
- package/dist/app/IPublicClientApplication.js.map +1 -1
- package/dist/app/PublicClientApplication.d.ts +198 -24
- package/dist/app/PublicClientApplication.d.ts.map +1 -1
- package/dist/app/PublicClientApplication.js +263 -220
- package/dist/app/PublicClientApplication.js.map +1 -1
- package/dist/broker/nativeBroker/NativeMessageHandler.d.ts +5 -4
- package/dist/broker/nativeBroker/NativeMessageHandler.d.ts.map +1 -1
- package/dist/broker/nativeBroker/NativeMessageHandler.js +118 -124
- package/dist/broker/nativeBroker/NativeMessageHandler.js.map +1 -1
- package/dist/broker/nativeBroker/NativeRequest.d.ts +4 -4
- package/dist/broker/nativeBroker/NativeRequest.d.ts.map +1 -1
- package/dist/broker/nativeBroker/NativeResponse.d.ts +4 -4
- package/dist/broker/nativeBroker/NativeResponse.d.ts.map +1 -1
- package/dist/cache/AsyncMemoryStorage.d.ts.map +1 -1
- package/dist/cache/AsyncMemoryStorage.js +83 -152
- package/dist/cache/AsyncMemoryStorage.js.map +1 -1
- package/dist/cache/BrowserCacheManager.d.ts.map +1 -1
- package/dist/cache/BrowserCacheManager.js +420 -412
- package/dist/cache/BrowserCacheManager.js.map +1 -1
- package/dist/cache/BrowserStorage.d.ts.map +1 -1
- package/dist/cache/BrowserStorage.js +19 -19
- package/dist/cache/BrowserStorage.js.map +1 -1
- package/dist/cache/CryptoKeyStore.d.ts.map +1 -1
- package/dist/cache/CryptoKeyStore.js +26 -36
- package/dist/cache/CryptoKeyStore.js.map +1 -1
- package/dist/cache/DatabaseStorage.d.ts.map +1 -1
- package/dist/cache/DatabaseStorage.js +127 -191
- package/dist/cache/DatabaseStorage.js.map +1 -1
- package/dist/cache/ITokenCache.d.ts.map +1 -1
- package/dist/cache/MemoryStorage.d.ts.map +1 -1
- package/dist/cache/MemoryStorage.js +18 -19
- package/dist/cache/MemoryStorage.js.map +1 -1
- package/dist/cache/TokenCache.d.ts +1 -1
- package/dist/cache/TokenCache.d.ts.map +1 -1
- package/dist/cache/TokenCache.js +55 -49
- package/dist/cache/TokenCache.js.map +1 -1
- package/dist/config/Configuration.d.ts +8 -8
- package/dist/config/Configuration.d.ts.map +1 -1
- package/dist/config/Configuration.js +53 -31
- package/dist/config/Configuration.js.map +1 -1
- package/dist/controllers/ControllerFactory.d.ts +10 -0
- package/dist/controllers/ControllerFactory.d.ts.map +1 -0
- package/dist/controllers/ControllerFactory.js +47 -0
- package/dist/controllers/ControllerFactory.js.map +1 -0
- package/dist/controllers/IController.d.ts +67 -0
- package/dist/controllers/IController.d.ts.map +1 -0
- package/dist/{app/ClientApplication.d.ts → controllers/StandardController.d.ts} +96 -15
- package/dist/controllers/StandardController.d.ts.map +1 -0
- package/dist/controllers/StandardController.js +1299 -0
- package/dist/controllers/StandardController.js.map +1 -0
- package/dist/crypto/BrowserCrypto.d.ts.map +1 -1
- package/dist/crypto/BrowserCrypto.js +36 -60
- package/dist/crypto/BrowserCrypto.js.map +1 -1
- package/dist/crypto/CryptoOps.d.ts +1 -1
- package/dist/crypto/CryptoOps.d.ts.map +1 -1
- package/dist/crypto/CryptoOps.js +93 -151
- package/dist/crypto/CryptoOps.js.map +1 -1
- package/dist/crypto/GuidGenerator.d.ts.map +1 -1
- package/dist/crypto/GuidGenerator.js +36 -25
- package/dist/crypto/GuidGenerator.js.map +1 -1
- package/dist/crypto/ISubtleCrypto.d.ts.map +1 -1
- package/dist/crypto/ModernBrowserCrypto.d.ts.map +1 -1
- package/dist/crypto/ModernBrowserCrypto.js +20 -44
- package/dist/crypto/ModernBrowserCrypto.js.map +1 -1
- package/dist/crypto/MsBrowserCrypto.d.ts.map +1 -1
- package/dist/crypto/MsBrowserCrypto.js +65 -89
- package/dist/crypto/MsBrowserCrypto.js.map +1 -1
- package/dist/crypto/MsrBrowserCrypto.d.ts.map +1 -1
- package/dist/crypto/MsrBrowserCrypto.js +23 -47
- package/dist/crypto/MsrBrowserCrypto.js.map +1 -1
- package/dist/crypto/PkceGenerator.d.ts.map +1 -1
- package/dist/crypto/PkceGenerator.js +28 -49
- package/dist/crypto/PkceGenerator.js.map +1 -1
- package/dist/crypto/SignedHttpRequest.d.ts +1 -1
- package/dist/crypto/SignedHttpRequest.d.ts.map +1 -1
- package/dist/crypto/SignedHttpRequest.js +15 -37
- package/dist/crypto/SignedHttpRequest.js.map +1 -1
- package/dist/encode/Base64Decode.d.ts.map +1 -1
- package/dist/encode/Base64Decode.js +32 -33
- package/dist/encode/Base64Decode.js.map +1 -1
- package/dist/encode/Base64Encode.d.ts.map +1 -1
- package/dist/encode/Base64Encode.js +34 -35
- package/dist/encode/Base64Encode.js.map +1 -1
- package/dist/error/BrowserAuthError.d.ts +1 -1
- package/dist/error/BrowserAuthError.d.ts.map +1 -1
- package/dist/error/BrowserAuthError.js +161 -163
- package/dist/error/BrowserAuthError.js.map +1 -1
- package/dist/error/BrowserConfigurationAuthError.d.ts.map +1 -1
- package/dist/error/BrowserConfigurationAuthError.js +32 -36
- package/dist/error/BrowserConfigurationAuthError.js.map +1 -1
- package/dist/error/NativeAuthError.d.ts +1 -1
- package/dist/error/NativeAuthError.d.ts.map +1 -1
- package/dist/error/NativeAuthError.js +26 -27
- package/dist/error/NativeAuthError.js.map +1 -1
- package/dist/event/EventHandler.d.ts.map +1 -1
- package/dist/event/EventHandler.js +33 -33
- package/dist/event/EventHandler.js.map +1 -1
- package/dist/event/EventMessage.d.ts +5 -5
- package/dist/event/EventMessage.d.ts.map +1 -1
- package/dist/event/EventMessage.js +18 -14
- package/dist/event/EventMessage.js.map +1 -1
- package/dist/event/EventType.js +1 -1
- package/dist/event/EventType.js.map +1 -1
- package/dist/index.d.ts +8 -8
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/interaction_client/BaseInteractionClient.d.ts.map +1 -1
- package/dist/interaction_client/BaseInteractionClient.js +92 -123
- package/dist/interaction_client/BaseInteractionClient.js.map +1 -1
- package/dist/interaction_client/HybridSpaAuthorizationCodeClient.d.ts.map +1 -1
- package/dist/interaction_client/HybridSpaAuthorizationCodeClient.js +6 -10
- package/dist/interaction_client/HybridSpaAuthorizationCodeClient.js.map +1 -1
- package/dist/interaction_client/NativeInteractionClient.d.ts.map +1 -1
- package/dist/interaction_client/NativeInteractionClient.js +336 -393
- package/dist/interaction_client/NativeInteractionClient.js.map +1 -1
- package/dist/interaction_client/PopupClient.d.ts +1 -1
- package/dist/interaction_client/PopupClient.d.ts.map +1 -1
- package/dist/interaction_client/PopupClient.js +224 -246
- package/dist/interaction_client/PopupClient.js.map +1 -1
- package/dist/interaction_client/RedirectClient.d.ts.map +1 -1
- package/dist/interaction_client/RedirectClient.js +244 -292
- package/dist/interaction_client/RedirectClient.js.map +1 -1
- package/dist/interaction_client/SilentAuthCodeClient.d.ts.map +1 -1
- package/dist/interaction_client/SilentAuthCodeClient.js +50 -63
- package/dist/interaction_client/SilentAuthCodeClient.js.map +1 -1
- package/dist/interaction_client/SilentCacheClient.d.ts.map +1 -1
- package/dist/interaction_client/SilentCacheClient.js +50 -81
- package/dist/interaction_client/SilentCacheClient.js.map +1 -1
- package/dist/interaction_client/SilentIframeClient.d.ts.map +1 -1
- package/dist/interaction_client/SilentIframeClient.js +107 -125
- package/dist/interaction_client/SilentIframeClient.js.map +1 -1
- package/dist/interaction_client/SilentRefreshClient.d.ts.map +1 -1
- package/dist/interaction_client/SilentRefreshClient.js +44 -72
- package/dist/interaction_client/SilentRefreshClient.js.map +1 -1
- package/dist/interaction_client/StandardInteractionClient.d.ts.map +1 -1
- package/dist/interaction_client/StandardInteractionClient.js +144 -180
- package/dist/interaction_client/StandardInteractionClient.js.map +1 -1
- package/dist/interaction_handler/InteractionHandler.d.ts +1 -1
- package/dist/interaction_handler/InteractionHandler.d.ts.map +1 -1
- package/dist/interaction_handler/InteractionHandler.js +84 -110
- package/dist/interaction_handler/InteractionHandler.js.map +1 -1
- package/dist/interaction_handler/RedirectHandler.d.ts +1 -1
- package/dist/interaction_handler/RedirectHandler.d.ts.map +1 -1
- package/dist/interaction_handler/RedirectHandler.js +105 -122
- package/dist/interaction_handler/RedirectHandler.js.map +1 -1
- package/dist/interaction_handler/SilentHandler.d.ts.map +1 -1
- package/dist/interaction_handler/SilentHandler.js +76 -65
- package/dist/interaction_handler/SilentHandler.js.map +1 -1
- package/dist/internals.js +1 -1
- package/dist/internals.js.map +1 -1
- package/dist/navigation/NavigationClient.d.ts.map +1 -1
- package/dist/navigation/NavigationClient.js +11 -14
- package/dist/navigation/NavigationClient.js.map +1 -1
- package/dist/navigation/NavigationOptions.d.ts +1 -1
- package/dist/navigation/NavigationOptions.d.ts.map +1 -1
- package/dist/network/FetchClient.d.ts.map +1 -1
- package/dist/network/FetchClient.js +66 -96
- package/dist/network/FetchClient.js.map +1 -1
- package/dist/network/XhrClient.d.ts.map +1 -1
- package/dist/network/XhrClient.js +38 -51
- package/dist/network/XhrClient.js.map +1 -1
- package/dist/operatingcontext/BaseOperatingContext.d.ts +41 -0
- package/dist/operatingcontext/BaseOperatingContext.d.ts.map +1 -0
- package/dist/operatingcontext/BaseOperatingContext.js +53 -0
- package/dist/operatingcontext/BaseOperatingContext.js.map +1 -0
- package/dist/operatingcontext/StandardOperatingContext.d.ts +26 -0
- package/dist/operatingcontext/StandardOperatingContext.d.ts.map +1 -0
- package/dist/operatingcontext/StandardOperatingContext.js +50 -0
- package/dist/operatingcontext/StandardOperatingContext.js.map +1 -0
- package/dist/operatingcontext/TeamsAppOperatingContext.d.ts +26 -0
- package/dist/operatingcontext/TeamsAppOperatingContext.d.ts.map +1 -0
- package/dist/operatingcontext/TeamsAppOperatingContext.js +49 -0
- package/dist/operatingcontext/TeamsAppOperatingContext.js.map +1 -0
- package/dist/packageMetadata.d.ts +1 -1
- package/dist/packageMetadata.d.ts.map +1 -1
- package/dist/packageMetadata.js +3 -3
- package/dist/packageMetadata.js.map +1 -1
- 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/EndSessionPopupRequest.d.ts +1 -1
- package/dist/request/EndSessionPopupRequest.d.ts.map +1 -1
- package/dist/request/EndSessionRequest.d.ts +1 -1
- package/dist/request/EndSessionRequest.d.ts.map +1 -1
- package/dist/request/PopupRequest.d.ts +1 -1
- package/dist/request/PopupRequest.d.ts.map +1 -1
- package/dist/request/PopupWindowAttributes.d.ts +3 -3
- package/dist/request/PopupWindowAttributes.d.ts.map +1 -1
- package/dist/request/RedirectRequest.d.ts +1 -1
- package/dist/request/RedirectRequest.d.ts.map +1 -1
- package/dist/request/SilentRequest.d.ts +1 -1
- package/dist/request/SilentRequest.d.ts.map +1 -1
- package/dist/request/SsoSilentRequest.d.ts +1 -1
- package/dist/request/SsoSilentRequest.d.ts.map +1 -1
- package/dist/telemetry/BrowserPerformanceClient.d.ts +1 -1
- package/dist/telemetry/BrowserPerformanceClient.d.ts.map +1 -1
- package/dist/telemetry/BrowserPerformanceClient.js +62 -57
- package/dist/telemetry/BrowserPerformanceClient.js.map +1 -1
- package/dist/telemetry/BrowserPerformanceMeasurement.d.ts.map +1 -1
- package/dist/telemetry/BrowserPerformanceMeasurement.js +30 -31
- package/dist/telemetry/BrowserPerformanceMeasurement.js.map +1 -1
- package/dist/utils/BrowserConstants.d.ts.map +1 -1
- package/dist/utils/BrowserConstants.js +10 -10
- package/dist/utils/BrowserConstants.js.map +1 -1
- package/dist/utils/BrowserProtocolUtils.d.ts +1 -1
- package/dist/utils/BrowserProtocolUtils.d.ts.map +1 -1
- package/dist/utils/BrowserProtocolUtils.js +9 -12
- package/dist/utils/BrowserProtocolUtils.js.map +1 -1
- package/dist/utils/BrowserStringUtils.d.ts.map +1 -1
- package/dist/utils/BrowserStringUtils.js +83 -49
- package/dist/utils/BrowserStringUtils.js.map +1 -1
- package/dist/utils/BrowserUtils.d.ts.map +1 -1
- package/dist/utils/BrowserUtils.js +51 -49
- package/dist/utils/BrowserUtils.js.map +1 -1
- package/dist/utils/MathUtils.d.ts.map +1 -1
- package/dist/utils/MathUtils.js +6 -9
- package/dist/utils/MathUtils.js.map +1 -1
- 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 +99 -95
- package/dist/_virtual/_tslib.js +0 -117
- package/dist/_virtual/_tslib.js.map +0 -1
- package/dist/app/ClientApplication.d.ts.map +0 -1
- package/dist/app/ClientApplication.js +0 -1053
- package/dist/app/ClientApplication.js.map +0 -1
- package/dist/index.cjs.js +0 -18045
- package/dist/index.cjs.js.map +0 -1
- package/lib/msal-browser.js +0 -18051
- package/lib/msal-browser.js.map +0 -1
- package/lib/msal-browser.min.js +0 -70
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @packageDocumentation
|
|
3
|
+
* @module @azure/msal-common
|
|
4
|
+
*/
|
|
5
|
+
export { AuthorizationCodeClient } from "./client/AuthorizationCodeClient";
|
|
6
|
+
export { RefreshTokenClient } from "./client/RefreshTokenClient";
|
|
7
|
+
export { SilentFlowClient } from "./client/SilentFlowClient";
|
|
8
|
+
export { BaseClient } from "./client/BaseClient";
|
|
9
|
+
export { AuthOptions, SystemOptions, LoggerOptions, DEFAULT_SYSTEM_OPTIONS, AzureCloudOptions, ApplicationTelemetry, } from "./config/ClientConfiguration";
|
|
10
|
+
export { IAppTokenProvider, AppTokenProviderParameters, AppTokenProviderResult, } from "./config/AppTokenProvider";
|
|
11
|
+
export { ClientConfiguration } from "./config/ClientConfiguration";
|
|
12
|
+
export { AccountInfo, ActiveAccountFilters } from "./account/AccountInfo";
|
|
13
|
+
export { AuthToken } from "./account/AuthToken";
|
|
14
|
+
export { AuthToken as IdToken } from "./account/AuthToken";
|
|
15
|
+
export { TokenClaims } from "./account/TokenClaims";
|
|
16
|
+
export { TokenClaims as IdTokenClaims } from "./account/TokenClaims";
|
|
17
|
+
export { CcsCredential, CcsCredentialType } from "./account/CcsCredential";
|
|
18
|
+
export { ClientInfo, buildClientInfo, buildClientInfoFromHomeAccountId, } from "./account/ClientInfo";
|
|
19
|
+
export { Authority } from "./authority/Authority";
|
|
20
|
+
export { AuthorityOptions, AzureCloudInstance, } from "./authority/AuthorityOptions";
|
|
21
|
+
export { AuthorityFactory } from "./authority/AuthorityFactory";
|
|
22
|
+
export { AuthorityType } from "./authority/AuthorityType";
|
|
23
|
+
export { ProtocolMode } from "./authority/ProtocolMode";
|
|
24
|
+
export { INativeBrokerPlugin } from "./broker/nativeBroker/INativeBrokerPlugin";
|
|
25
|
+
export { CacheManager, DefaultStorageClass } from "./cache/CacheManager";
|
|
26
|
+
export { AccountCache, AccessTokenCache, IdTokenCache, RefreshTokenCache, AppMetadataCache, CredentialFilter, ValidCacheType, ValidCredentialType, TokenKeys, } from "./cache/utils/CacheTypes";
|
|
27
|
+
export { CacheRecord } from "./cache/entities/CacheRecord";
|
|
28
|
+
export { CredentialEntity } from "./cache/entities/CredentialEntity";
|
|
29
|
+
export { AppMetadataEntity } from "./cache/entities/AppMetadataEntity";
|
|
30
|
+
export { AccountEntity } from "./cache/entities/AccountEntity";
|
|
31
|
+
export { IdTokenEntity } from "./cache/entities/IdTokenEntity";
|
|
32
|
+
export { AccessTokenEntity } from "./cache/entities/AccessTokenEntity";
|
|
33
|
+
export { RefreshTokenEntity } from "./cache/entities/RefreshTokenEntity";
|
|
34
|
+
export { ServerTelemetryEntity } from "./cache/entities/ServerTelemetryEntity";
|
|
35
|
+
export { AuthorityMetadataEntity } from "./cache/entities/AuthorityMetadataEntity";
|
|
36
|
+
export { ThrottlingEntity } from "./cache/entities/ThrottlingEntity";
|
|
37
|
+
export { ICachePlugin } from "./cache/interface/ICachePlugin";
|
|
38
|
+
export { TokenCacheContext } from "./cache/persistence/TokenCacheContext";
|
|
39
|
+
export { ISerializableTokenCache } from "./cache/interface/ISerializableTokenCache";
|
|
40
|
+
export { INetworkModule, NetworkRequestOptions, StubbedNetworkModule, } from "./network/INetworkModule";
|
|
41
|
+
export { NetworkManager, NetworkResponse, UrlToHttpRequestOptions, } from "./network/NetworkManager";
|
|
42
|
+
export { ThrottlingUtils } from "./network/ThrottlingUtils";
|
|
43
|
+
export { RequestThumbprint } from "./network/RequestThumbprint";
|
|
44
|
+
export { IUri } from "./url/IUri";
|
|
45
|
+
export { UrlString } from "./url/UrlString";
|
|
46
|
+
export { ICrypto, PkceCodes, DEFAULT_CRYPTO_IMPLEMENTATION, SignedHttpRequestParameters, } from "./crypto/ICrypto";
|
|
47
|
+
export { SignedHttpRequest } from "./crypto/SignedHttpRequest";
|
|
48
|
+
export { IGuidGenerator } from "./crypto/IGuidGenerator";
|
|
49
|
+
export { JoseHeader } from "./crypto/JoseHeader";
|
|
50
|
+
export { BaseAuthRequest } from "./request/BaseAuthRequest";
|
|
51
|
+
export { CommonAuthorizationUrlRequest } from "./request/CommonAuthorizationUrlRequest";
|
|
52
|
+
export { CommonAuthorizationCodeRequest } from "./request/CommonAuthorizationCodeRequest";
|
|
53
|
+
export { CommonRefreshTokenRequest } from "./request/CommonRefreshTokenRequest";
|
|
54
|
+
export { CommonClientCredentialRequest } from "./request/CommonClientCredentialRequest";
|
|
55
|
+
export { CommonOnBehalfOfRequest } from "./request/CommonOnBehalfOfRequest";
|
|
56
|
+
export { CommonSilentFlowRequest } from "./request/CommonSilentFlowRequest";
|
|
57
|
+
export { CommonDeviceCodeRequest } from "./request/CommonDeviceCodeRequest";
|
|
58
|
+
export { CommonEndSessionRequest } from "./request/CommonEndSessionRequest";
|
|
59
|
+
export { CommonUsernamePasswordRequest } from "./request/CommonUsernamePasswordRequest";
|
|
60
|
+
export { NativeRequest } from "./request/NativeRequest";
|
|
61
|
+
export { NativeSignOutRequest } from "./request/NativeSignOutRequest";
|
|
62
|
+
export { RequestParameterBuilder } from "./request/RequestParameterBuilder";
|
|
63
|
+
export { AzureRegion } from "./authority/AzureRegion";
|
|
64
|
+
export { AzureRegionConfiguration } from "./authority/AzureRegionConfiguration";
|
|
65
|
+
export { AuthenticationResult } from "./response/AuthenticationResult";
|
|
66
|
+
export { AuthorizationCodePayload } from "./response/AuthorizationCodePayload";
|
|
67
|
+
export { ServerAuthorizationCodeResponse } from "./response/ServerAuthorizationCodeResponse";
|
|
68
|
+
export { ServerAuthorizationTokenResponse } from "./response/ServerAuthorizationTokenResponse";
|
|
69
|
+
export { ExternalTokenResponse } from "./response/ExternalTokenResponse";
|
|
70
|
+
export { DeviceCodeResponse, ServerDeviceCodeResponse, } from "./response/DeviceCodeResponse";
|
|
71
|
+
export { ResponseHandler } from "./response/ResponseHandler";
|
|
72
|
+
export { ScopeSet } from "./request/ScopeSet";
|
|
73
|
+
export { AuthenticationHeaderParser } from "./request/AuthenticationHeaderParser";
|
|
74
|
+
export { ILoggerCallback, LogLevel, Logger } from "./logger/Logger";
|
|
75
|
+
export { InteractionRequiredAuthError, InteractionRequiredAuthErrorMessage, } from "./error/InteractionRequiredAuthError";
|
|
76
|
+
export { AuthError, AuthErrorMessage } from "./error/AuthError";
|
|
77
|
+
export { ServerError } from "./error/ServerError";
|
|
78
|
+
export { ClientAuthError, ClientAuthErrorMessage, } from "./error/ClientAuthError";
|
|
79
|
+
export { ClientConfigurationError, ClientConfigurationErrorMessage, } from "./error/ClientConfigurationError";
|
|
80
|
+
export { Constants, OIDC_DEFAULT_SCOPES, PromptValue, PersistentCacheKeys, ResponseMode, CacheOutcome, CredentialType, CacheType, CacheAccountType, AuthenticationScheme, CodeChallengeMethodValues, SSOTypes, PasswordGrantConstants, ThrottlingConstants, ClaimsRequestKeys, HeaderNames, AADServerParamKeys, Errors, THE_FAMILY_ID, ONE_DAY_IN_MS, GrantType, AADAuthorityConstants, } from "./utils/Constants";
|
|
81
|
+
export { StringUtils } from "./utils/StringUtils";
|
|
82
|
+
export { StringDict } from "./utils/MsalTypes";
|
|
83
|
+
export { ProtocolUtils, RequestStateObject, LibraryStateObject, } from "./utils/ProtocolUtils";
|
|
84
|
+
export { TimeUtils } from "./utils/TimeUtils";
|
|
85
|
+
export { ServerTelemetryManager } from "./telemetry/server/ServerTelemetryManager";
|
|
86
|
+
export { ServerTelemetryRequest } from "./telemetry/server/ServerTelemetryRequest";
|
|
87
|
+
export { IPerformanceClient, PerformanceCallbackFunction, InProgressPerformanceEvent, QueueMeasurement, } from "./telemetry/performance/IPerformanceClient";
|
|
88
|
+
export { Counters, IntFields, PerformanceEvent, PerformanceEvents, PerformanceEventStatus, StaticFields, SubMeasurement, } from "./telemetry/performance/PerformanceEvent";
|
|
89
|
+
export { IPerformanceMeasurement } from "./telemetry/performance/IPerformanceMeasurement";
|
|
90
|
+
export { PerformanceClient, PreQueueEvent, } from "./telemetry/performance/PerformanceClient";
|
|
91
|
+
export { StubPerformanceClient } from "./telemetry/performance/StubPerformanceClient";
|
|
92
|
+
export { PopTokenGenerator } from "./crypto/PopTokenGenerator";
|
|
93
|
+
export { version } from "./packageMetadata";
|
|
94
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,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;AAC/C,OAAO,EACH,aAAa,EACb,kBAAkB,EAClB,kBAAkB,GACrB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAE9C,OAAO,EAAE,sBAAsB,EAAE,MAAM,2CAA2C,CAAC;AACnF,OAAO,EAAE,sBAAsB,EAAE,MAAM,2CAA2C,CAAC;AAGnF,OAAO,EACH,kBAAkB,EAClB,2BAA2B,EAC3B,0BAA0B,EAC1B,gBAAgB,GACnB,MAAM,4CAA4C,CAAC;AACpD,OAAO,EACH,QAAQ,EACR,SAAS,EACT,gBAAgB,EAChB,iBAAiB,EACjB,sBAAsB,EACtB,YAAY,EACZ,cAAc,GACjB,MAAM,0CAA0C,CAAC;AAClD,OAAO,EAAE,uBAAuB,EAAE,MAAM,iDAAiD,CAAC;AAC1F,OAAO,EACH,iBAAiB,EACjB,aAAa,GAChB,MAAM,2CAA2C,CAAC;AACnD,OAAO,EAAE,qBAAqB,EAAE,MAAM,+CAA+C,CAAC;AAEtF,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAE/D,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/*! @azure/msal-common v14.0.0 2023-05-03 */
|
|
2
|
+
'use strict';
|
|
3
|
+
export { AuthorizationCodeClient } from './client/AuthorizationCodeClient.js';
|
|
4
|
+
export { RefreshTokenClient } from './client/RefreshTokenClient.js';
|
|
5
|
+
export { SilentFlowClient } from './client/SilentFlowClient.js';
|
|
6
|
+
export { BaseClient } from './client/BaseClient.js';
|
|
7
|
+
export { DEFAULT_SYSTEM_OPTIONS } from './config/ClientConfiguration.js';
|
|
8
|
+
export { AuthToken, AuthToken as IdToken } from './account/AuthToken.js';
|
|
9
|
+
export { CcsCredentialType } from './account/CcsCredential.js';
|
|
10
|
+
export { buildClientInfo, buildClientInfoFromHomeAccountId } from './account/ClientInfo.js';
|
|
11
|
+
export { Authority } from './authority/Authority.js';
|
|
12
|
+
export { AzureCloudInstance } from './authority/AuthorityOptions.js';
|
|
13
|
+
export { AuthorityFactory } from './authority/AuthorityFactory.js';
|
|
14
|
+
export { AuthorityType } from './authority/AuthorityType.js';
|
|
15
|
+
export { ProtocolMode } from './authority/ProtocolMode.js';
|
|
16
|
+
export { CacheManager, DefaultStorageClass } from './cache/CacheManager.js';
|
|
17
|
+
export { CacheRecord } from './cache/entities/CacheRecord.js';
|
|
18
|
+
export { CredentialEntity } from './cache/entities/CredentialEntity.js';
|
|
19
|
+
export { AppMetadataEntity } from './cache/entities/AppMetadataEntity.js';
|
|
20
|
+
export { AccountEntity } from './cache/entities/AccountEntity.js';
|
|
21
|
+
export { IdTokenEntity } from './cache/entities/IdTokenEntity.js';
|
|
22
|
+
export { AccessTokenEntity } from './cache/entities/AccessTokenEntity.js';
|
|
23
|
+
export { RefreshTokenEntity } from './cache/entities/RefreshTokenEntity.js';
|
|
24
|
+
export { ServerTelemetryEntity } from './cache/entities/ServerTelemetryEntity.js';
|
|
25
|
+
export { AuthorityMetadataEntity } from './cache/entities/AuthorityMetadataEntity.js';
|
|
26
|
+
export { ThrottlingEntity } from './cache/entities/ThrottlingEntity.js';
|
|
27
|
+
export { TokenCacheContext } from './cache/persistence/TokenCacheContext.js';
|
|
28
|
+
export { StubbedNetworkModule } from './network/INetworkModule.js';
|
|
29
|
+
export { NetworkManager } from './network/NetworkManager.js';
|
|
30
|
+
export { ThrottlingUtils } from './network/ThrottlingUtils.js';
|
|
31
|
+
export { UrlString } from './url/UrlString.js';
|
|
32
|
+
export { DEFAULT_CRYPTO_IMPLEMENTATION } from './crypto/ICrypto.js';
|
|
33
|
+
export { JoseHeader } from './crypto/JoseHeader.js';
|
|
34
|
+
export { RequestParameterBuilder } from './request/RequestParameterBuilder.js';
|
|
35
|
+
export { ResponseHandler } from './response/ResponseHandler.js';
|
|
36
|
+
export { ScopeSet } from './request/ScopeSet.js';
|
|
37
|
+
export { AuthenticationHeaderParser } from './request/AuthenticationHeaderParser.js';
|
|
38
|
+
export { LogLevel, Logger } from './logger/Logger.js';
|
|
39
|
+
export { InteractionRequiredAuthError, InteractionRequiredAuthErrorMessage } from './error/InteractionRequiredAuthError.js';
|
|
40
|
+
export { AuthError, AuthErrorMessage } from './error/AuthError.js';
|
|
41
|
+
export { ServerError } from './error/ServerError.js';
|
|
42
|
+
export { ClientAuthError, ClientAuthErrorMessage } from './error/ClientAuthError.js';
|
|
43
|
+
export { ClientConfigurationError, ClientConfigurationErrorMessage } from './error/ClientConfigurationError.js';
|
|
44
|
+
export { AADAuthorityConstants, AADServerParamKeys, AuthenticationScheme, CacheAccountType, CacheOutcome, CacheType, ClaimsRequestKeys, CodeChallengeMethodValues, Constants, CredentialType, Errors, GrantType, HeaderNames, OIDC_DEFAULT_SCOPES, ONE_DAY_IN_MS, PasswordGrantConstants, PersistentCacheKeys, PromptValue, ResponseMode, SSOTypes, THE_FAMILY_ID, ThrottlingConstants } from './utils/Constants.js';
|
|
45
|
+
export { StringUtils } from './utils/StringUtils.js';
|
|
46
|
+
export { ProtocolUtils } from './utils/ProtocolUtils.js';
|
|
47
|
+
export { TimeUtils } from './utils/TimeUtils.js';
|
|
48
|
+
export { ServerTelemetryManager } from './telemetry/server/ServerTelemetryManager.js';
|
|
49
|
+
export { IntFields, PerformanceEventStatus, PerformanceEvents } from './telemetry/performance/PerformanceEvent.js';
|
|
50
|
+
export { PerformanceClient } from './telemetry/performance/PerformanceClient.js';
|
|
51
|
+
export { StubPerformanceClient } from './telemetry/performance/StubPerformanceClient.js';
|
|
52
|
+
export { PopTokenGenerator } from './crypto/PopTokenGenerator.js';
|
|
53
|
+
export { version } from './packageMetadata.js';
|
|
54
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { LoggerOptions } from "../config/ClientConfiguration";
|
|
2
|
+
/**
|
|
3
|
+
* Options for logger messages.
|
|
4
|
+
*/
|
|
5
|
+
export type LoggerMessageOptions = {
|
|
6
|
+
logLevel: LogLevel;
|
|
7
|
+
containsPii?: boolean;
|
|
8
|
+
context?: string;
|
|
9
|
+
correlationId?: string;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* Log message level.
|
|
13
|
+
*/
|
|
14
|
+
export declare enum LogLevel {
|
|
15
|
+
Error = 0,
|
|
16
|
+
Warning = 1,
|
|
17
|
+
Info = 2,
|
|
18
|
+
Verbose = 3,
|
|
19
|
+
Trace = 4
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Callback to send the messages to.
|
|
23
|
+
*/
|
|
24
|
+
export interface ILoggerCallback {
|
|
25
|
+
(level: LogLevel, message: string, containsPii: boolean): void;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Class which facilitates logging of messages to a specific place.
|
|
29
|
+
*/
|
|
30
|
+
export declare class Logger {
|
|
31
|
+
private correlationId;
|
|
32
|
+
private level;
|
|
33
|
+
private piiLoggingEnabled;
|
|
34
|
+
private localCallback;
|
|
35
|
+
private packageName;
|
|
36
|
+
private packageVersion;
|
|
37
|
+
constructor(loggerOptions: LoggerOptions, packageName?: string, packageVersion?: string);
|
|
38
|
+
private static createDefaultLoggerOptions;
|
|
39
|
+
/**
|
|
40
|
+
* Create new Logger with existing configurations.
|
|
41
|
+
*/
|
|
42
|
+
clone(packageName: string, packageVersion: string, correlationId?: string): Logger;
|
|
43
|
+
/**
|
|
44
|
+
* Log message with required options.
|
|
45
|
+
*/
|
|
46
|
+
private logMessage;
|
|
47
|
+
/**
|
|
48
|
+
* Execute callback with message.
|
|
49
|
+
*/
|
|
50
|
+
executeCallback(level: LogLevel, message: string, containsPii: boolean): void;
|
|
51
|
+
/**
|
|
52
|
+
* Logs error messages.
|
|
53
|
+
*/
|
|
54
|
+
error(message: string, correlationId?: string): void;
|
|
55
|
+
/**
|
|
56
|
+
* Logs error messages with PII.
|
|
57
|
+
*/
|
|
58
|
+
errorPii(message: string, correlationId?: string): void;
|
|
59
|
+
/**
|
|
60
|
+
* Logs warning messages.
|
|
61
|
+
*/
|
|
62
|
+
warning(message: string, correlationId?: string): void;
|
|
63
|
+
/**
|
|
64
|
+
* Logs warning messages with PII.
|
|
65
|
+
*/
|
|
66
|
+
warningPii(message: string, correlationId?: string): void;
|
|
67
|
+
/**
|
|
68
|
+
* Logs info messages.
|
|
69
|
+
*/
|
|
70
|
+
info(message: string, correlationId?: string): void;
|
|
71
|
+
/**
|
|
72
|
+
* Logs info messages with PII.
|
|
73
|
+
*/
|
|
74
|
+
infoPii(message: string, correlationId?: string): void;
|
|
75
|
+
/**
|
|
76
|
+
* Logs verbose messages.
|
|
77
|
+
*/
|
|
78
|
+
verbose(message: string, correlationId?: string): void;
|
|
79
|
+
/**
|
|
80
|
+
* Logs verbose messages with PII.
|
|
81
|
+
*/
|
|
82
|
+
verbosePii(message: string, correlationId?: string): void;
|
|
83
|
+
/**
|
|
84
|
+
* Logs trace messages.
|
|
85
|
+
*/
|
|
86
|
+
trace(message: string, correlationId?: string): void;
|
|
87
|
+
/**
|
|
88
|
+
* Logs trace messages with PII.
|
|
89
|
+
*/
|
|
90
|
+
tracePii(message: string, correlationId?: string): void;
|
|
91
|
+
/**
|
|
92
|
+
* Returns whether PII Logging is enabled or not.
|
|
93
|
+
*/
|
|
94
|
+
isPiiLoggingEnabled(): boolean;
|
|
95
|
+
}
|
|
96
|
+
//# sourceMappingURL=Logger.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Logger.d.ts","sourceRoot":"","sources":["../../src/logger/Logger.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAG9D;;GAEG;AACH,MAAM,M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vD;;OAEG;IACH,OAAO,CAAC,OAAO,EAAE,MAAM,EAAE,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI;IAQtD;;OAEG;IACH,UAAU,CAAC,OAAO,EAAE,MAAM,EAAE,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI;IAQzD;;OAEG;IACH,IAAI,CAAC,OAAO,EAAE,MAAM,EAAE,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI;IAQnD;;OAEG;IACH,OAAO,CAAC,OAAO,EAAE,MAAM,EAAE,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI;IAQtD;;OAEG;IACH,OAAO,CAAC,OAAO,EAAE,MAAM,EAAE,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI;IAQtD;;OAEG;IACH,UAAU,CAAC,OAAO,EAAE,MAAM,EAAE,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI;IAQzD;;OAEG;IACH,KAAK,CAAC,OAAO,EAAE,MAAM,EAAE,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI;IAQpD;;OAEG;IACH,QAAQ,CAAC,OAAO,EAAE,MAAM,EAAE,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI;IAQvD;;OAEG;IACH,mBAAmB,IAAI,OAAO;CAGjC"}
|
|
@@ -0,0 +1,205 @@
|
|
|
1
|
+
/*! @azure/msal-common v14.0.0 2023-05-03 */
|
|
2
|
+
'use strict';
|
|
3
|
+
import { StringUtils } from '../utils/StringUtils.js';
|
|
4
|
+
import { Constants } from '../utils/Constants.js';
|
|
5
|
+
|
|
6
|
+
/*
|
|
7
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
8
|
+
* Licensed under the MIT License.
|
|
9
|
+
*/
|
|
10
|
+
/**
|
|
11
|
+
* Log message level.
|
|
12
|
+
*/
|
|
13
|
+
var LogLevel;
|
|
14
|
+
(function (LogLevel) {
|
|
15
|
+
LogLevel[LogLevel["Error"] = 0] = "Error";
|
|
16
|
+
LogLevel[LogLevel["Warning"] = 1] = "Warning";
|
|
17
|
+
LogLevel[LogLevel["Info"] = 2] = "Info";
|
|
18
|
+
LogLevel[LogLevel["Verbose"] = 3] = "Verbose";
|
|
19
|
+
LogLevel[LogLevel["Trace"] = 4] = "Trace";
|
|
20
|
+
})(LogLevel || (LogLevel = {}));
|
|
21
|
+
/**
|
|
22
|
+
* Class which facilitates logging of messages to a specific place.
|
|
23
|
+
*/
|
|
24
|
+
class Logger {
|
|
25
|
+
constructor(loggerOptions, packageName, packageVersion) {
|
|
26
|
+
// Current log level, defaults to info.
|
|
27
|
+
this.level = LogLevel.Info;
|
|
28
|
+
const defaultLoggerCallback = () => {
|
|
29
|
+
return;
|
|
30
|
+
};
|
|
31
|
+
const setLoggerOptions = loggerOptions || Logger.createDefaultLoggerOptions();
|
|
32
|
+
this.localCallback =
|
|
33
|
+
setLoggerOptions.loggerCallback || defaultLoggerCallback;
|
|
34
|
+
this.piiLoggingEnabled = setLoggerOptions.piiLoggingEnabled || false;
|
|
35
|
+
this.level =
|
|
36
|
+
typeof setLoggerOptions.logLevel === "number"
|
|
37
|
+
? setLoggerOptions.logLevel
|
|
38
|
+
: LogLevel.Info;
|
|
39
|
+
this.correlationId =
|
|
40
|
+
setLoggerOptions.correlationId || Constants.EMPTY_STRING;
|
|
41
|
+
this.packageName = packageName || Constants.EMPTY_STRING;
|
|
42
|
+
this.packageVersion = packageVersion || Constants.EMPTY_STRING;
|
|
43
|
+
}
|
|
44
|
+
static createDefaultLoggerOptions() {
|
|
45
|
+
return {
|
|
46
|
+
loggerCallback: () => {
|
|
47
|
+
// allow users to not set loggerCallback
|
|
48
|
+
},
|
|
49
|
+
piiLoggingEnabled: false,
|
|
50
|
+
logLevel: LogLevel.Info,
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Create new Logger with existing configurations.
|
|
55
|
+
*/
|
|
56
|
+
clone(packageName, packageVersion, correlationId) {
|
|
57
|
+
return new Logger({
|
|
58
|
+
loggerCallback: this.localCallback,
|
|
59
|
+
piiLoggingEnabled: this.piiLoggingEnabled,
|
|
60
|
+
logLevel: this.level,
|
|
61
|
+
correlationId: correlationId || this.correlationId,
|
|
62
|
+
}, packageName, packageVersion);
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Log message with required options.
|
|
66
|
+
*/
|
|
67
|
+
logMessage(logMessage, options) {
|
|
68
|
+
if (options.logLevel > this.level ||
|
|
69
|
+
(!this.piiLoggingEnabled && options.containsPii)) {
|
|
70
|
+
return;
|
|
71
|
+
}
|
|
72
|
+
const timestamp = new Date().toUTCString();
|
|
73
|
+
// Add correlationId to logs if set, correlationId provided on log messages take precedence
|
|
74
|
+
let logHeader;
|
|
75
|
+
if (!StringUtils.isEmpty(options.correlationId)) {
|
|
76
|
+
logHeader = `[${timestamp}] : [${options.correlationId}]`;
|
|
77
|
+
}
|
|
78
|
+
else if (!StringUtils.isEmpty(this.correlationId)) {
|
|
79
|
+
logHeader = `[${timestamp}] : [${this.correlationId}]`;
|
|
80
|
+
}
|
|
81
|
+
else {
|
|
82
|
+
logHeader = `[${timestamp}]`;
|
|
83
|
+
}
|
|
84
|
+
const log = `${logHeader} : ${this.packageName}@${this.packageVersion} : ${LogLevel[options.logLevel]} - ${logMessage}`;
|
|
85
|
+
// debug(`msal:${LogLevel[options.logLevel]}${options.containsPii ? "-Pii": Constants.EMPTY_STRING}${options.context ? `:${options.context}` : Constants.EMPTY_STRING}`)(logMessage);
|
|
86
|
+
this.executeCallback(options.logLevel, log, options.containsPii || false);
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* Execute callback with message.
|
|
90
|
+
*/
|
|
91
|
+
executeCallback(level, message, containsPii) {
|
|
92
|
+
if (this.localCallback) {
|
|
93
|
+
this.localCallback(level, message, containsPii);
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* Logs error messages.
|
|
98
|
+
*/
|
|
99
|
+
error(message, correlationId) {
|
|
100
|
+
this.logMessage(message, {
|
|
101
|
+
logLevel: LogLevel.Error,
|
|
102
|
+
containsPii: false,
|
|
103
|
+
correlationId: correlationId || Constants.EMPTY_STRING,
|
|
104
|
+
});
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* Logs error messages with PII.
|
|
108
|
+
*/
|
|
109
|
+
errorPii(message, correlationId) {
|
|
110
|
+
this.logMessage(message, {
|
|
111
|
+
logLevel: LogLevel.Error,
|
|
112
|
+
containsPii: true,
|
|
113
|
+
correlationId: correlationId || Constants.EMPTY_STRING,
|
|
114
|
+
});
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* Logs warning messages.
|
|
118
|
+
*/
|
|
119
|
+
warning(message, correlationId) {
|
|
120
|
+
this.logMessage(message, {
|
|
121
|
+
logLevel: LogLevel.Warning,
|
|
122
|
+
containsPii: false,
|
|
123
|
+
correlationId: correlationId || Constants.EMPTY_STRING,
|
|
124
|
+
});
|
|
125
|
+
}
|
|
126
|
+
/**
|
|
127
|
+
* Logs warning messages with PII.
|
|
128
|
+
*/
|
|
129
|
+
warningPii(message, correlationId) {
|
|
130
|
+
this.logMessage(message, {
|
|
131
|
+
logLevel: LogLevel.Warning,
|
|
132
|
+
containsPii: true,
|
|
133
|
+
correlationId: correlationId || Constants.EMPTY_STRING,
|
|
134
|
+
});
|
|
135
|
+
}
|
|
136
|
+
/**
|
|
137
|
+
* Logs info messages.
|
|
138
|
+
*/
|
|
139
|
+
info(message, correlationId) {
|
|
140
|
+
this.logMessage(message, {
|
|
141
|
+
logLevel: LogLevel.Info,
|
|
142
|
+
containsPii: false,
|
|
143
|
+
correlationId: correlationId || Constants.EMPTY_STRING,
|
|
144
|
+
});
|
|
145
|
+
}
|
|
146
|
+
/**
|
|
147
|
+
* Logs info messages with PII.
|
|
148
|
+
*/
|
|
149
|
+
infoPii(message, correlationId) {
|
|
150
|
+
this.logMessage(message, {
|
|
151
|
+
logLevel: LogLevel.Info,
|
|
152
|
+
containsPii: true,
|
|
153
|
+
correlationId: correlationId || Constants.EMPTY_STRING,
|
|
154
|
+
});
|
|
155
|
+
}
|
|
156
|
+
/**
|
|
157
|
+
* Logs verbose messages.
|
|
158
|
+
*/
|
|
159
|
+
verbose(message, correlationId) {
|
|
160
|
+
this.logMessage(message, {
|
|
161
|
+
logLevel: LogLevel.Verbose,
|
|
162
|
+
containsPii: false,
|
|
163
|
+
correlationId: correlationId || Constants.EMPTY_STRING,
|
|
164
|
+
});
|
|
165
|
+
}
|
|
166
|
+
/**
|
|
167
|
+
* Logs verbose messages with PII.
|
|
168
|
+
*/
|
|
169
|
+
verbosePii(message, correlationId) {
|
|
170
|
+
this.logMessage(message, {
|
|
171
|
+
logLevel: LogLevel.Verbose,
|
|
172
|
+
containsPii: true,
|
|
173
|
+
correlationId: correlationId || Constants.EMPTY_STRING,
|
|
174
|
+
});
|
|
175
|
+
}
|
|
176
|
+
/**
|
|
177
|
+
* Logs trace messages.
|
|
178
|
+
*/
|
|
179
|
+
trace(message, correlationId) {
|
|
180
|
+
this.logMessage(message, {
|
|
181
|
+
logLevel: LogLevel.Trace,
|
|
182
|
+
containsPii: false,
|
|
183
|
+
correlationId: correlationId || Constants.EMPTY_STRING,
|
|
184
|
+
});
|
|
185
|
+
}
|
|
186
|
+
/**
|
|
187
|
+
* Logs trace messages with PII.
|
|
188
|
+
*/
|
|
189
|
+
tracePii(message, correlationId) {
|
|
190
|
+
this.logMessage(message, {
|
|
191
|
+
logLevel: LogLevel.Trace,
|
|
192
|
+
containsPii: true,
|
|
193
|
+
correlationId: correlationId || Constants.EMPTY_STRING,
|
|
194
|
+
});
|
|
195
|
+
}
|
|
196
|
+
/**
|
|
197
|
+
* Returns whether PII Logging is enabled or not.
|
|
198
|
+
*/
|
|
199
|
+
isPiiLoggingEnabled() {
|
|
200
|
+
return this.piiLoggingEnabled || false;
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
export { LogLevel, Logger };
|
|
205
|
+
//# sourceMappingURL=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AW,EAAE,KAAK;AAClB,YAAA,aAAa,EAAE,aAAa,IAAI,SAAS,CAAC,YAAY;AACzD,SAAA,CAAC,CAAC;KACN;AAED;;AAEG;IACH,UAAU,CAAC,OAAe,EAAE,aAAsB,EAAA;AAC9C,QAAA,IAAI,CAAC,UAAU,CAAC,OAAO,EAAE;YACrB,QAAQ,EAAE,QAAQ,CAAC,OAAO;AAC1B,YAAA,WAAW,EAAE,IAAI;AACjB,YAAA,aAAa,EAAE,aAAa,IAAI,SAAS,CAAC,YAAY;AACzD,SAAA,CAAC,CAAC;KACN;AAED;;AAEG;IACH,KAAK,CAAC,OAAe,EAAE,aAAsB,EAAA;AACzC,QAAA,IAAI,CAAC,UAAU,CAAC,OAAO,EAAE;YACrB,QAAQ,EAAE,QAAQ,CAAC,KAAK;AACxB,YAAA,WAAW,EAAE,KAAK;AAClB,YAAA,aAAa,EAAE,aAAa,IAAI,SAAS,CAAC,YAAY;AACzD,SAAA,CAAC,CAAC;KACN;AAED;;AAEG;IACH,QAAQ,CAAC,OAAe,EAAE,aAAsB,EAAA;AAC5C,QAAA,IAAI,CAAC,UAAU,CAAC,OAAO,EAAE;YACrB,QAAQ,EAAE,QAAQ,CAAC,KAAK;AACxB,YAAA,WAAW,EAAE,IAAI;AACjB,YAAA,aAAa,EAAE,aAAa,IAAI,SAAS,CAAC,YAAY;AACzD,SAAA,CAAC,CAAC;KACN;AAED;;AAEG;IACH,mBAAmB,GAAA;AACf,QAAA,OAAO,IAAI,CAAC,iBAAiB,IAAI,KAAK,CAAC;KAC1C;AACJ;;;;"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { NetworkResponse } from "./NetworkManager";
|
|
2
|
+
/**
|
|
3
|
+
* Options allowed by network request APIs.
|
|
4
|
+
*/
|
|
5
|
+
export type NetworkRequestOptions = {
|
|
6
|
+
headers?: Record<string, string>;
|
|
7
|
+
body?: string;
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* Client network interface to send backend requests.
|
|
11
|
+
* @interface
|
|
12
|
+
*/
|
|
13
|
+
export interface INetworkModule {
|
|
14
|
+
/**
|
|
15
|
+
* Interface function for async network "GET" requests. Based on the Fetch standard: https://fetch.spec.whatwg.org/
|
|
16
|
+
* @param url
|
|
17
|
+
* @param requestParams
|
|
18
|
+
* @param enableCaching
|
|
19
|
+
*/
|
|
20
|
+
sendGetRequestAsync<T>(url: string, options?: NetworkRequestOptions, cancellationToken?: number): Promise<NetworkResponse<T>>;
|
|
21
|
+
/**
|
|
22
|
+
* Interface function for async network "POST" requests. Based on the Fetch standard: https://fetch.spec.whatwg.org/
|
|
23
|
+
* @param url
|
|
24
|
+
* @param requestParams
|
|
25
|
+
* @param enableCaching
|
|
26
|
+
*/
|
|
27
|
+
sendPostRequestAsync<T>(url: string, options?: NetworkRequestOptions): Promise<NetworkResponse<T>>;
|
|
28
|
+
}
|
|
29
|
+
export declare const StubbedNetworkModule: INetworkModule;
|
|
30
|
+
//# sourceMappingURL=INetworkModule.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"INetworkModule.d.ts","sourceRoot":"","sources":["../../src/network/INetworkModule.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAEnD;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAAG;IAChC,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACjC,IAAI,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF;;;GAGG;AACH,MAAM,WAAW,cAAc;IAC3B;;;;;OAKG;IACH,mBAAmB,CAAC,CAAC,EACjB,GAAG,EAAE,MAAM,EACX,OAAO,CAAC,EAAE,qBAAqB,EAC/B,iBAAiB,CAAC,EAAE,MAAM,GAC3B,OAAO,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC,CAAC;IAE/B;;;;;OAKG;IACH,oBAAoB,CAAC,CAAC,EAClB,GAAG,EAAE,MAAM,EACX,OAAO,CAAC,EAAE,qBAAqB,GAChC,OAAO,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC,CAAC;CAClC;AAED,eAAO,MAAM,oBAAoB,EAAE,cAWlC,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/*! @azure/msal-common v14.0.0 2023-05-03 */
|
|
2
|
+
'use strict';
|
|
3
|
+
import { AuthError } from '../error/AuthError.js';
|
|
4
|
+
|
|
5
|
+
/*
|
|
6
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
7
|
+
* Licensed under the MIT License.
|
|
8
|
+
*/
|
|
9
|
+
const StubbedNetworkModule = {
|
|
10
|
+
sendGetRequestAsync: () => {
|
|
11
|
+
const notImplErr = "Network interface - sendGetRequestAsync() has not been implemented for the Network interface.";
|
|
12
|
+
return Promise.reject(AuthError.createUnexpectedError(notImplErr));
|
|
13
|
+
},
|
|
14
|
+
sendPostRequestAsync: () => {
|
|
15
|
+
const notImplErr = "Network interface - sendPostRequestAsync() has not been implemented for the Network interface.";
|
|
16
|
+
return Promise.reject(AuthError.createUnexpectedError(notImplErr));
|
|
17
|
+
},
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
export { StubbedNetworkModule };
|
|
21
|
+
//# sourceMappingURL=INetworkModule.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"INetworkModule.js","sources":["../../src/network/INetworkModule.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;AAAA;;;AAGG;AA0CU,MAAA,oBAAoB,GAAmB;IAChD,mBAAmB,EAAE,MAAK;QACtB,MAAM,UAAU,GACZ,+FAA+F,CAAC;QACpG,OAAO,OAAO,CAAC,MAAM,CAAC,SAAS,CAAC,qBAAqB,CAAC,UAAU,CAAC,CAAC,CAAC;KACtE;IACD,oBAAoB,EAAE,MAAK;QACvB,MAAM,UAAU,GACZ,gGAAgG,CAAC;QACrG,OAAO,OAAO,CAAC,MAAM,CAAC,SAAS,CAAC,qBAAqB,CAAC,UAAU,CAAC,CAAC,CAAC;KACtE;;;;;"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { INetworkModule, NetworkRequestOptions } from "./INetworkModule";
|
|
2
|
+
import { RequestThumbprint } from "./RequestThumbprint";
|
|
3
|
+
import { CacheManager } from "../cache/CacheManager";
|
|
4
|
+
import { ServerAuthorizationTokenResponse } from "../response/ServerAuthorizationTokenResponse";
|
|
5
|
+
export type NetworkResponse<T> = {
|
|
6
|
+
headers: Record<string, string>;
|
|
7
|
+
body: T;
|
|
8
|
+
status: number;
|
|
9
|
+
};
|
|
10
|
+
export type UrlToHttpRequestOptions = {
|
|
11
|
+
protocol: string;
|
|
12
|
+
hostname: string;
|
|
13
|
+
hash: string;
|
|
14
|
+
search: string;
|
|
15
|
+
pathname: string;
|
|
16
|
+
path: string;
|
|
17
|
+
href: string;
|
|
18
|
+
port?: number;
|
|
19
|
+
auth?: string;
|
|
20
|
+
};
|
|
21
|
+
export declare class NetworkManager {
|
|
22
|
+
private networkClient;
|
|
23
|
+
private cacheManager;
|
|
24
|
+
constructor(networkClient: INetworkModule, cacheManager: CacheManager);
|
|
25
|
+
/**
|
|
26
|
+
* Wraps sendPostRequestAsync with necessary preflight and postflight logic
|
|
27
|
+
* @param thumbprint
|
|
28
|
+
* @param tokenEndpoint
|
|
29
|
+
* @param options
|
|
30
|
+
*/
|
|
31
|
+
sendPostRequest<T extends ServerAuthorizationTokenResponse>(thumbprint: RequestThumbprint, tokenEndpoint: string, options: NetworkRequestOptions): Promise<NetworkResponse<T>>;
|
|
32
|
+
}
|
|
33
|
+
//# sourceMappingURL=NetworkManager.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NetworkManager.d.ts","sourceRoot":"","sources":["../../src/network/NetworkManager.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,cAAc,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AACzE,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAExD,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAGrD,OAAO,EAAE,gCAAgC,EAAE,MAAM,8CAA8C,CAAC;AAEhG,MAAM,MAAM,eAAe,CAAC,CAAC,IAAI;IAC7B,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAChC,IAAI,EAAE,CAAC,CAAC;IACR,MAAM,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG;IAClC,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,qBAAa,cAAc;IACvB,OAAO,CAAC,aAAa,CAAiB;IACtC,OAAO,CAAC,YAAY,CAAe;gBAEvB,aAAa,EAAE,cAAc,EAAE,YAAY,EAAE,YAAY;IAKrE;;;;;OAKG;IACG,eAAe,CAAC,CAAC,SAAS,gCAAgC,EAC5D,UAAU,EAAE,iBAAiB,EAC7B,aAAa,EAAE,MAAM,EACrB,OAAO,EAAE,qBAAqB,GAC/B,OAAO,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC;CAwBjC"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/*! @azure/msal-common v14.0.0 2023-05-03 */
|
|
2
|
+
'use strict';
|
|
3
|
+
import { ThrottlingUtils } from './ThrottlingUtils.js';
|
|
4
|
+
import { AuthError } from '../error/AuthError.js';
|
|
5
|
+
import { ClientAuthError } from '../error/ClientAuthError.js';
|
|
6
|
+
|
|
7
|
+
/*
|
|
8
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
9
|
+
* Licensed under the MIT License.
|
|
10
|
+
*/
|
|
11
|
+
class NetworkManager {
|
|
12
|
+
constructor(networkClient, cacheManager) {
|
|
13
|
+
this.networkClient = networkClient;
|
|
14
|
+
this.cacheManager = cacheManager;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Wraps sendPostRequestAsync with necessary preflight and postflight logic
|
|
18
|
+
* @param thumbprint
|
|
19
|
+
* @param tokenEndpoint
|
|
20
|
+
* @param options
|
|
21
|
+
*/
|
|
22
|
+
async sendPostRequest(thumbprint, tokenEndpoint, options) {
|
|
23
|
+
ThrottlingUtils.preProcess(this.cacheManager, thumbprint);
|
|
24
|
+
let response;
|
|
25
|
+
try {
|
|
26
|
+
response = await this.networkClient.sendPostRequestAsync(tokenEndpoint, options);
|
|
27
|
+
}
|
|
28
|
+
catch (e) {
|
|
29
|
+
if (e instanceof AuthError) {
|
|
30
|
+
throw e;
|
|
31
|
+
}
|
|
32
|
+
else {
|
|
33
|
+
throw ClientAuthError.createNetworkError(tokenEndpoint, e);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
ThrottlingUtils.postProcess(this.cacheManager, thumbprint, response);
|
|
37
|
+
return response;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export { NetworkManager };
|
|
42
|
+
//# sourceMappingURL=NetworkManager.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NetworkManager.js","sources":["../../src/network/NetworkManager.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;AAAA;;;AAGG;MA4BU,cAAc,CAAA;IAIvB,WAAY,CAAA,aAA6B,EAAE,YAA0B,EAAA;AACjE,QAAA,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;AACnC,QAAA,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;KACpC;AAED;;;;;AAKG;AACH,IAAA,MAAM,eAAe,CACjB,UAA6B,EAC7B,aAAqB,EACrB,OAA8B,EAAA;QAE9B,eAAe,CAAC,UAAU,CAAC,IAAI,CAAC,YAAY,EAAE,UAAU,CAAC,CAAC;AAE1D,QAAA,IAAI,QAAQ,CAAC;QACb,IAAI;AACA,YAAA,QAAQ,GAAG,MAAM,IAAI,CAAC,aAAa,CAAC,oBAAoB,CACpD,aAAa,EACb,OAAO,CACV,CAAC;AACL,SAAA;AAAC,QAAA,OAAO,CAAC,EAAE;YACR,IAAI,CAAC,YAAY,SAAS,EAAE;AACxB,gBAAA,MAAM,CAAC,CAAC;AACX,aAAA;AAAM,iBAAA;gBACH,MAAM,eAAe,CAAC,kBAAkB,CACpC,aAAa,EACb,CAAW,CACd,CAAC;AACL,aAAA;AACJ,SAAA;QAED,eAAe,CAAC,WAAW,CAAC,IAAI,CAAC,YAAY,EAAE,UAAU,EAAE,QAAQ,CAAC,CAAC;AAErE,QAAA,OAAO,QAAQ,CAAC;KACnB;AACJ;;;;"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { AuthenticationScheme } from "../utils/Constants";
|
|
2
|
+
/**
|
|
3
|
+
* Type representing a unique request thumbprint.
|
|
4
|
+
*/
|
|
5
|
+
export type RequestThumbprint = {
|
|
6
|
+
clientId: string;
|
|
7
|
+
authority: string;
|
|
8
|
+
scopes: Array<string>;
|
|
9
|
+
homeAccountIdentifier?: string;
|
|
10
|
+
claims?: string;
|
|
11
|
+
authenticationScheme?: AuthenticationScheme;
|
|
12
|
+
resourceRequestMethod?: string;
|
|
13
|
+
resourceRequestUri?: string;
|
|
14
|
+
shrClaims?: string;
|
|
15
|
+
sshKid?: string;
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=RequestThumbprint.d.ts.map
|