@azure/msal-browser 2.37.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/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 +22 -18
- 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 -18080
- package/dist/index.cjs.js.map +0 -1
- package/lib/msal-browser.js +0 -18086
- package/lib/msal-browser.js.map +0 -1
- package/lib/msal-browser.min.js +0 -70
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CacheManager.js","sources":["../../src/cache/CacheManager.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;AAAA;;;AAGG;AAuCH;;AAEG;MACmB,YAAY,CAAA;AAM9B,IAAA,W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ants";
|
|
3
|
+
import { ICrypto } from "../../crypto/ICrypto";
|
|
4
|
+
/**
|
|
5
|
+
* ACCESS_TOKEN Credential Type
|
|
6
|
+
*
|
|
7
|
+
* Key:Value Schema:
|
|
8
|
+
*
|
|
9
|
+
* Key Example: uid.utid-login.microsoftonline.com-accesstoken-clientId-contoso.com-user.read
|
|
10
|
+
*
|
|
11
|
+
* Value Schema:
|
|
12
|
+
* {
|
|
13
|
+
* homeAccountId: home account identifier for the auth scheme,
|
|
14
|
+
* environment: entity that issued the token, represented as a full host
|
|
15
|
+
* credentialType: Type of credential as a string, can be one of the following: RefreshToken, AccessToken, IdToken, Password, Cookie, Certificate, Other
|
|
16
|
+
* clientId: client ID of the application
|
|
17
|
+
* secret: Actual credential as a string
|
|
18
|
+
* familyId: Family ID identifier, usually only used for refresh tokens
|
|
19
|
+
* realm: Full tenant or organizational identifier that the account belongs to
|
|
20
|
+
* target: Permissions that are included in the token, or for refresh tokens, the resource identifier.
|
|
21
|
+
* cachedAt: Absolute device time when entry was created in the cache.
|
|
22
|
+
* expiresOn: Token expiry time, calculated based on current UTC time in seconds. Represented as a string.
|
|
23
|
+
* extendedExpiresOn: Additional extended expiry time until when token is valid in case of server-side outage. Represented as string in UTC seconds.
|
|
24
|
+
* keyId: used for POP and SSH tokenTypes
|
|
25
|
+
* tokenType: Type of the token issued. Usually "Bearer"
|
|
26
|
+
* }
|
|
27
|
+
*/
|
|
28
|
+
export declare class AccessTokenEntity extends CredentialEntity {
|
|
29
|
+
realm: string;
|
|
30
|
+
target: string;
|
|
31
|
+
cachedAt: string;
|
|
32
|
+
expiresOn: string;
|
|
33
|
+
extendedExpiresOn?: string;
|
|
34
|
+
refreshOn?: string;
|
|
35
|
+
keyId?: string;
|
|
36
|
+
tokenType?: AuthenticationScheme;
|
|
37
|
+
requestedClaims?: string;
|
|
38
|
+
requestedClaimsHash?: string;
|
|
39
|
+
/**
|
|
40
|
+
* Create AccessTokenEntity
|
|
41
|
+
* @param homeAccountId
|
|
42
|
+
* @param environment
|
|
43
|
+
* @param accessToken
|
|
44
|
+
* @param clientId
|
|
45
|
+
* @param tenantId
|
|
46
|
+
* @param scopes
|
|
47
|
+
* @param expiresOn
|
|
48
|
+
* @param extExpiresOn
|
|
49
|
+
*/
|
|
50
|
+
static createAccessTokenEntity(homeAccountId: string, environment: string, accessToken: string, clientId: string, tenantId: string, scopes: string, expiresOn: number, extExpiresOn: number, cryptoUtils: ICrypto, refreshOn?: number, tokenType?: AuthenticationScheme, userAssertionHash?: string, keyId?: string, requestedClaims?: string, requestedClaimsHash?: string): AccessTokenEntity;
|
|
51
|
+
/**
|
|
52
|
+
* Validates an entity: checks for all expected params
|
|
53
|
+
* @param entity
|
|
54
|
+
*/
|
|
55
|
+
static isAccessTokenEntity(entity: object): boolean;
|
|
56
|
+
}
|
|
57
|
+
//# sourceMappingURL=AccessTokenEntity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AccessTokenEntity.d.ts","sourceRoot":"","sources":["../../../src/cache/entities/AccessTokenEntity.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAkB,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAG7E,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAK/C;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,qBAAa,iBAAkB,SAAQ,gBAAgB;IACnD,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,oBAAoB,CAAC;IACjC,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAE7B;;;;;;;;;;OAUG;IACH,MAAM,CAAC,uBAAuB,CAC1B,aAAa,EAAE,MAAM,EACrB,WAAW,EAAE,MAAM,EACnB,WAAW,EAAE,MAAM,EACnB,QAAQ,EAAE,MAAM,EAChB,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,MAAM,EACjB,YAAY,EAAE,MAAM,EACpB,WAAW,EAAE,OAAO,EACpB,SAAS,CAAC,EAAE,MAAM,EAClB,SAAS,CAAC,EAAE,oBAAoB,EAChC,iBAAiB,CAAC,EAAE,MAAM,EAC1B,KAAK,CAAC,EAAE,MAAM,EACd,eAAe,CAAC,EAAE,MAAM,EACxB,mBAAmB,CAAC,EAAE,MAAM,GAC7B,iBAAiB;IA+DpB;;;OAGG;IACH,MAAM,CAAC,mBAAmB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO;CAkBtD"}
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
/*! @azure/msal-common v14.0.0 2023-05-03 */
|
|
2
|
+
'use strict';
|
|
3
|
+
import { CredentialEntity } from './CredentialEntity.js';
|
|
4
|
+
import { CredentialType, AuthenticationScheme } from '../../utils/Constants.js';
|
|
5
|
+
import { TimeUtils } from '../../utils/TimeUtils.js';
|
|
6
|
+
import { StringUtils } from '../../utils/StringUtils.js';
|
|
7
|
+
import { AuthToken } from '../../account/AuthToken.js';
|
|
8
|
+
import { ClientAuthError } from '../../error/ClientAuthError.js';
|
|
9
|
+
|
|
10
|
+
/*
|
|
11
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
12
|
+
* Licensed under the MIT License.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* ACCESS_TOKEN Credential Type
|
|
16
|
+
*
|
|
17
|
+
* Key:Value Schema:
|
|
18
|
+
*
|
|
19
|
+
* Key Example: uid.utid-login.microsoftonline.com-accesstoken-clientId-contoso.com-user.read
|
|
20
|
+
*
|
|
21
|
+
* Value Schema:
|
|
22
|
+
* {
|
|
23
|
+
* homeAccountId: home account identifier for the auth scheme,
|
|
24
|
+
* environment: entity that issued the token, represented as a full host
|
|
25
|
+
* credentialType: Type of credential as a string, can be one of the following: RefreshToken, AccessToken, IdToken, Password, Cookie, Certificate, Other
|
|
26
|
+
* clientId: client ID of the application
|
|
27
|
+
* secret: Actual credential as a string
|
|
28
|
+
* familyId: Family ID identifier, usually only used for refresh tokens
|
|
29
|
+
* realm: Full tenant or organizational identifier that the account belongs to
|
|
30
|
+
* target: Permissions that are included in the token, or for refresh tokens, the resource identifier.
|
|
31
|
+
* cachedAt: Absolute device time when entry was created in the cache.
|
|
32
|
+
* expiresOn: Token expiry time, calculated based on current UTC time in seconds. Represented as a string.
|
|
33
|
+
* extendedExpiresOn: Additional extended expiry time until when token is valid in case of server-side outage. Represented as string in UTC seconds.
|
|
34
|
+
* keyId: used for POP and SSH tokenTypes
|
|
35
|
+
* tokenType: Type of the token issued. Usually "Bearer"
|
|
36
|
+
* }
|
|
37
|
+
*/
|
|
38
|
+
class AccessTokenEntity extends CredentialEntity {
|
|
39
|
+
/**
|
|
40
|
+
* Create AccessTokenEntity
|
|
41
|
+
* @param homeAccountId
|
|
42
|
+
* @param environment
|
|
43
|
+
* @param accessToken
|
|
44
|
+
* @param clientId
|
|
45
|
+
* @param tenantId
|
|
46
|
+
* @param scopes
|
|
47
|
+
* @param expiresOn
|
|
48
|
+
* @param extExpiresOn
|
|
49
|
+
*/
|
|
50
|
+
static createAccessTokenEntity(homeAccountId, environment, accessToken, clientId, tenantId, scopes, expiresOn, extExpiresOn, cryptoUtils, refreshOn, tokenType, userAssertionHash, keyId, requestedClaims, requestedClaimsHash) {
|
|
51
|
+
const atEntity = new AccessTokenEntity();
|
|
52
|
+
atEntity.homeAccountId = homeAccountId;
|
|
53
|
+
atEntity.credentialType = CredentialType.ACCESS_TOKEN;
|
|
54
|
+
atEntity.secret = accessToken;
|
|
55
|
+
const currentTime = TimeUtils.nowSeconds();
|
|
56
|
+
atEntity.cachedAt = currentTime.toString();
|
|
57
|
+
/*
|
|
58
|
+
* Token expiry time.
|
|
59
|
+
* This value should be calculated based on the current UTC time measured locally and the value expires_in Represented as a string in JSON.
|
|
60
|
+
*/
|
|
61
|
+
atEntity.expiresOn = expiresOn.toString();
|
|
62
|
+
atEntity.extendedExpiresOn = extExpiresOn.toString();
|
|
63
|
+
if (refreshOn) {
|
|
64
|
+
atEntity.refreshOn = refreshOn.toString();
|
|
65
|
+
}
|
|
66
|
+
atEntity.environment = environment;
|
|
67
|
+
atEntity.clientId = clientId;
|
|
68
|
+
atEntity.realm = tenantId;
|
|
69
|
+
atEntity.target = scopes;
|
|
70
|
+
atEntity.userAssertionHash = userAssertionHash;
|
|
71
|
+
atEntity.tokenType = StringUtils.isEmpty(tokenType)
|
|
72
|
+
? AuthenticationScheme.BEARER
|
|
73
|
+
: tokenType;
|
|
74
|
+
if (requestedClaims) {
|
|
75
|
+
atEntity.requestedClaims = requestedClaims;
|
|
76
|
+
atEntity.requestedClaimsHash = requestedClaimsHash;
|
|
77
|
+
}
|
|
78
|
+
/*
|
|
79
|
+
* Create Access Token With Auth Scheme instead of regular access token
|
|
80
|
+
* Cast to lower to handle "bearer" from ADFS
|
|
81
|
+
*/
|
|
82
|
+
if (atEntity.tokenType?.toLowerCase() !==
|
|
83
|
+
AuthenticationScheme.BEARER.toLowerCase()) {
|
|
84
|
+
atEntity.credentialType =
|
|
85
|
+
CredentialType.ACCESS_TOKEN_WITH_AUTH_SCHEME;
|
|
86
|
+
switch (atEntity.tokenType) {
|
|
87
|
+
case AuthenticationScheme.POP:
|
|
88
|
+
// Make sure keyId is present and add it to credential
|
|
89
|
+
const tokenClaims = AuthToken.extractTokenClaims(accessToken, cryptoUtils);
|
|
90
|
+
if (!tokenClaims?.cnf?.kid) {
|
|
91
|
+
throw ClientAuthError.createTokenClaimsRequiredError();
|
|
92
|
+
}
|
|
93
|
+
atEntity.keyId = tokenClaims.cnf.kid;
|
|
94
|
+
break;
|
|
95
|
+
case AuthenticationScheme.SSH:
|
|
96
|
+
atEntity.keyId = keyId;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
return atEntity;
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* Validates an entity: checks for all expected params
|
|
103
|
+
* @param entity
|
|
104
|
+
*/
|
|
105
|
+
static isAccessTokenEntity(entity) {
|
|
106
|
+
if (!entity) {
|
|
107
|
+
return false;
|
|
108
|
+
}
|
|
109
|
+
return (entity.hasOwnProperty("homeAccountId") &&
|
|
110
|
+
entity.hasOwnProperty("environment") &&
|
|
111
|
+
entity.hasOwnProperty("credentialType") &&
|
|
112
|
+
entity.hasOwnProperty("realm") &&
|
|
113
|
+
entity.hasOwnProperty("clientId") &&
|
|
114
|
+
entity.hasOwnProperty("secret") &&
|
|
115
|
+
entity.hasOwnProperty("target") &&
|
|
116
|
+
(entity["credentialType"] === CredentialType.ACCESS_TOKEN ||
|
|
117
|
+
entity["credentialType"] ===
|
|
118
|
+
CredentialType.ACCESS_TOKEN_WITH_AUTH_SCHEME));
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
export { AccessTokenEntity };
|
|
123
|
+
//# sourceMappingURL=AccessTokenEntity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AccessTokenEntity.js","sources":["../../../src/cache/entities/AccessTokenEntity.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;AAAA;;;AAGG;AAWH;;;;;;;;;;;;;;;;;;;;;;;AAuBG;AACG,MAAO,iBAAkB,SAAQ,gBAAgB,CAAA;AAYnD;;;;;;;;;;AAUG;AACH,IAAA,OAAO,uBAAuB,CAC1B,aAAqB,EACrB,WAAmB,EACnB,WAAmB,EACnB,QAAgB,EAChB,QAAgB,EAChB,MAAc,EACd,SAAiB,EACjB,YAAoB,EACpB,WAAoB,EACpB,SAAkB,EAClB,SAAgC,EAChC,iBAA0B,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AC,6BAA6B,CAAC,EACvD;KACL;AACJ;;;;"}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { Authority } from "../../authority/Authority";
|
|
2
|
+
import { AuthToken } from "../../account/AuthToken";
|
|
3
|
+
import { ICrypto } from "../../crypto/ICrypto";
|
|
4
|
+
import { AccountInfo } from "../../account/AccountInfo";
|
|
5
|
+
import { AuthorityType } from "../../authority/AuthorityType";
|
|
6
|
+
import { Logger } from "../../logger/Logger";
|
|
7
|
+
import { TokenClaims } from "../../account/TokenClaims";
|
|
8
|
+
/**
|
|
9
|
+
* Type that defines required and optional parameters for an Account field (based on universal cache schema implemented by all MSALs).
|
|
10
|
+
*
|
|
11
|
+
* Key : Value Schema
|
|
12
|
+
*
|
|
13
|
+
* Key: <home_account_id>-<environment>-<realm*>
|
|
14
|
+
*
|
|
15
|
+
* Value Schema:
|
|
16
|
+
* {
|
|
17
|
+
* homeAccountId: home account identifier for the auth scheme,
|
|
18
|
+
* environment: entity that issued the token, represented as a full host
|
|
19
|
+
* realm: Full tenant or organizational identifier that the account belongs to
|
|
20
|
+
* localAccountId: Original tenant-specific accountID, usually used for legacy cases
|
|
21
|
+
* username: primary username that represents the user, usually corresponds to preferred_username in the v2 endpt
|
|
22
|
+
* authorityType: Accounts authority type as a string
|
|
23
|
+
* name: Full name for the account, including given name and family name,
|
|
24
|
+
* clientInfo: Full base64 encoded client info received from ESTS
|
|
25
|
+
* lastModificationTime: last time this entity was modified in the cache
|
|
26
|
+
* lastModificationApp:
|
|
27
|
+
* idTokenClaims: Object containing claims parsed from ID token
|
|
28
|
+
* nativeAccountId: Account identifier on the native device
|
|
29
|
+
* }
|
|
30
|
+
*/
|
|
31
|
+
export declare class AccountEntity {
|
|
32
|
+
homeAccountId: string;
|
|
33
|
+
environment: string;
|
|
34
|
+
realm: string;
|
|
35
|
+
localAccountId: string;
|
|
36
|
+
username: string;
|
|
37
|
+
authorityType: string;
|
|
38
|
+
name?: string;
|
|
39
|
+
clientInfo?: string;
|
|
40
|
+
lastModificationTime?: string;
|
|
41
|
+
lastModificationApp?: string;
|
|
42
|
+
cloudGraphHostName?: string;
|
|
43
|
+
msGraphHost?: string;
|
|
44
|
+
idTokenClaims?: TokenClaims;
|
|
45
|
+
nativeAccountId?: string;
|
|
46
|
+
/**
|
|
47
|
+
* Generate Account Id key component as per the schema: <home_account_id>-<environment>
|
|
48
|
+
*/
|
|
49
|
+
generateAccountId(): string;
|
|
50
|
+
/**
|
|
51
|
+
* Generate Account Cache Key as per the schema: <home_account_id>-<environment>-<realm*>
|
|
52
|
+
*/
|
|
53
|
+
generateAccountKey(): string;
|
|
54
|
+
/**
|
|
55
|
+
* returns the type of the cache (in this case account)
|
|
56
|
+
*/
|
|
57
|
+
generateType(): number;
|
|
58
|
+
/**
|
|
59
|
+
* Returns the AccountInfo interface for this account.
|
|
60
|
+
*/
|
|
61
|
+
getAccountInfo(): AccountInfo;
|
|
62
|
+
/**
|
|
63
|
+
* Generates account key from interface
|
|
64
|
+
* @param accountInterface
|
|
65
|
+
*/
|
|
66
|
+
static generateAccountCacheKey(accountInterface: AccountInfo): string;
|
|
67
|
+
/**
|
|
68
|
+
* Build Account cache from IdToken, clientInfo and authority/policy. Associated with AAD.
|
|
69
|
+
* @param clientInfo
|
|
70
|
+
* @param authority
|
|
71
|
+
* @param idToken
|
|
72
|
+
* @param policy
|
|
73
|
+
*/
|
|
74
|
+
static createAccount(clientInfo: string, homeAccountId: string, idToken: AuthToken, authority?: Authority, cloudGraphHostName?: string, msGraphHost?: string, environment?: string, nativeAccountId?: string): AccountEntity;
|
|
75
|
+
/**
|
|
76
|
+
* Builds non-AAD/ADFS account.
|
|
77
|
+
* @param authority
|
|
78
|
+
* @param idToken
|
|
79
|
+
*/
|
|
80
|
+
static createGenericAccount(homeAccountId: string, idToken: AuthToken, authority?: Authority, cloudGraphHostName?: string, msGraphHost?: string, environment?: string): AccountEntity;
|
|
81
|
+
/**
|
|
82
|
+
* Generate HomeAccountId from server response
|
|
83
|
+
* @param serverClientInfo
|
|
84
|
+
* @param authType
|
|
85
|
+
*/
|
|
86
|
+
static generateHomeAccountId(serverClientInfo: string, authType: AuthorityType, logger: Logger, cryptoObj: ICrypto, idToken?: AuthToken): string;
|
|
87
|
+
/**
|
|
88
|
+
* Validates an entity: checks for all expected params
|
|
89
|
+
* @param entity
|
|
90
|
+
*/
|
|
91
|
+
static isAccountEntity(entity: object): boolean;
|
|
92
|
+
/**
|
|
93
|
+
* Helper function to determine whether 2 accountInfo objects represent the same account
|
|
94
|
+
* @param accountA
|
|
95
|
+
* @param accountB
|
|
96
|
+
* @param compareClaims - If set to true idTokenClaims will also be compared to determine account equality
|
|
97
|
+
*/
|
|
98
|
+
static accountInfoIsEqual(accountA: AccountInfo | null, accountB: AccountInfo | null, compareClaims?: boolean): boolean;
|
|
99
|
+
}
|
|
100
|
+
//# sourceMappingURL=AccountEntity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AccountEntity.d.ts","sourceRoot":"","sources":["../../../src/cache/entities/AccountEntity.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AACtD,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAG/C,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAExD,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAC9D,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAExD;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,qBAAa,aAAa;IACtB,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,cAAc,EAAE,MAAM,CAAC;IACvB,QAAQ,EAAE,MA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AO,CAAC,EAAE,SAAS,GACpB,MAAM;IA+BT;;;OAGG;IACH,MAAM,CAAC,eAAe,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO;IAe/C;;;;;OAKG;IACH,MAAM,CAAC,kBAAkB,CACrB,QAAQ,EAAE,WAAW,GAAG,IAAI,EAC5B,QAAQ,EAAE,WAAW,GAAG,IAAI,EAC5B,aAAa,CAAC,EAAE,OAAO,GACxB,OAAO;CA4Bb"}
|
|
@@ -0,0 +1,259 @@
|
|
|
1
|
+
/*! @azure/msal-common v14.0.0 2023-05-03 */
|
|
2
|
+
'use strict';
|
|
3
|
+
import { Separators, CacheAccountType, CacheType, Constants } from '../../utils/Constants.js';
|
|
4
|
+
import { buildClientInfo } from '../../account/ClientInfo.js';
|
|
5
|
+
import { StringUtils } from '../../utils/StringUtils.js';
|
|
6
|
+
import { ClientAuthError } from '../../error/ClientAuthError.js';
|
|
7
|
+
import { AuthorityType } from '../../authority/AuthorityType.js';
|
|
8
|
+
|
|
9
|
+
/*
|
|
10
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
11
|
+
* Licensed under the MIT License.
|
|
12
|
+
*/
|
|
13
|
+
/**
|
|
14
|
+
* Type that defines required and optional parameters for an Account field (based on universal cache schema implemented by all MSALs).
|
|
15
|
+
*
|
|
16
|
+
* Key : Value Schema
|
|
17
|
+
*
|
|
18
|
+
* Key: <home_account_id>-<environment>-<realm*>
|
|
19
|
+
*
|
|
20
|
+
* Value Schema:
|
|
21
|
+
* {
|
|
22
|
+
* homeAccountId: home account identifier for the auth scheme,
|
|
23
|
+
* environment: entity that issued the token, represented as a full host
|
|
24
|
+
* realm: Full tenant or organizational identifier that the account belongs to
|
|
25
|
+
* localAccountId: Original tenant-specific accountID, usually used for legacy cases
|
|
26
|
+
* username: primary username that represents the user, usually corresponds to preferred_username in the v2 endpt
|
|
27
|
+
* authorityType: Accounts authority type as a string
|
|
28
|
+
* name: Full name for the account, including given name and family name,
|
|
29
|
+
* clientInfo: Full base64 encoded client info received from ESTS
|
|
30
|
+
* lastModificationTime: last time this entity was modified in the cache
|
|
31
|
+
* lastModificationApp:
|
|
32
|
+
* idTokenClaims: Object containing claims parsed from ID token
|
|
33
|
+
* nativeAccountId: Account identifier on the native device
|
|
34
|
+
* }
|
|
35
|
+
*/
|
|
36
|
+
class AccountEntity {
|
|
37
|
+
/**
|
|
38
|
+
* Generate Account Id key component as per the schema: <home_account_id>-<environment>
|
|
39
|
+
*/
|
|
40
|
+
generateAccountId() {
|
|
41
|
+
const accountId = [this.homeAccountId, this.environment];
|
|
42
|
+
return accountId.join(Separators.CACHE_KEY_SEPARATOR).toLowerCase();
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Generate Account Cache Key as per the schema: <home_account_id>-<environment>-<realm*>
|
|
46
|
+
*/
|
|
47
|
+
generateAccountKey() {
|
|
48
|
+
return AccountEntity.generateAccountCacheKey({
|
|
49
|
+
homeAccountId: this.homeAccountId,
|
|
50
|
+
environment: this.environment,
|
|
51
|
+
tenantId: this.realm,
|
|
52
|
+
username: this.username,
|
|
53
|
+
localAccountId: this.localAccountId,
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* returns the type of the cache (in this case account)
|
|
58
|
+
*/
|
|
59
|
+
generateType() {
|
|
60
|
+
switch (this.authorityType) {
|
|
61
|
+
case CacheAccountType.ADFS_ACCOUNT_TYPE:
|
|
62
|
+
return CacheType.ADFS;
|
|
63
|
+
case CacheAccountType.MSAV1_ACCOUNT_TYPE:
|
|
64
|
+
return CacheType.MSA;
|
|
65
|
+
case CacheAccountType.MSSTS_ACCOUNT_TYPE:
|
|
66
|
+
return CacheType.MSSTS;
|
|
67
|
+
case CacheAccountType.GENERIC_ACCOUNT_TYPE:
|
|
68
|
+
return CacheType.GENERIC;
|
|
69
|
+
default: {
|
|
70
|
+
throw ClientAuthError.createUnexpectedAccountTypeError();
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Returns the AccountInfo interface for this account.
|
|
76
|
+
*/
|
|
77
|
+
getAccountInfo() {
|
|
78
|
+
return {
|
|
79
|
+
homeAccountId: this.homeAccountId,
|
|
80
|
+
environment: this.environment,
|
|
81
|
+
tenantId: this.realm,
|
|
82
|
+
username: this.username,
|
|
83
|
+
localAccountId: this.localAccountId,
|
|
84
|
+
name: this.name,
|
|
85
|
+
idTokenClaims: this.idTokenClaims,
|
|
86
|
+
nativeAccountId: this.nativeAccountId,
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* Generates account key from interface
|
|
91
|
+
* @param accountInterface
|
|
92
|
+
*/
|
|
93
|
+
static generateAccountCacheKey(accountInterface) {
|
|
94
|
+
const accountKey = [
|
|
95
|
+
accountInterface.homeAccountId,
|
|
96
|
+
accountInterface.environment || Constants.EMPTY_STRING,
|
|
97
|
+
accountInterface.tenantId || Constants.EMPTY_STRING,
|
|
98
|
+
];
|
|
99
|
+
return accountKey.join(Separators.CACHE_KEY_SEPARATOR).toLowerCase();
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* Build Account cache from IdToken, clientInfo and authority/policy. Associated with AAD.
|
|
103
|
+
* @param clientInfo
|
|
104
|
+
* @param authority
|
|
105
|
+
* @param idToken
|
|
106
|
+
* @param policy
|
|
107
|
+
*/
|
|
108
|
+
static createAccount(clientInfo, homeAccountId, idToken, authority, cloudGraphHostName, msGraphHost, environment, nativeAccountId) {
|
|
109
|
+
const account = new AccountEntity();
|
|
110
|
+
account.authorityType = CacheAccountType.MSSTS_ACCOUNT_TYPE;
|
|
111
|
+
account.clientInfo = clientInfo;
|
|
112
|
+
account.homeAccountId = homeAccountId;
|
|
113
|
+
account.nativeAccountId = nativeAccountId;
|
|
114
|
+
const env = environment || (authority && authority.getPreferredCache());
|
|
115
|
+
if (!env) {
|
|
116
|
+
throw ClientAuthError.createInvalidCacheEnvironmentError();
|
|
117
|
+
}
|
|
118
|
+
account.environment = env;
|
|
119
|
+
// non AAD scenarios can have empty realm
|
|
120
|
+
account.realm = idToken?.claims?.tid || Constants.EMPTY_STRING;
|
|
121
|
+
if (idToken) {
|
|
122
|
+
account.idTokenClaims = idToken.claims;
|
|
123
|
+
// How do you account for MSA CID here?
|
|
124
|
+
account.localAccountId =
|
|
125
|
+
idToken?.claims?.oid ||
|
|
126
|
+
idToken?.claims?.sub ||
|
|
127
|
+
Constants.EMPTY_STRING;
|
|
128
|
+
/*
|
|
129
|
+
* In B2C scenarios the emails claim is used instead of preferred_username and it is an array.
|
|
130
|
+
* In most cases it will contain a single email. This field should not be relied upon if a custom
|
|
131
|
+
* policy is configured to return more than 1 email.
|
|
132
|
+
*/
|
|
133
|
+
const preferredUsername = idToken?.claims?.preferred_username;
|
|
134
|
+
const email = idToken?.claims?.emails
|
|
135
|
+
? idToken.claims.emails[0]
|
|
136
|
+
: null;
|
|
137
|
+
account.username =
|
|
138
|
+
preferredUsername || email || Constants.EMPTY_STRING;
|
|
139
|
+
account.name = idToken?.claims?.name;
|
|
140
|
+
}
|
|
141
|
+
account.cloudGraphHostName = cloudGraphHostName;
|
|
142
|
+
account.msGraphHost = msGraphHost;
|
|
143
|
+
return account;
|
|
144
|
+
}
|
|
145
|
+
/**
|
|
146
|
+
* Builds non-AAD/ADFS account.
|
|
147
|
+
* @param authority
|
|
148
|
+
* @param idToken
|
|
149
|
+
*/
|
|
150
|
+
static createGenericAccount(homeAccountId, idToken, authority, cloudGraphHostName, msGraphHost, environment) {
|
|
151
|
+
const account = new AccountEntity();
|
|
152
|
+
account.authorityType =
|
|
153
|
+
authority && authority.authorityType === AuthorityType.Adfs
|
|
154
|
+
? CacheAccountType.ADFS_ACCOUNT_TYPE
|
|
155
|
+
: CacheAccountType.GENERIC_ACCOUNT_TYPE;
|
|
156
|
+
account.homeAccountId = homeAccountId;
|
|
157
|
+
// non AAD scenarios can have empty realm
|
|
158
|
+
account.realm = Constants.EMPTY_STRING;
|
|
159
|
+
const env = environment || (authority && authority.getPreferredCache());
|
|
160
|
+
if (!env) {
|
|
161
|
+
throw ClientAuthError.createInvalidCacheEnvironmentError();
|
|
162
|
+
}
|
|
163
|
+
if (idToken) {
|
|
164
|
+
// How do you account for MSA CID here?
|
|
165
|
+
account.localAccountId =
|
|
166
|
+
idToken?.claims?.oid ||
|
|
167
|
+
idToken?.claims?.sub ||
|
|
168
|
+
Constants.EMPTY_STRING;
|
|
169
|
+
// upn claim for most ADFS scenarios
|
|
170
|
+
account.username = idToken?.claims?.upn || Constants.EMPTY_STRING;
|
|
171
|
+
account.name = idToken?.claims?.name || Constants.EMPTY_STRING;
|
|
172
|
+
account.idTokenClaims = idToken?.claims;
|
|
173
|
+
}
|
|
174
|
+
account.environment = env;
|
|
175
|
+
account.cloudGraphHostName = cloudGraphHostName;
|
|
176
|
+
account.msGraphHost = msGraphHost;
|
|
177
|
+
/*
|
|
178
|
+
* add uniqueName to claims
|
|
179
|
+
* account.name = idToken.claims.uniqueName;
|
|
180
|
+
*/
|
|
181
|
+
return account;
|
|
182
|
+
}
|
|
183
|
+
/**
|
|
184
|
+
* Generate HomeAccountId from server response
|
|
185
|
+
* @param serverClientInfo
|
|
186
|
+
* @param authType
|
|
187
|
+
*/
|
|
188
|
+
static generateHomeAccountId(serverClientInfo, authType, logger, cryptoObj, idToken) {
|
|
189
|
+
const accountId = idToken?.claims?.sub
|
|
190
|
+
? idToken.claims.sub
|
|
191
|
+
: Constants.EMPTY_STRING;
|
|
192
|
+
// since ADFS does not have tid and does not set client_info
|
|
193
|
+
if (authType === AuthorityType.Adfs ||
|
|
194
|
+
authType === AuthorityType.Dsts) {
|
|
195
|
+
return accountId;
|
|
196
|
+
}
|
|
197
|
+
// for cases where there is clientInfo
|
|
198
|
+
if (serverClientInfo) {
|
|
199
|
+
try {
|
|
200
|
+
const clientInfo = buildClientInfo(serverClientInfo, cryptoObj);
|
|
201
|
+
if (!StringUtils.isEmpty(clientInfo.uid) &&
|
|
202
|
+
!StringUtils.isEmpty(clientInfo.utid)) {
|
|
203
|
+
return `${clientInfo.uid}${Separators.CLIENT_INFO_SEPARATOR}${clientInfo.utid}`;
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
catch (e) { }
|
|
207
|
+
}
|
|
208
|
+
// default to "sub" claim
|
|
209
|
+
logger.verbose("No client info in response");
|
|
210
|
+
return accountId;
|
|
211
|
+
}
|
|
212
|
+
/**
|
|
213
|
+
* Validates an entity: checks for all expected params
|
|
214
|
+
* @param entity
|
|
215
|
+
*/
|
|
216
|
+
static isAccountEntity(entity) {
|
|
217
|
+
if (!entity) {
|
|
218
|
+
return false;
|
|
219
|
+
}
|
|
220
|
+
return (entity.hasOwnProperty("homeAccountId") &&
|
|
221
|
+
entity.hasOwnProperty("environment") &&
|
|
222
|
+
entity.hasOwnProperty("realm") &&
|
|
223
|
+
entity.hasOwnProperty("localAccountId") &&
|
|
224
|
+
entity.hasOwnProperty("username") &&
|
|
225
|
+
entity.hasOwnProperty("authorityType"));
|
|
226
|
+
}
|
|
227
|
+
/**
|
|
228
|
+
* Helper function to determine whether 2 accountInfo objects represent the same account
|
|
229
|
+
* @param accountA
|
|
230
|
+
* @param accountB
|
|
231
|
+
* @param compareClaims - If set to true idTokenClaims will also be compared to determine account equality
|
|
232
|
+
*/
|
|
233
|
+
static accountInfoIsEqual(accountA, accountB, compareClaims) {
|
|
234
|
+
if (!accountA || !accountB) {
|
|
235
|
+
return false;
|
|
236
|
+
}
|
|
237
|
+
let claimsMatch = true; // default to true so as to not fail comparison below if compareClaims: false
|
|
238
|
+
if (compareClaims) {
|
|
239
|
+
const accountAClaims = (accountA.idTokenClaims ||
|
|
240
|
+
{});
|
|
241
|
+
const accountBClaims = (accountB.idTokenClaims ||
|
|
242
|
+
{});
|
|
243
|
+
// issued at timestamp and nonce are expected to change each time a new id token is acquired
|
|
244
|
+
claimsMatch =
|
|
245
|
+
accountAClaims.iat === accountBClaims.iat &&
|
|
246
|
+
accountAClaims.nonce === accountBClaims.nonce;
|
|
247
|
+
}
|
|
248
|
+
return (accountA.homeAccountId === accountB.homeAccountId &&
|
|
249
|
+
accountA.localAccountId === accountB.localAccountId &&
|
|
250
|
+
accountA.username === accountB.username &&
|
|
251
|
+
accountA.tenantId === accountB.tenantId &&
|
|
252
|
+
accountA.environment === accountB.environment &&
|
|
253
|
+
accountA.nativeAccountId === accountB.nativeAccountId &&
|
|
254
|
+
claimsMatch);
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
export { AccountEntity };
|
|
259
|
+
//# sourceMappingURL=AccountEntity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AccountEntity.js","sources":["../../../src/cache/entities/AccountEntity.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;AAAA;;;AAGG;AAmBH;;;;;;;;;;;;;;;;;;;;;;AAsBG;MACU,aAAa,CAAA;AAgBtB;;AAEG;IACH,iBAAiB,GAAA;QACb,MAAM,SAAS,GAAkB,CAAC,IAAI,CAAC,aAAa,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC;QACxE,OAAO,SAAS,CAAC,IAAI,CAAC,UAAU,CAAC,mBAAmB,CAAC,CAAC,WAAW,EAAE,CAAC;KACvE;AAED;;AAEG;IACH,kBAAkB,GAAA;QACd,OAAO,aAAa,CAAC,uBAAuB,CAAC;YACzC,aAAa,EAAE,IAAI,CAAC,aAAa;YACjC,WAAW,EAAE,IAAI,CAAC,WAAW;YAC7B,QAAQ,EAAE,IAAI,CAAC,KAAK;YACpB,QAAQ,EAAE,IAAI,CAAC,QAAQ;YACvB,cAAc,EAAE,IAAI,CAAC,cAAc;AACtC,SAAA,CAAC,CAAC;KACN;AAED;;AAEG;IACH,YAAY,GAAA;QACR,QAAQ,IAAI,CAAC,aAAa;YACtB,KAAK,gBAAgB,CAAC,iBAAiB;gBACnC,OAAO,SAAS,CAAC,IAAI,CAAC;YAC1B,KAAK,gBAAgB,CAAC,kBAAk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