@azure/msal-common 14.14.2 → 14.16.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/browser/README.md +1 -0
- package/browser/package.json +5 -0
- package/dist/account/AccountInfo.d.ts +1 -1
- package/dist/account/AccountInfo.d.ts.map +1 -1
- package/dist/account/AccountInfo.mjs +1 -1
- package/dist/account/AuthToken.d.ts +1 -1
- package/dist/account/AuthToken.d.ts.map +1 -1
- package/dist/account/AuthToken.mjs +1 -1
- package/dist/account/CcsCredential.mjs +1 -1
- package/dist/account/ClientInfo.mjs +1 -1
- package/dist/account/TokenClaims.mjs +1 -1
- package/dist/authority/Authority.d.ts +12 -12
- package/dist/authority/Authority.d.ts.map +1 -1
- package/dist/authority/Authority.mjs +1 -1
- package/dist/authority/AuthorityFactory.d.ts +6 -6
- package/dist/authority/AuthorityFactory.d.ts.map +1 -1
- package/dist/authority/AuthorityFactory.mjs +1 -1
- package/dist/authority/AuthorityMetadata.d.ts +6 -6
- package/dist/authority/AuthorityMetadata.d.ts.map +1 -1
- package/dist/authority/AuthorityMetadata.mjs +1 -1
- package/dist/authority/AuthorityOptions.d.ts +4 -4
- package/dist/authority/AuthorityOptions.d.ts.map +1 -1
- package/dist/authority/AuthorityOptions.mjs +1 -1
- package/dist/authority/AuthorityType.mjs +1 -1
- package/dist/authority/AzureRegionConfiguration.d.ts +1 -1
- package/dist/authority/AzureRegionConfiguration.d.ts.map +1 -1
- package/dist/authority/CloudInstanceDiscoveryErrorResponse.mjs +1 -1
- package/dist/authority/CloudInstanceDiscoveryResponse.d.ts +1 -1
- package/dist/authority/CloudInstanceDiscoveryResponse.d.ts.map +1 -1
- package/dist/authority/CloudInstanceDiscoveryResponse.mjs +1 -1
- package/dist/authority/OIDCOptions.d.ts +1 -1
- package/dist/authority/OIDCOptions.d.ts.map +1 -1
- package/dist/authority/OpenIdConfigResponse.mjs +1 -1
- package/dist/authority/ProtocolMode.mjs +1 -1
- package/dist/authority/RegionDiscovery.d.ts +5 -5
- package/dist/authority/RegionDiscovery.d.ts.map +1 -1
- package/dist/authority/RegionDiscovery.mjs +1 -1
- package/dist/authority/RegionDiscoveryMetadata.d.ts +1 -1
- package/dist/authority/RegionDiscoveryMetadata.d.ts.map +1 -1
- package/dist/broker/nativeBroker/INativeBrokerPlugin.d.ts +6 -6
- package/dist/broker/nativeBroker/INativeBrokerPlugin.d.ts.map +1 -1
- package/dist/cache/CacheManager.d.ts +18 -23
- package/dist/cache/CacheManager.d.ts.map +1 -1
- package/dist/cache/CacheManager.mjs +1 -4
- package/dist/cache/CacheManager.mjs.map +1 -1
- package/dist/cache/entities/AccessTokenEntity.d.ts +2 -2
- package/dist/cache/entities/AccessTokenEntity.d.ts.map +1 -1
- package/dist/cache/entities/AccountEntity.d.ts +6 -6
- package/dist/cache/entities/AccountEntity.d.ts.map +1 -1
- package/dist/cache/entities/AccountEntity.mjs +1 -1
- package/dist/cache/entities/CacheRecord.d.ts +5 -5
- package/dist/cache/entities/CacheRecord.d.ts.map +1 -1
- package/dist/cache/entities/CredentialEntity.d.ts +1 -1
- package/dist/cache/entities/CredentialEntity.d.ts.map +1 -1
- package/dist/cache/entities/IdTokenEntity.d.ts +1 -1
- package/dist/cache/entities/IdTokenEntity.d.ts.map +1 -1
- package/dist/cache/entities/RefreshTokenEntity.d.ts +1 -1
- package/dist/cache/entities/RefreshTokenEntity.d.ts.map +1 -1
- package/dist/cache/interface/ICacheManager.d.ts +12 -12
- package/dist/cache/interface/ICacheManager.d.ts.map +1 -1
- package/dist/cache/interface/ICachePlugin.d.ts +1 -1
- package/dist/cache/interface/ICachePlugin.d.ts.map +1 -1
- package/dist/cache/persistence/TokenCacheContext.d.ts +1 -1
- package/dist/cache/persistence/TokenCacheContext.d.ts.map +1 -1
- package/dist/cache/persistence/TokenCacheContext.mjs +1 -1
- package/dist/cache/utils/CacheHelpers.d.ts +9 -9
- package/dist/cache/utils/CacheHelpers.d.ts.map +1 -1
- package/dist/cache/utils/CacheHelpers.mjs +1 -1
- package/dist/cache/utils/CacheTypes.d.ts +11 -11
- package/dist/cache/utils/CacheTypes.d.ts.map +1 -1
- package/dist/client/AuthorizationCodeClient.d.ts +10 -9
- package/dist/client/AuthorizationCodeClient.d.ts.map +1 -1
- package/dist/client/AuthorizationCodeClient.mjs +35 -16
- package/dist/client/AuthorizationCodeClient.mjs.map +1 -1
- package/dist/client/BaseClient.d.ts +21 -14
- package/dist/client/BaseClient.d.ts.map +1 -1
- package/dist/client/BaseClient.mjs +62 -10
- package/dist/client/BaseClient.mjs.map +1 -1
- package/dist/client/RefreshTokenClient.d.ts +6 -6
- package/dist/client/RefreshTokenClient.d.ts.map +1 -1
- package/dist/client/RefreshTokenClient.mjs +10 -4
- package/dist/client/RefreshTokenClient.mjs.map +1 -1
- package/dist/client/SilentFlowClient.d.ts +6 -6
- package/dist/client/SilentFlowClient.d.ts.map +1 -1
- package/dist/client/SilentFlowClient.mjs +1 -1
- package/dist/config/ClientConfiguration.d.ts +15 -11
- package/dist/config/ClientConfiguration.d.ts.map +1 -1
- package/dist/config/ClientConfiguration.mjs +2 -1
- package/dist/config/ClientConfiguration.mjs.map +1 -1
- package/dist/constants/AADServerParamKeys.d.ts +2 -0
- package/dist/constants/AADServerParamKeys.d.ts.map +1 -1
- package/dist/constants/AADServerParamKeys.mjs +5 -3
- package/dist/constants/AADServerParamKeys.mjs.map +1 -1
- package/dist/crypto/ICrypto.d.ts +2 -2
- package/dist/crypto/ICrypto.d.ts.map +1 -1
- package/dist/crypto/ICrypto.mjs +1 -1
- package/dist/crypto/JoseHeader.d.ts +1 -1
- package/dist/crypto/JoseHeader.d.ts.map +1 -1
- package/dist/crypto/JoseHeader.mjs +1 -1
- package/dist/crypto/PopTokenGenerator.d.ts +3 -3
- package/dist/crypto/PopTokenGenerator.d.ts.map +1 -1
- package/dist/crypto/PopTokenGenerator.mjs +1 -1
- package/dist/crypto/SignedHttpRequest.d.ts +1 -1
- package/dist/crypto/SignedHttpRequest.d.ts.map +1 -1
- package/dist/error/AuthError.d.ts +1 -1
- package/dist/error/AuthError.d.ts.map +1 -1
- package/dist/error/AuthError.mjs +1 -1
- package/dist/error/AuthErrorCodes.mjs +1 -1
- package/dist/error/CacheError.d.ts +1 -1
- package/dist/error/CacheError.d.ts.map +1 -1
- package/dist/error/CacheError.mjs +1 -1
- package/dist/error/CacheErrorCodes.mjs +1 -1
- package/dist/error/ClientAuthError.d.ts +2 -2
- package/dist/error/ClientAuthError.d.ts.map +1 -1
- package/dist/error/ClientAuthError.mjs +1 -1
- package/dist/error/ClientAuthErrorCodes.mjs +1 -1
- package/dist/error/ClientConfigurationError.d.ts +2 -2
- package/dist/error/ClientConfigurationError.d.ts.map +1 -1
- package/dist/error/ClientConfigurationError.mjs +1 -1
- package/dist/error/ClientConfigurationErrorCodes.mjs +1 -1
- package/dist/error/InteractionRequiredAuthError.d.ts +2 -2
- package/dist/error/InteractionRequiredAuthError.d.ts.map +1 -1
- package/dist/error/InteractionRequiredAuthError.mjs +1 -1
- package/dist/error/InteractionRequiredAuthErrorCodes.mjs +1 -1
- package/dist/error/JoseHeaderError.d.ts +2 -2
- package/dist/error/JoseHeaderError.d.ts.map +1 -1
- package/dist/error/JoseHeaderError.mjs +1 -1
- package/dist/error/JoseHeaderErrorCodes.mjs +1 -1
- package/dist/error/NetworkError.d.ts +19 -0
- package/dist/error/NetworkError.d.ts.map +1 -0
- package/dist/error/NetworkError.mjs +34 -0
- package/dist/error/NetworkError.mjs.map +1 -0
- package/dist/error/ServerError.d.ts +1 -1
- package/dist/error/ServerError.d.ts.map +1 -1
- package/dist/error/ServerError.mjs +1 -1
- package/dist/exports-browser-only.d.ts +10 -0
- package/dist/exports-browser-only.d.ts.map +1 -0
- package/dist/exports-common.d.ts +81 -0
- package/dist/exports-common.d.ts.map +1 -0
- package/dist/exports-node-only.d.ts +18 -0
- package/dist/exports-node-only.d.ts.map +1 -0
- package/dist/index-browser.d.ts +7 -0
- package/dist/index-browser.d.ts.map +1 -0
- package/dist/index-browser.mjs +67 -0
- package/dist/index-browser.mjs.map +1 -0
- package/dist/index-node.d.ts +7 -0
- package/dist/index-node.d.ts.map +1 -0
- package/dist/index-node.mjs +66 -0
- package/dist/index-node.mjs.map +1 -0
- package/dist/index.d.ts +7 -103
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +31 -31
- package/dist/logger/Logger.d.ts +1 -1
- package/dist/logger/Logger.d.ts.map +1 -1
- package/dist/logger/Logger.mjs +1 -1
- package/dist/network/INetworkModule.d.ts +1 -1
- package/dist/network/INetworkModule.d.ts.map +1 -1
- package/dist/network/INetworkModule.mjs +1 -1
- package/dist/network/NetworkResponse.d.ts +6 -0
- package/dist/network/NetworkResponse.d.ts.map +1 -0
- package/dist/network/RequestThumbprint.d.ts +2 -2
- package/dist/network/RequestThumbprint.d.ts.map +1 -1
- package/dist/network/ThrottlingUtils.d.ts +5 -5
- package/dist/network/ThrottlingUtils.d.ts.map +1 -1
- package/dist/network/ThrottlingUtils.mjs +1 -1
- package/dist/packageMetadata.d.ts +1 -1
- package/dist/packageMetadata.mjs +2 -2
- package/dist/request/AuthenticationHeaderParser.mjs +1 -1
- package/dist/request/BaseAuthRequest.d.ts +7 -5
- package/dist/request/BaseAuthRequest.d.ts.map +1 -1
- package/dist/request/CommonAuthorizationCodeRequest.d.ts +3 -3
- package/dist/request/CommonAuthorizationCodeRequest.d.ts.map +1 -1
- package/dist/request/CommonAuthorizationUrlRequest.d.ts +4 -4
- package/dist/request/CommonAuthorizationUrlRequest.d.ts.map +1 -1
- package/dist/request/CommonClientCredentialRequest.d.ts +3 -3
- package/dist/request/CommonClientCredentialRequest.d.ts.map +1 -1
- package/dist/request/CommonDeviceCodeRequest.d.ts +3 -3
- package/dist/request/CommonDeviceCodeRequest.d.ts.map +1 -1
- package/dist/request/CommonEndSessionRequest.d.ts +2 -2
- package/dist/request/CommonEndSessionRequest.d.ts.map +1 -1
- package/dist/request/CommonOnBehalfOfRequest.d.ts +1 -1
- package/dist/request/CommonOnBehalfOfRequest.d.ts.map +1 -1
- package/dist/request/CommonRefreshTokenRequest.d.ts +3 -3
- package/dist/request/CommonRefreshTokenRequest.d.ts.map +1 -1
- package/dist/request/CommonSilentFlowRequest.d.ts +3 -3
- package/dist/request/CommonSilentFlowRequest.d.ts.map +1 -1
- package/dist/request/CommonUsernamePasswordRequest.d.ts +1 -1
- package/dist/request/CommonUsernamePasswordRequest.d.ts.map +1 -1
- package/dist/request/NativeRequest.d.ts +1 -1
- package/dist/request/NativeRequest.d.ts.map +1 -1
- package/dist/request/RequestParameterBuilder.d.ts +13 -6
- package/dist/request/RequestParameterBuilder.d.ts.map +1 -1
- package/dist/request/RequestParameterBuilder.mjs +26 -3
- package/dist/request/RequestParameterBuilder.mjs.map +1 -1
- package/dist/request/RequestValidator.mjs +1 -1
- package/dist/request/ScopeSet.mjs +1 -1
- package/dist/response/AuthenticationResult.d.ts +1 -1
- package/dist/response/AuthenticationResult.d.ts.map +1 -1
- package/dist/response/ExternalTokenResponse.d.ts +1 -1
- package/dist/response/ExternalTokenResponse.d.ts.map +1 -1
- package/dist/response/ResponseHandler.d.ts +16 -16
- package/dist/response/ResponseHandler.d.ts.map +1 -1
- package/dist/response/ResponseHandler.mjs +1 -1
- package/dist/response/ServerAuthorizationTokenResponse.d.ts +1 -1
- package/dist/response/ServerAuthorizationTokenResponse.d.ts.map +1 -1
- package/dist/telemetry/performance/IPerformanceClient.d.ts +2 -2
- package/dist/telemetry/performance/IPerformanceClient.d.ts.map +1 -1
- package/dist/telemetry/performance/PerformanceClient.d.ts +5 -5
- package/dist/telemetry/performance/PerformanceClient.d.ts.map +1 -1
- package/dist/telemetry/performance/PerformanceClient.mjs +29 -10
- package/dist/telemetry/performance/PerformanceClient.mjs.map +1 -1
- package/dist/telemetry/performance/PerformanceEvent.d.ts +9 -0
- package/dist/telemetry/performance/PerformanceEvent.d.ts.map +1 -1
- package/dist/telemetry/performance/PerformanceEvent.mjs +6 -1
- package/dist/telemetry/performance/PerformanceEvent.mjs.map +1 -1
- package/dist/telemetry/performance/StubPerformanceClient.d.ts +3 -3
- package/dist/telemetry/performance/StubPerformanceClient.d.ts.map +1 -1
- package/dist/telemetry/performance/StubPerformanceClient.mjs +1 -1
- package/dist/telemetry/performance/StubPerformanceClient.mjs.map +1 -1
- package/dist/telemetry/server/ServerTelemetryManager.d.ts +5 -5
- package/dist/telemetry/server/ServerTelemetryManager.d.ts.map +1 -1
- package/dist/telemetry/server/ServerTelemetryManager.mjs +1 -1
- package/dist/url/UrlString.d.ts +1 -1
- package/dist/url/UrlString.d.ts.map +1 -1
- package/dist/url/UrlString.mjs +1 -1
- package/dist/utils/ClientAssertionUtils.d.ts +1 -1
- package/dist/utils/ClientAssertionUtils.d.ts.map +1 -1
- package/dist/utils/ClientAssertionUtils.mjs +1 -1
- package/dist/utils/Constants.d.ts +1 -0
- package/dist/utils/Constants.d.ts.map +1 -1
- package/dist/utils/Constants.mjs +2 -1
- package/dist/utils/Constants.mjs.map +1 -1
- package/dist/utils/FunctionWrappers.d.ts +2 -2
- package/dist/utils/FunctionWrappers.d.ts.map +1 -1
- package/dist/utils/FunctionWrappers.mjs +1 -1
- package/dist/utils/ProtocolUtils.d.ts +1 -1
- package/dist/utils/ProtocolUtils.d.ts.map +1 -1
- package/dist/utils/ProtocolUtils.mjs +1 -1
- package/dist/utils/StringUtils.mjs +1 -1
- package/dist/utils/TimeUtils.mjs +1 -1
- package/dist/utils/UrlUtils.d.ts +1 -1
- package/dist/utils/UrlUtils.d.ts.map +1 -1
- package/dist/utils/UrlUtils.mjs +1 -1
- package/lib/index-browser.cjs +858 -0
- package/lib/index-browser.cjs.map +1 -0
- package/{dist/index.cjs → lib/index-node-C9XsExml.js} +352 -990
- package/lib/index-node-C9XsExml.js.map +1 -0
- package/lib/index-node.cjs +104 -0
- package/lib/index-node.cjs.map +1 -0
- package/lib/index.cjs +112 -0
- package/lib/index.cjs.map +1 -0
- package/lib/package.json +1 -0
- package/lib/types/account/AccountInfo.d.ts +67 -0
- package/lib/types/account/AccountInfo.d.ts.map +1 -0
- package/lib/types/account/AuthToken.d.ts +18 -0
- package/lib/types/account/AuthToken.d.ts.map +1 -0
- package/lib/types/account/CcsCredential.d.ts +10 -0
- package/lib/types/account/CcsCredential.d.ts.map +1 -0
- package/lib/types/account/ClientCredentials.d.ts +20 -0
- package/lib/types/account/ClientCredentials.d.ts.map +1 -0
- package/lib/types/account/ClientInfo.d.ts +19 -0
- package/lib/types/account/ClientInfo.d.ts.map +1 -0
- package/lib/types/account/TokenClaims.d.ts +84 -0
- package/lib/types/account/TokenClaims.d.ts.map +1 -0
- package/lib/types/authority/Authority.d.ts +255 -0
- package/lib/types/authority/Authority.d.ts.map +1 -0
- package/lib/types/authority/AuthorityFactory.d.ts +19 -0
- package/lib/types/authority/AuthorityFactory.d.ts.map +1 -0
- package/lib/types/authority/AuthorityMetadata.d.ts +44 -0
- package/lib/types/authority/AuthorityMetadata.d.ts.map +1 -0
- package/lib/types/authority/AuthorityOptions.d.ts +28 -0
- package/lib/types/authority/AuthorityOptions.d.ts.map +1 -0
- package/lib/types/authority/AuthorityType.d.ts +11 -0
- package/lib/types/authority/AuthorityType.d.ts.map +1 -0
- package/lib/types/authority/AzureRegion.d.ts +2 -0
- package/lib/types/authority/AzureRegion.d.ts.map +1 -0
- package/lib/types/authority/AzureRegionConfiguration.d.ts +6 -0
- package/lib/types/authority/AzureRegionConfiguration.d.ts.map +1 -0
- package/lib/types/authority/CloudDiscoveryMetadata.d.ts +6 -0
- package/lib/types/authority/CloudDiscoveryMetadata.d.ts.map +1 -0
- package/lib/types/authority/CloudInstanceDiscoveryErrorResponse.d.ts +14 -0
- package/lib/types/authority/CloudInstanceDiscoveryErrorResponse.d.ts.map +1 -0
- package/lib/types/authority/CloudInstanceDiscoveryResponse.d.ts +10 -0
- package/lib/types/authority/CloudInstanceDiscoveryResponse.d.ts.map +1 -0
- package/lib/types/authority/ImdsOptions.d.ts +6 -0
- package/lib/types/authority/ImdsOptions.d.ts.map +1 -0
- package/lib/types/authority/OIDCOptions.d.ts +9 -0
- package/lib/types/authority/OIDCOptions.d.ts.map +1 -0
- package/lib/types/authority/OpenIdConfigResponse.d.ts +12 -0
- package/lib/types/authority/OpenIdConfigResponse.d.ts.map +1 -0
- package/lib/types/authority/ProtocolMode.d.ts +9 -0
- package/lib/types/authority/ProtocolMode.d.ts.map +1 -0
- package/lib/types/authority/RegionDiscovery.d.ts +33 -0
- package/lib/types/authority/RegionDiscovery.d.ts.map +1 -0
- package/lib/types/authority/RegionDiscoveryMetadata.d.ts +7 -0
- package/lib/types/authority/RegionDiscoveryMetadata.d.ts.map +1 -0
- package/lib/types/broker/nativeBroker/INativeBrokerPlugin.d.ts +16 -0
- package/lib/types/broker/nativeBroker/INativeBrokerPlugin.d.ts.map +1 -0
- package/lib/types/cache/CacheManager.d.ts +493 -0
- package/lib/types/cache/CacheManager.d.ts.map +1 -0
- package/lib/types/cache/entities/AccessTokenEntity.d.ts +26 -0
- package/lib/types/cache/entities/AccessTokenEntity.d.ts.map +1 -0
- package/lib/types/cache/entities/AccountEntity.d.ts +107 -0
- package/lib/types/cache/entities/AccountEntity.d.ts.map +1 -0
- package/lib/types/cache/entities/AppMetadataEntity.d.ts +12 -0
- package/lib/types/cache/entities/AppMetadataEntity.d.ts.map +1 -0
- package/lib/types/cache/entities/AuthorityMetadataEntity.d.ts +16 -0
- package/lib/types/cache/entities/AuthorityMetadataEntity.d.ts.map +1 -0
- package/lib/types/cache/entities/CacheRecord.d.ts +14 -0
- package/lib/types/cache/entities/CacheRecord.d.ts.map +1 -0
- package/lib/types/cache/entities/CredentialEntity.d.ts +31 -0
- package/lib/types/cache/entities/CredentialEntity.d.ts.map +1 -0
- package/lib/types/cache/entities/IdTokenEntity.d.ts +9 -0
- package/lib/types/cache/entities/IdTokenEntity.d.ts.map +1 -0
- package/lib/types/cache/entities/RefreshTokenEntity.d.ts +8 -0
- package/lib/types/cache/entities/RefreshTokenEntity.d.ts.map +1 -0
- package/lib/types/cache/entities/ServerTelemetryEntity.d.ts +7 -0
- package/lib/types/cache/entities/ServerTelemetryEntity.d.ts.map +1 -0
- package/lib/types/cache/entities/ThrottlingEntity.d.ts +8 -0
- package/lib/types/cache/entities/ThrottlingEntity.d.ts.map +1 -0
- package/lib/types/cache/interface/ICacheManager.d.ts +167 -0
- package/lib/types/cache/interface/ICacheManager.d.ts.map +1 -0
- package/lib/types/cache/interface/ICachePlugin.d.ts +6 -0
- package/lib/types/cache/interface/ICachePlugin.d.ts.map +1 -0
- package/lib/types/cache/interface/ISerializableTokenCache.d.ts +5 -0
- package/lib/types/cache/interface/ISerializableTokenCache.d.ts.map +1 -0
- package/lib/types/cache/persistence/TokenCacheContext.d.ts +24 -0
- package/lib/types/cache/persistence/TokenCacheContext.d.ts.map +1 -0
- package/lib/types/cache/utils/CacheHelpers.d.ts +95 -0
- package/lib/types/cache/utils/CacheHelpers.d.ts.map +1 -0
- package/lib/types/cache/utils/CacheTypes.d.ts +70 -0
- package/lib/types/cache/utils/CacheTypes.d.ts.map +1 -0
- package/lib/types/client/AuthorizationCodeClient.d.ts +76 -0
- package/lib/types/client/AuthorizationCodeClient.d.ts.map +1 -0
- package/lib/types/client/BaseClient.d.ts +59 -0
- package/lib/types/client/BaseClient.d.ts.map +1 -0
- package/lib/types/client/RefreshTokenClient.d.ts +36 -0
- package/lib/types/client/RefreshTokenClient.d.ts.map +1 -0
- package/lib/types/client/SilentFlowClient.d.ts +28 -0
- package/lib/types/client/SilentFlowClient.d.ts.map +1 -0
- package/lib/types/config/AppTokenProvider.d.ts +39 -0
- package/lib/types/config/AppTokenProvider.d.ts.map +1 -0
- package/lib/types/config/ClientConfiguration.d.ts +155 -0
- package/lib/types/config/ClientConfiguration.d.ts.map +1 -0
- package/lib/types/constants/AADServerParamKeys.d.ts +56 -0
- package/lib/types/constants/AADServerParamKeys.d.ts.map +1 -0
- package/lib/types/crypto/ICrypto.d.ts +69 -0
- package/lib/types/crypto/ICrypto.d.ts.map +1 -0
- package/lib/types/crypto/IGuidGenerator.d.ts +5 -0
- package/lib/types/crypto/IGuidGenerator.d.ts.map +1 -0
- package/lib/types/crypto/JoseHeader.d.ts +23 -0
- package/lib/types/crypto/JoseHeader.d.ts.map +1 -0
- package/lib/types/crypto/PopTokenGenerator.d.ts +60 -0
- package/lib/types/crypto/PopTokenGenerator.d.ts.map +1 -0
- package/lib/types/crypto/SignedHttpRequest.d.ts +16 -0
- package/lib/types/crypto/SignedHttpRequest.d.ts.map +1 -0
- package/lib/types/error/AuthError.d.ts +45 -0
- package/lib/types/error/AuthError.d.ts.map +1 -0
- package/lib/types/error/AuthErrorCodes.d.ts +6 -0
- package/lib/types/error/AuthErrorCodes.d.ts.map +1 -0
- package/lib/types/error/CacheError.d.ts +21 -0
- package/lib/types/error/CacheError.d.ts.map +1 -0
- package/lib/types/error/CacheErrorCodes.d.ts +3 -0
- package/lib/types/error/CacheErrorCodes.d.ts.map +1 -0
- package/lib/types/error/ClientAuthError.d.ts +238 -0
- package/lib/types/error/ClientAuthError.d.ts.map +1 -0
- package/lib/types/error/ClientAuthErrorCodes.d.ts +45 -0
- package/lib/types/error/ClientAuthErrorCodes.d.ts.map +1 -0
- package/lib/types/error/ClientConfigurationError.d.ts +129 -0
- package/lib/types/error/ClientConfigurationError.d.ts.map +1 -0
- package/lib/types/error/ClientConfigurationErrorCodes.d.ts +23 -0
- package/lib/types/error/ClientConfigurationErrorCodes.d.ts.map +1 -0
- package/lib/types/error/InteractionRequiredAuthError.d.ts +66 -0
- package/lib/types/error/InteractionRequiredAuthError.d.ts.map +1 -0
- package/lib/types/error/InteractionRequiredAuthErrorCodes.d.ts +8 -0
- package/lib/types/error/InteractionRequiredAuthErrorCodes.d.ts.map +1 -0
- package/lib/types/error/JoseHeaderError.d.ts +16 -0
- package/lib/types/error/JoseHeaderError.d.ts.map +1 -0
- package/lib/types/error/JoseHeaderErrorCodes.d.ts +3 -0
- package/lib/types/error/JoseHeaderErrorCodes.d.ts.map +1 -0
- package/lib/types/error/NetworkError.d.ts +19 -0
- package/lib/types/error/NetworkError.d.ts.map +1 -0
- package/lib/types/error/ServerError.d.ts +16 -0
- package/lib/types/error/ServerError.d.ts.map +1 -0
- package/lib/types/exports-browser-only.d.ts +10 -0
- package/lib/types/exports-browser-only.d.ts.map +1 -0
- package/lib/types/exports-common.d.ts +81 -0
- package/lib/types/exports-common.d.ts.map +1 -0
- package/lib/types/exports-node-only.d.ts +18 -0
- package/lib/types/exports-node-only.d.ts.map +1 -0
- package/lib/types/index-browser.d.ts +7 -0
- package/lib/types/index-browser.d.ts.map +1 -0
- package/lib/types/index-node.d.ts +7 -0
- package/lib/types/index-node.d.ts.map +1 -0
- package/lib/types/index.d.ts +12 -0
- package/lib/types/index.d.ts.map +1 -0
- package/lib/types/logger/Logger.d.ts +96 -0
- package/lib/types/logger/Logger.d.ts.map +1 -0
- package/lib/types/network/INetworkModule.d.ts +30 -0
- package/lib/types/network/INetworkModule.d.ts.map +1 -0
- package/lib/types/network/NetworkResponse.d.ts +6 -0
- package/lib/types/network/NetworkResponse.d.ts.map +1 -0
- package/lib/types/network/RequestThumbprint.d.ts +19 -0
- package/lib/types/network/RequestThumbprint.d.ts.map +1 -0
- package/lib/types/network/ThrottlingUtils.d.ts +43 -0
- package/lib/types/network/ThrottlingUtils.d.ts.map +1 -0
- package/lib/types/packageMetadata.d.ts +3 -0
- package/lib/types/packageMetadata.d.ts.map +1 -0
- package/lib/types/request/AuthenticationHeaderParser.d.ts +20 -0
- package/lib/types/request/AuthenticationHeaderParser.d.ts.map +1 -0
- package/lib/types/request/BaseAuthRequest.d.ts +50 -0
- package/lib/types/request/BaseAuthRequest.d.ts.map +1 -0
- package/lib/types/request/CommonAuthorizationCodeRequest.d.ts +28 -0
- package/lib/types/request/CommonAuthorizationCodeRequest.d.ts.map +1 -0
- package/lib/types/request/CommonAuthorizationUrlRequest.d.ts +51 -0
- package/lib/types/request/CommonAuthorizationUrlRequest.d.ts.map +1 -0
- package/lib/types/request/CommonClientCredentialRequest.d.ts +18 -0
- package/lib/types/request/CommonClientCredentialRequest.d.ts.map +1 -0
- package/lib/types/request/CommonDeviceCodeRequest.d.ts +22 -0
- package/lib/types/request/CommonDeviceCodeRequest.d.ts.map +1 -0
- package/lib/types/request/CommonEndSessionRequest.d.ts +22 -0
- package/lib/types/request/CommonEndSessionRequest.d.ts.map +1 -0
- package/lib/types/request/CommonOnBehalfOfRequest.d.ts +14 -0
- package/lib/types/request/CommonOnBehalfOfRequest.d.ts.map +1 -0
- package/lib/types/request/CommonRefreshTokenRequest.d.ts +23 -0
- package/lib/types/request/CommonRefreshTokenRequest.d.ts.map +1 -0
- package/lib/types/request/CommonSilentFlowRequest.d.ts +28 -0
- package/lib/types/request/CommonSilentFlowRequest.d.ts.map +1 -0
- package/lib/types/request/CommonUsernamePasswordRequest.d.ts +18 -0
- package/lib/types/request/CommonUsernamePasswordRequest.d.ts.map +1 -0
- package/lib/types/request/NativeRequest.d.ts +20 -0
- package/lib/types/request/NativeRequest.d.ts.map +1 -0
- package/lib/types/request/NativeSignOutRequest.d.ts +6 -0
- package/lib/types/request/NativeSignOutRequest.d.ts.map +1 -0
- package/lib/types/request/RequestParameterBuilder.d.ts +225 -0
- package/lib/types/request/RequestParameterBuilder.d.ts.map +1 -0
- package/lib/types/request/RequestValidator.d.ts +28 -0
- package/lib/types/request/RequestValidator.d.ts.map +1 -0
- package/lib/types/request/ScopeSet.d.ts +89 -0
- package/lib/types/request/ScopeSet.d.ts.map +1 -0
- package/lib/types/request/StoreInCache.d.ts +9 -0
- package/lib/types/request/StoreInCache.d.ts.map +1 -0
- package/lib/types/response/AuthenticationResult.d.ts +42 -0
- package/lib/types/response/AuthenticationResult.d.ts.map +1 -0
- package/lib/types/response/AuthorizationCodePayload.d.ts +14 -0
- package/lib/types/response/AuthorizationCodePayload.d.ts.map +1 -0
- package/lib/types/response/DeviceCodeResponse.d.ts +26 -0
- package/lib/types/response/DeviceCodeResponse.d.ts.map +1 -0
- package/lib/types/response/ExternalTokenResponse.d.ts +16 -0
- package/lib/types/response/ExternalTokenResponse.d.ts.map +1 -0
- package/lib/types/response/IMDSBadResponse.d.ts +5 -0
- package/lib/types/response/IMDSBadResponse.d.ts.map +1 -0
- package/lib/types/response/ResponseHandler.d.ts +70 -0
- package/lib/types/response/ResponseHandler.d.ts.map +1 -0
- package/lib/types/response/ServerAuthorizationCodeResponse.d.ts +27 -0
- package/lib/types/response/ServerAuthorizationCodeResponse.d.ts.map +1 -0
- package/lib/types/response/ServerAuthorizationTokenResponse.d.ts +48 -0
- package/lib/types/response/ServerAuthorizationTokenResponse.d.ts.map +1 -0
- package/lib/types/telemetry/performance/IPerformanceClient.d.ts +58 -0
- package/lib/types/telemetry/performance/IPerformanceClient.d.ts.map +1 -0
- package/lib/types/telemetry/performance/IPerformanceMeasurement.d.ts +6 -0
- package/lib/types/telemetry/performance/IPerformanceMeasurement.d.ts.map +1 -0
- package/lib/types/telemetry/performance/PerformanceClient.d.ts +243 -0
- package/lib/types/telemetry/performance/PerformanceClient.d.ts.map +1 -0
- package/lib/types/telemetry/performance/PerformanceEvent.d.ts +521 -0
- package/lib/types/telemetry/performance/PerformanceEvent.d.ts.map +1 -0
- package/lib/types/telemetry/performance/StubPerformanceClient.d.ts +25 -0
- package/lib/types/telemetry/performance/StubPerformanceClient.d.ts.map +1 -0
- package/lib/types/telemetry/server/ServerTelemetryManager.d.ts +79 -0
- package/lib/types/telemetry/server/ServerTelemetryManager.d.ts.map +1 -0
- package/lib/types/telemetry/server/ServerTelemetryRequest.d.ts +9 -0
- package/lib/types/telemetry/server/ServerTelemetryRequest.d.ts.map +1 -0
- package/lib/types/url/IUri.d.ts +13 -0
- package/lib/types/url/IUri.d.ts.map +1 -0
- package/lib/types/url/UrlString.d.ts +49 -0
- package/lib/types/url/UrlString.d.ts.map +1 -0
- package/lib/types/utils/ClientAssertionUtils.d.ts +3 -0
- package/lib/types/utils/ClientAssertionUtils.d.ts.map +1 -0
- package/lib/types/utils/Constants.d.ts +311 -0
- package/lib/types/utils/Constants.d.ts.map +1 -0
- package/lib/types/utils/FunctionWrappers.d.ts +28 -0
- package/lib/types/utils/FunctionWrappers.d.ts.map +1 -0
- package/lib/types/utils/MsalTypes.d.ts +7 -0
- package/lib/types/utils/MsalTypes.d.ts.map +1 -0
- package/lib/types/utils/ProtocolUtils.d.ts +43 -0
- package/lib/types/utils/ProtocolUtils.d.ts.map +1 -0
- package/lib/types/utils/StringUtils.d.ts +41 -0
- package/lib/types/utils/StringUtils.d.ts.map +1 -0
- package/lib/types/utils/TimeUtils.d.ts +26 -0
- package/lib/types/utils/TimeUtils.d.ts.map +1 -0
- package/lib/types/utils/UrlUtils.d.ts +11 -0
- package/lib/types/utils/UrlUtils.d.ts.map +1 -0
- package/node/README.md +1 -0
- package/node/package.json +5 -0
- package/package.json +38 -11
- package/src/account/AccountInfo.ts +1 -1
- package/src/account/AuthToken.ts +2 -2
- package/src/account/ClientInfo.ts +2 -2
- package/src/authority/Authority.ts +26 -26
- package/src/authority/AuthorityFactory.ts +9 -9
- package/src/authority/AuthorityMetadata.ts +7 -7
- package/src/authority/AuthorityOptions.ts +4 -4
- package/src/authority/AzureRegionConfiguration.ts +1 -1
- package/src/authority/CloudInstanceDiscoveryResponse.ts +1 -1
- package/src/authority/OIDCOptions.ts +1 -1
- package/src/authority/RegionDiscovery.ts +10 -10
- package/src/authority/RegionDiscoveryMetadata.ts +1 -1
- package/src/broker/nativeBroker/INativeBrokerPlugin.ts +5 -5
- package/src/cache/CacheManager.ts +28 -36
- package/src/cache/entities/AccessTokenEntity.ts +2 -2
- package/src/cache/entities/AccountEntity.ts +10 -10
- package/src/cache/entities/CacheRecord.ts +5 -5
- package/src/cache/entities/CredentialEntity.ts +1 -1
- package/src/cache/entities/IdTokenEntity.ts +1 -1
- package/src/cache/entities/RefreshTokenEntity.ts +1 -1
- package/src/cache/interface/ICacheManager.ts +12 -12
- package/src/cache/interface/ICachePlugin.ts +1 -1
- package/src/cache/persistence/TokenCacheContext.ts +1 -1
- package/src/cache/utils/CacheHelpers.ts +13 -13
- package/src/cache/utils/CacheTypes.ts +11 -11
- package/src/client/AuthorizationCodeClient.ts +86 -52
- package/src/client/BaseClient.ts +121 -39
- package/src/client/RefreshTokenClient.ts +42 -33
- package/src/client/SilentFlowClient.ts +17 -17
- package/src/config/ClientConfiguration.ts +20 -15
- package/src/constants/AADServerParamKeys.ts +2 -0
- package/src/crypto/ICrypto.ts +3 -3
- package/src/crypto/JoseHeader.ts +2 -2
- package/src/crypto/PopTokenGenerator.ts +7 -7
- package/src/crypto/SignedHttpRequest.ts +1 -1
- package/src/error/AuthError.ts +2 -2
- package/src/error/CacheError.ts +1 -1
- package/src/error/ClientAuthError.ts +2 -2
- package/src/error/ClientConfigurationError.ts +2 -2
- package/src/error/InteractionRequiredAuthError.ts +3 -3
- package/src/error/JoseHeaderError.ts +2 -2
- package/src/error/NetworkError.ts +44 -0
- package/src/error/ServerError.ts +1 -1
- package/src/exports-browser-only.ts +29 -0
- package/src/exports-common.ts +189 -0
- package/src/exports-node-only.ts +35 -0
- package/src/index-browser.ts +11 -0
- package/src/index-node.ts +11 -0
- package/src/index.ts +7 -250
- package/src/logger/Logger.ts +2 -2
- package/src/network/INetworkModule.ts +2 -2
- package/src/network/NetworkResponse.ts +10 -0
- package/src/network/RequestThumbprint.ts +2 -2
- package/src/network/ThrottlingUtils.ts +8 -8
- package/src/packageMetadata.ts +1 -1
- package/src/request/AuthenticationHeaderParser.ts +2 -2
- package/src/request/BaseAuthRequest.ts +7 -5
- package/src/request/CommonAuthorizationCodeRequest.ts +3 -3
- package/src/request/CommonAuthorizationUrlRequest.ts +4 -4
- package/src/request/CommonClientCredentialRequest.ts +3 -3
- package/src/request/CommonDeviceCodeRequest.ts +3 -3
- package/src/request/CommonEndSessionRequest.ts +2 -2
- package/src/request/CommonOnBehalfOfRequest.ts +1 -1
- package/src/request/CommonRefreshTokenRequest.ts +3 -3
- package/src/request/CommonSilentFlowRequest.ts +3 -3
- package/src/request/CommonUsernamePasswordRequest.ts +1 -1
- package/src/request/NativeRequest.ts +1 -1
- package/src/request/RequestParameterBuilder.ts +60 -10
- package/src/request/RequestValidator.ts +2 -2
- package/src/request/ScopeSet.ts +4 -4
- package/src/response/AuthenticationResult.ts +1 -1
- package/src/response/ExternalTokenResponse.ts +1 -1
- package/src/response/ResponseHandler.ts +31 -31
- package/src/response/ServerAuthorizationTokenResponse.ts +1 -1
- package/src/telemetry/performance/IPerformanceClient.ts +2 -2
- package/src/telemetry/performance/PerformanceClient.ts +52 -22
- package/src/telemetry/performance/PerformanceEvent.ts +15 -0
- package/src/telemetry/performance/StubPerformanceClient.ts +6 -3
- package/src/telemetry/server/ServerTelemetryManager.ts +6 -6
- package/src/url/UrlString.ts +5 -5
- package/src/utils/ClientAssertionUtils.ts +1 -1
- package/src/utils/Constants.ts +1 -0
- package/src/utils/FunctionWrappers.ts +2 -2
- package/src/utils/ProtocolUtils.ts +3 -3
- package/src/utils/UrlUtils.ts +2 -2
- package/dist/index.cjs.map +0 -1
- package/dist/network/NetworkManager.d.ts +0 -34
- package/dist/network/NetworkManager.d.ts.map +0 -1
- package/dist/network/NetworkManager.mjs +0 -44
- package/dist/network/NetworkManager.mjs.map +0 -1
- package/src/network/NetworkManager.ts +0 -76
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
/*! @azure/msal-common v14.16.0 2024-11-05 */
|
|
2
|
+
'use strict';
|
|
3
|
+
'use strict';
|
|
4
|
+
|
|
5
|
+
var indexNode = require('./index-node-C9XsExml.js');
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
exports.AADAuthorityConstants = indexNode.AADAuthorityConstants;
|
|
10
|
+
exports.AADServerParamKeys = indexNode.AADServerParamKeys;
|
|
11
|
+
exports.AccountEntity = indexNode.AccountEntity;
|
|
12
|
+
exports.AuthError = indexNode.AuthError;
|
|
13
|
+
exports.AuthErrorCodes = indexNode.AuthErrorCodes;
|
|
14
|
+
exports.AuthErrorMessage = indexNode.AuthErrorMessage;
|
|
15
|
+
exports.AuthToken = indexNode.AuthToken;
|
|
16
|
+
exports.AuthenticationHeaderParser = indexNode.AuthenticationHeaderParser;
|
|
17
|
+
exports.AuthenticationScheme = indexNode.AuthenticationScheme;
|
|
18
|
+
exports.Authority = indexNode.Authority;
|
|
19
|
+
exports.AuthorityFactory = indexNode.AuthorityFactory;
|
|
20
|
+
exports.AuthorityType = indexNode.AuthorityType;
|
|
21
|
+
exports.AuthorizationCodeClient = indexNode.AuthorizationCodeClient;
|
|
22
|
+
exports.AzureCloudInstance = indexNode.AzureCloudInstance;
|
|
23
|
+
exports.BaseClient = indexNode.BaseClient;
|
|
24
|
+
exports.CacheAccountType = indexNode.CacheAccountType;
|
|
25
|
+
exports.CacheError = indexNode.CacheError;
|
|
26
|
+
exports.CacheErrorCodes = indexNode.CacheErrorCodes;
|
|
27
|
+
exports.CacheHelpers = indexNode.CacheHelpers;
|
|
28
|
+
exports.CacheManager = indexNode.CacheManager;
|
|
29
|
+
exports.CacheOutcome = indexNode.CacheOutcome;
|
|
30
|
+
exports.CacheType = indexNode.CacheType;
|
|
31
|
+
exports.CcsCredentialType = indexNode.CcsCredentialType;
|
|
32
|
+
exports.ClaimsRequestKeys = indexNode.ClaimsRequestKeys;
|
|
33
|
+
exports.ClientAssertionUtils = indexNode.ClientAssertionUtils;
|
|
34
|
+
exports.ClientAuthError = indexNode.ClientAuthError;
|
|
35
|
+
exports.ClientAuthErrorCodes = indexNode.ClientAuthErrorCodes;
|
|
36
|
+
exports.ClientAuthErrorMessage = indexNode.ClientAuthErrorMessage;
|
|
37
|
+
exports.ClientConfigurationError = indexNode.ClientConfigurationError;
|
|
38
|
+
exports.ClientConfigurationErrorCodes = indexNode.ClientConfigurationErrorCodes;
|
|
39
|
+
exports.ClientConfigurationErrorMessage = indexNode.ClientConfigurationErrorMessage;
|
|
40
|
+
exports.CodeChallengeMethodValues = indexNode.CodeChallengeMethodValues;
|
|
41
|
+
exports.Constants = indexNode.Constants;
|
|
42
|
+
exports.CredentialType = indexNode.CredentialType;
|
|
43
|
+
exports.DEFAULT_CRYPTO_IMPLEMENTATION = indexNode.DEFAULT_CRYPTO_IMPLEMENTATION;
|
|
44
|
+
exports.DEFAULT_SYSTEM_OPTIONS = indexNode.DEFAULT_SYSTEM_OPTIONS;
|
|
45
|
+
exports.DEFAULT_TOKEN_RENEWAL_OFFSET_SEC = indexNode.DEFAULT_TOKEN_RENEWAL_OFFSET_SEC;
|
|
46
|
+
exports.DefaultStorageClass = indexNode.DefaultStorageClass;
|
|
47
|
+
exports.Errors = indexNode.Errors;
|
|
48
|
+
exports.GrantType = indexNode.GrantType;
|
|
49
|
+
exports.HeaderNames = indexNode.HeaderNames;
|
|
50
|
+
exports.HttpStatus = indexNode.HttpStatus;
|
|
51
|
+
exports.InteractionRequiredAuthError = indexNode.InteractionRequiredAuthError;
|
|
52
|
+
exports.InteractionRequiredAuthErrorCodes = indexNode.InteractionRequiredAuthErrorCodes;
|
|
53
|
+
exports.InteractionRequiredAuthErrorMessage = indexNode.InteractionRequiredAuthErrorMessage;
|
|
54
|
+
exports.JsonWebTokenTypes = indexNode.JsonWebTokenTypes;
|
|
55
|
+
Object.defineProperty(exports, "LogLevel", {
|
|
56
|
+
enumerable: true,
|
|
57
|
+
get: function () { return indexNode.LogLevel; }
|
|
58
|
+
});
|
|
59
|
+
exports.Logger = indexNode.Logger;
|
|
60
|
+
exports.NetworkError = indexNode.NetworkError;
|
|
61
|
+
exports.OIDC_DEFAULT_SCOPES = indexNode.OIDC_DEFAULT_SCOPES;
|
|
62
|
+
exports.ONE_DAY_IN_MS = indexNode.ONE_DAY_IN_MS;
|
|
63
|
+
exports.PasswordGrantConstants = indexNode.PasswordGrantConstants;
|
|
64
|
+
exports.PersistentCacheKeys = indexNode.PersistentCacheKeys;
|
|
65
|
+
exports.PromptValue = indexNode.PromptValue;
|
|
66
|
+
exports.ProtocolMode = indexNode.ProtocolMode;
|
|
67
|
+
exports.ProtocolUtils = indexNode.ProtocolUtils;
|
|
68
|
+
exports.RefreshTokenClient = indexNode.RefreshTokenClient;
|
|
69
|
+
exports.RequestParameterBuilder = indexNode.RequestParameterBuilder;
|
|
70
|
+
exports.ResponseHandler = indexNode.ResponseHandler;
|
|
71
|
+
exports.ResponseMode = indexNode.ResponseMode;
|
|
72
|
+
exports.ScopeSet = indexNode.ScopeSet;
|
|
73
|
+
exports.ServerError = indexNode.ServerError;
|
|
74
|
+
exports.ServerResponseType = indexNode.ServerResponseType;
|
|
75
|
+
exports.ServerTelemetryManager = indexNode.ServerTelemetryManager;
|
|
76
|
+
exports.SilentFlowClient = indexNode.SilentFlowClient;
|
|
77
|
+
exports.StringUtils = indexNode.StringUtils;
|
|
78
|
+
exports.StubbedNetworkModule = indexNode.StubbedNetworkModule;
|
|
79
|
+
exports.THE_FAMILY_ID = indexNode.THE_FAMILY_ID;
|
|
80
|
+
exports.ThrottlingConstants = indexNode.ThrottlingConstants;
|
|
81
|
+
exports.ThrottlingUtils = indexNode.ThrottlingUtils;
|
|
82
|
+
exports.TimeUtils = indexNode.TimeUtils;
|
|
83
|
+
exports.TokenCacheContext = indexNode.TokenCacheContext;
|
|
84
|
+
exports.UrlString = indexNode.UrlString;
|
|
85
|
+
exports.UrlUtils = indexNode.UrlUtils;
|
|
86
|
+
exports.buildAccountToCache = indexNode.buildAccountToCache;
|
|
87
|
+
exports.buildClientInfo = indexNode.buildClientInfo;
|
|
88
|
+
exports.buildClientInfoFromHomeAccountId = indexNode.buildClientInfoFromHomeAccountId;
|
|
89
|
+
exports.buildStaticAuthorityOptions = indexNode.buildStaticAuthorityOptions;
|
|
90
|
+
exports.buildTenantProfile = indexNode.buildTenantProfile;
|
|
91
|
+
exports.createAuthError = indexNode.createAuthError;
|
|
92
|
+
exports.createClientAuthError = indexNode.createClientAuthError;
|
|
93
|
+
exports.createClientConfigurationError = indexNode.createClientConfigurationError;
|
|
94
|
+
exports.createInteractionRequiredAuthError = indexNode.createInteractionRequiredAuthError;
|
|
95
|
+
exports.createNetworkError = indexNode.createNetworkError;
|
|
96
|
+
exports.formatAuthorityUri = indexNode.formatAuthorityUri;
|
|
97
|
+
exports.getClientAssertion = indexNode.getClientAssertion;
|
|
98
|
+
exports.getTenantIdFromIdTokenClaims = indexNode.getTenantIdFromIdTokenClaims;
|
|
99
|
+
exports.invoke = indexNode.invoke;
|
|
100
|
+
exports.invokeAsync = indexNode.invokeAsync;
|
|
101
|
+
exports.tenantIdMatchesHomeTenant = indexNode.tenantIdMatchesHomeTenant;
|
|
102
|
+
exports.updateAccountTenantProfileData = indexNode.updateAccountTenantProfileData;
|
|
103
|
+
exports.version = indexNode.version;
|
|
104
|
+
//# sourceMappingURL=index-node.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-node.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/lib/index.cjs
ADDED
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
/*! @azure/msal-common v14.16.0 2024-11-05 */
|
|
2
|
+
'use strict';
|
|
3
|
+
'use strict';
|
|
4
|
+
|
|
5
|
+
var indexNode = require('./index-node-C9XsExml.js');
|
|
6
|
+
var indexBrowser = require('./index-browser.cjs');
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
exports.AADAuthorityConstants = indexNode.AADAuthorityConstants;
|
|
11
|
+
exports.AADServerParamKeys = indexNode.AADServerParamKeys;
|
|
12
|
+
exports.AccountEntity = indexNode.AccountEntity;
|
|
13
|
+
exports.AuthError = indexNode.AuthError;
|
|
14
|
+
exports.AuthErrorCodes = indexNode.AuthErrorCodes;
|
|
15
|
+
exports.AuthErrorMessage = indexNode.AuthErrorMessage;
|
|
16
|
+
exports.AuthToken = indexNode.AuthToken;
|
|
17
|
+
exports.AuthenticationHeaderParser = indexNode.AuthenticationHeaderParser;
|
|
18
|
+
exports.AuthenticationScheme = indexNode.AuthenticationScheme;
|
|
19
|
+
exports.Authority = indexNode.Authority;
|
|
20
|
+
exports.AuthorityFactory = indexNode.AuthorityFactory;
|
|
21
|
+
exports.AuthorityType = indexNode.AuthorityType;
|
|
22
|
+
exports.AuthorizationCodeClient = indexNode.AuthorizationCodeClient;
|
|
23
|
+
exports.AzureCloudInstance = indexNode.AzureCloudInstance;
|
|
24
|
+
exports.BaseClient = indexNode.BaseClient;
|
|
25
|
+
exports.CacheAccountType = indexNode.CacheAccountType;
|
|
26
|
+
exports.CacheError = indexNode.CacheError;
|
|
27
|
+
exports.CacheErrorCodes = indexNode.CacheErrorCodes;
|
|
28
|
+
exports.CacheHelpers = indexNode.CacheHelpers;
|
|
29
|
+
exports.CacheManager = indexNode.CacheManager;
|
|
30
|
+
exports.CacheOutcome = indexNode.CacheOutcome;
|
|
31
|
+
exports.CacheType = indexNode.CacheType;
|
|
32
|
+
exports.CcsCredentialType = indexNode.CcsCredentialType;
|
|
33
|
+
exports.ClaimsRequestKeys = indexNode.ClaimsRequestKeys;
|
|
34
|
+
exports.ClientAssertionUtils = indexNode.ClientAssertionUtils;
|
|
35
|
+
exports.ClientAuthError = indexNode.ClientAuthError;
|
|
36
|
+
exports.ClientAuthErrorCodes = indexNode.ClientAuthErrorCodes;
|
|
37
|
+
exports.ClientAuthErrorMessage = indexNode.ClientAuthErrorMessage;
|
|
38
|
+
exports.ClientConfigurationError = indexNode.ClientConfigurationError;
|
|
39
|
+
exports.ClientConfigurationErrorCodes = indexNode.ClientConfigurationErrorCodes;
|
|
40
|
+
exports.ClientConfigurationErrorMessage = indexNode.ClientConfigurationErrorMessage;
|
|
41
|
+
exports.CodeChallengeMethodValues = indexNode.CodeChallengeMethodValues;
|
|
42
|
+
exports.Constants = indexNode.Constants;
|
|
43
|
+
exports.CredentialType = indexNode.CredentialType;
|
|
44
|
+
exports.DEFAULT_CRYPTO_IMPLEMENTATION = indexNode.DEFAULT_CRYPTO_IMPLEMENTATION;
|
|
45
|
+
exports.DEFAULT_SYSTEM_OPTIONS = indexNode.DEFAULT_SYSTEM_OPTIONS;
|
|
46
|
+
exports.DEFAULT_TOKEN_RENEWAL_OFFSET_SEC = indexNode.DEFAULT_TOKEN_RENEWAL_OFFSET_SEC;
|
|
47
|
+
exports.DefaultStorageClass = indexNode.DefaultStorageClass;
|
|
48
|
+
exports.Errors = indexNode.Errors;
|
|
49
|
+
exports.GrantType = indexNode.GrantType;
|
|
50
|
+
exports.HeaderNames = indexNode.HeaderNames;
|
|
51
|
+
exports.HttpStatus = indexNode.HttpStatus;
|
|
52
|
+
exports.IntFields = indexNode.IntFields;
|
|
53
|
+
exports.InteractionRequiredAuthError = indexNode.InteractionRequiredAuthError;
|
|
54
|
+
exports.InteractionRequiredAuthErrorCodes = indexNode.InteractionRequiredAuthErrorCodes;
|
|
55
|
+
exports.InteractionRequiredAuthErrorMessage = indexNode.InteractionRequiredAuthErrorMessage;
|
|
56
|
+
exports.JsonWebTokenTypes = indexNode.JsonWebTokenTypes;
|
|
57
|
+
Object.defineProperty(exports, "LogLevel", {
|
|
58
|
+
enumerable: true,
|
|
59
|
+
get: function () { return indexNode.LogLevel; }
|
|
60
|
+
});
|
|
61
|
+
exports.Logger = indexNode.Logger;
|
|
62
|
+
exports.NetworkError = indexNode.NetworkError;
|
|
63
|
+
exports.OIDC_DEFAULT_SCOPES = indexNode.OIDC_DEFAULT_SCOPES;
|
|
64
|
+
exports.ONE_DAY_IN_MS = indexNode.ONE_DAY_IN_MS;
|
|
65
|
+
exports.PasswordGrantConstants = indexNode.PasswordGrantConstants;
|
|
66
|
+
exports.PerformanceEventStatus = indexNode.PerformanceEventStatus;
|
|
67
|
+
exports.PerformanceEvents = indexNode.PerformanceEvents;
|
|
68
|
+
exports.PersistentCacheKeys = indexNode.PersistentCacheKeys;
|
|
69
|
+
exports.PopTokenGenerator = indexNode.PopTokenGenerator;
|
|
70
|
+
exports.PromptValue = indexNode.PromptValue;
|
|
71
|
+
exports.ProtocolMode = indexNode.ProtocolMode;
|
|
72
|
+
exports.ProtocolUtils = indexNode.ProtocolUtils;
|
|
73
|
+
exports.RefreshTokenClient = indexNode.RefreshTokenClient;
|
|
74
|
+
exports.RequestParameterBuilder = indexNode.RequestParameterBuilder;
|
|
75
|
+
exports.ResponseHandler = indexNode.ResponseHandler;
|
|
76
|
+
exports.ResponseMode = indexNode.ResponseMode;
|
|
77
|
+
exports.ScopeSet = indexNode.ScopeSet;
|
|
78
|
+
exports.ServerError = indexNode.ServerError;
|
|
79
|
+
exports.ServerResponseType = indexNode.ServerResponseType;
|
|
80
|
+
exports.ServerTelemetryManager = indexNode.ServerTelemetryManager;
|
|
81
|
+
exports.SilentFlowClient = indexNode.SilentFlowClient;
|
|
82
|
+
exports.StringUtils = indexNode.StringUtils;
|
|
83
|
+
exports.StubbedNetworkModule = indexNode.StubbedNetworkModule;
|
|
84
|
+
exports.THE_FAMILY_ID = indexNode.THE_FAMILY_ID;
|
|
85
|
+
exports.ThrottlingConstants = indexNode.ThrottlingConstants;
|
|
86
|
+
exports.ThrottlingUtils = indexNode.ThrottlingUtils;
|
|
87
|
+
exports.TimeUtils = indexNode.TimeUtils;
|
|
88
|
+
exports.TokenCacheContext = indexNode.TokenCacheContext;
|
|
89
|
+
exports.UrlString = indexNode.UrlString;
|
|
90
|
+
exports.UrlUtils = indexNode.UrlUtils;
|
|
91
|
+
exports.buildAccountToCache = indexNode.buildAccountToCache;
|
|
92
|
+
exports.buildClientInfo = indexNode.buildClientInfo;
|
|
93
|
+
exports.buildClientInfoFromHomeAccountId = indexNode.buildClientInfoFromHomeAccountId;
|
|
94
|
+
exports.buildStaticAuthorityOptions = indexNode.buildStaticAuthorityOptions;
|
|
95
|
+
exports.buildTenantProfile = indexNode.buildTenantProfile;
|
|
96
|
+
exports.createAuthError = indexNode.createAuthError;
|
|
97
|
+
exports.createClientAuthError = indexNode.createClientAuthError;
|
|
98
|
+
exports.createClientConfigurationError = indexNode.createClientConfigurationError;
|
|
99
|
+
exports.createInteractionRequiredAuthError = indexNode.createInteractionRequiredAuthError;
|
|
100
|
+
exports.createNetworkError = indexNode.createNetworkError;
|
|
101
|
+
exports.formatAuthorityUri = indexNode.formatAuthorityUri;
|
|
102
|
+
exports.getClientAssertion = indexNode.getClientAssertion;
|
|
103
|
+
exports.getTenantIdFromIdTokenClaims = indexNode.getTenantIdFromIdTokenClaims;
|
|
104
|
+
exports.invoke = indexNode.invoke;
|
|
105
|
+
exports.invokeAsync = indexNode.invokeAsync;
|
|
106
|
+
exports.tenantIdMatchesHomeTenant = indexNode.tenantIdMatchesHomeTenant;
|
|
107
|
+
exports.updateAccountTenantProfileData = indexNode.updateAccountTenantProfileData;
|
|
108
|
+
exports.version = indexNode.version;
|
|
109
|
+
exports.JoseHeader = indexBrowser.JoseHeader;
|
|
110
|
+
exports.PerformanceClient = indexBrowser.PerformanceClient;
|
|
111
|
+
exports.StubPerformanceClient = indexBrowser.StubPerformanceClient;
|
|
112
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/lib/package.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"type":"commonjs"}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { TokenClaims } from "./TokenClaims.js";
|
|
2
|
+
/**
|
|
3
|
+
* Account object with the following signature:
|
|
4
|
+
* - homeAccountId - Home account identifier for this account object
|
|
5
|
+
* - environment - Entity which issued the token represented by the domain of the issuer (e.g. login.microsoftonline.com)
|
|
6
|
+
* - tenantId - Full tenant or organizational id that this account belongs to
|
|
7
|
+
* - username - preferred_username claim of the id_token that represents this account
|
|
8
|
+
* - localAccountId - Local, tenant-specific account identifer for this account object, usually used in legacy cases
|
|
9
|
+
* - name - Full name for the account, including given name and family name
|
|
10
|
+
* - idToken - raw ID token
|
|
11
|
+
* - idTokenClaims - Object contains claims from ID token
|
|
12
|
+
* - nativeAccountId - The user's native account ID
|
|
13
|
+
* - tenantProfiles - Map of tenant profile objects for each tenant that the account has authenticated with in the browser
|
|
14
|
+
*/
|
|
15
|
+
export type AccountInfo = {
|
|
16
|
+
homeAccountId: string;
|
|
17
|
+
environment: string;
|
|
18
|
+
tenantId: string;
|
|
19
|
+
username: string;
|
|
20
|
+
localAccountId: string;
|
|
21
|
+
name?: string;
|
|
22
|
+
idToken?: string;
|
|
23
|
+
idTokenClaims?: TokenClaims & {
|
|
24
|
+
[key: string]: string | number | string[] | object | undefined | unknown;
|
|
25
|
+
};
|
|
26
|
+
nativeAccountId?: string;
|
|
27
|
+
authorityType?: string;
|
|
28
|
+
tenantProfiles?: Map<string, TenantProfile>;
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* Account details that vary across tenants for the same user
|
|
32
|
+
*/
|
|
33
|
+
export type TenantProfile = Pick<AccountInfo, "tenantId" | "localAccountId" | "name"> & {
|
|
34
|
+
/**
|
|
35
|
+
* - isHomeTenant - True if this is the home tenant profile of the account, false if it's a guest tenant profile
|
|
36
|
+
*/
|
|
37
|
+
isHomeTenant?: boolean;
|
|
38
|
+
};
|
|
39
|
+
export type ActiveAccountFilters = {
|
|
40
|
+
homeAccountId: string;
|
|
41
|
+
localAccountId: string;
|
|
42
|
+
tenantId?: string;
|
|
43
|
+
};
|
|
44
|
+
/**
|
|
45
|
+
* Returns true if tenantId matches the utid portion of homeAccountId
|
|
46
|
+
* @param tenantId
|
|
47
|
+
* @param homeAccountId
|
|
48
|
+
* @returns
|
|
49
|
+
*/
|
|
50
|
+
export declare function tenantIdMatchesHomeTenant(tenantId?: string, homeAccountId?: string): boolean;
|
|
51
|
+
/**
|
|
52
|
+
* Build tenant profile
|
|
53
|
+
* @param homeAccountId - Home account identifier for this account object
|
|
54
|
+
* @param localAccountId - Local account identifer for this account object
|
|
55
|
+
* @param tenantId - Full tenant or organizational id that this account belongs to
|
|
56
|
+
* @param idTokenClaims - Claims from the ID token
|
|
57
|
+
* @returns
|
|
58
|
+
*/
|
|
59
|
+
export declare function buildTenantProfile(homeAccountId: string, localAccountId: string, tenantId: string, idTokenClaims?: TokenClaims): TenantProfile;
|
|
60
|
+
/**
|
|
61
|
+
* Replaces account info that varies by tenant profile sourced from the ID token claims passed in with the tenant-specific account info
|
|
62
|
+
* @param baseAccountInfo
|
|
63
|
+
* @param idTokenClaims
|
|
64
|
+
* @returns
|
|
65
|
+
*/
|
|
66
|
+
export declare function updateAccountTenantProfileData(baseAccountInfo: AccountInfo, tenantProfile?: TenantProfile, idTokenClaims?: TokenClaims, idTokenSecret?: string): AccountInfo;
|
|
67
|
+
//# sourceMappingURL=AccountInfo.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AccountInfo.d.ts","sourceRoot":"","sources":["../../../src/account/AccountInfo.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C;;;;;;;;;;;;GAYG;AACH,MAAM,MAAM,WAAW,GAAG;IACtB,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,cAAc,EAAE,MAAM,CAAC;IACvB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,aAAa,CAAC,EAAE,WAAW,GAAG;QAC1B,CAAC,GAAG,EAAE,MAAM,GACN,MAAM,GACN,MAAM,GACN,MAAM,EAAE,GACR,MAAM,GACN,SAAS,GACT,OAAO,CAAC;KACjB,CAAC;IACF,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,cAAc,CAAC,EAAE,GAAG,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC;CAC/C,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,IAAI,CAC5B,WAAW,EACX,UAAU,GAAG,gBAAgB,GAAG,MAAM,CACzC,GAAG;IACA;;OAEG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;CAC1B,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG;IAC/B,aAAa,EAAE,MAAM,CAAC;IACtB,cAAc,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF;;;;;GAKG;AACH,wBAAgB,yBAAyB,CACrC,QAAQ,CAAC,EAAE,MAAM,EACjB,aAAa,CAAC,EAAE,MAAM,GACvB,OAAO,CAMT;AAED;;;;;;;GAOG;AACH,wBAAgB,kBAAkB,CAC9B,aAAa,EAAE,MAAM,EACrB,cAAc,EAAE,MAAM,EACtB,QAAQ,EAAE,MAAM,EAChB,aAAa,CAAC,EAAE,WAAW,GAC5B,aAAa,CAyBf;AAED;;;;;GAKG;AACH,wBAAgB,8BAA8B,CAC1C,eAAe,EAAE,WAAW,EAC5B,aAAa,CAAC,EAAE,aAAa,EAC7B,aAAa,CAAC,EAAE,WAAW,EAC3B,aAAa,CAAC,EAAE,MAAM,GACvB,WAAW,CAgCb"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { TokenClaims } from "./TokenClaims.js";
|
|
2
|
+
/**
|
|
3
|
+
* Extract token by decoding the rawToken
|
|
4
|
+
*
|
|
5
|
+
* @param encodedToken
|
|
6
|
+
*/
|
|
7
|
+
export declare function extractTokenClaims(encodedToken: string, base64Decode: (input: string) => string): TokenClaims;
|
|
8
|
+
/**
|
|
9
|
+
* decode a JWT
|
|
10
|
+
*
|
|
11
|
+
* @param authToken
|
|
12
|
+
*/
|
|
13
|
+
export declare function getJWSPayload(authToken: string): string;
|
|
14
|
+
/**
|
|
15
|
+
* Determine if the token's max_age has transpired
|
|
16
|
+
*/
|
|
17
|
+
export declare function checkMaxAge(authTime: number, maxAge: number): void;
|
|
18
|
+
//# sourceMappingURL=AuthToken.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AuthToken.d.ts","sourceRoot":"","sources":["../../../src/account/AuthToken.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAM/C;;;;GAIG;AACH,wBAAgB,kBAAkB,CAC9B,YAAY,EAAE,MAAM,EACpB,YAAY,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,GACxC,WAAW,CAWb;AAED;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAkBvD;AAED;;GAEG;AACH,wBAAgB,WAAW,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,IAAI,CAUlE"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export type CcsCredential = {
|
|
2
|
+
credential: string;
|
|
3
|
+
type: CcsCredentialType;
|
|
4
|
+
};
|
|
5
|
+
export declare const CcsCredentialType: {
|
|
6
|
+
readonly HOME_ACCOUNT_ID: "home_account_id";
|
|
7
|
+
readonly UPN: "UPN";
|
|
8
|
+
};
|
|
9
|
+
export type CcsCredentialType = (typeof CcsCredentialType)[keyof typeof CcsCredentialType];
|
|
10
|
+
//# sourceMappingURL=CcsCredential.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CcsCredential.d.ts","sourceRoot":"","sources":["../../../src/account/CcsCredential.ts"],"names":[],"mappings":"AAKA,MAAM,MAAM,aAAa,GAAG;IACxB,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,iBAAiB,CAAC;CAC3B,CAAC;AAEF,eAAO,MAAM,iBAAiB;;;CAGpB,CAAC;AACX,MAAM,MAAM,iBAAiB,GACzB,CAAC,OAAO,iBAAiB,CAAC,CAAC,MAAM,OAAO,iBAAiB,CAAC,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export type ClientAssertionConfig = {
|
|
2
|
+
clientId: string;
|
|
3
|
+
tokenEndpoint?: string;
|
|
4
|
+
};
|
|
5
|
+
export type ClientAssertionCallback = (config: ClientAssertionConfig) => Promise<string>;
|
|
6
|
+
/**
|
|
7
|
+
* Client Assertion credential for Confidential Clients
|
|
8
|
+
*/
|
|
9
|
+
export type ClientAssertion = {
|
|
10
|
+
assertion: string | ClientAssertionCallback;
|
|
11
|
+
assertionType: string;
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* Client Credentials set for Confidential Clients
|
|
15
|
+
*/
|
|
16
|
+
export type ClientCredentials = {
|
|
17
|
+
clientSecret?: string;
|
|
18
|
+
clientAssertion?: ClientAssertion;
|
|
19
|
+
};
|
|
20
|
+
//# sourceMappingURL=ClientCredentials.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ClientCredentials.d.ts","sourceRoot":"","sources":["../../../src/account/ClientCredentials.ts"],"names":[],"mappings":"AAKA,MAAM,MAAM,qBAAqB,GAAG;IAChC,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,CAAC,EAAE,MAAM,CAAC;CAC1B,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG,CAClC,MAAM,EAAE,qBAAqB,KAC5B,OAAO,CAAC,MAAM,CAAC,CAAC;AAErB;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG;IAC1B,SAAS,EAAE,MAAM,GAAG,uBAAuB,CAAC;IAC5C,aAAa,EAAE,MAAM,CAAC;CACzB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC5B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,eAAe,CAAC,EAAE,eAAe,CAAC;CACrC,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Client info object which consists of two IDs. Need to add more info here.
|
|
3
|
+
*/
|
|
4
|
+
export type ClientInfo = {
|
|
5
|
+
uid: string;
|
|
6
|
+
utid: string;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Function to build a client info object from server clientInfo string
|
|
10
|
+
* @param rawClientInfo
|
|
11
|
+
* @param crypto
|
|
12
|
+
*/
|
|
13
|
+
export declare function buildClientInfo(rawClientInfo: string, base64Decode: (input: string) => string): ClientInfo;
|
|
14
|
+
/**
|
|
15
|
+
* Function to build a client info object from cached homeAccountId string
|
|
16
|
+
* @param homeAccountId
|
|
17
|
+
*/
|
|
18
|
+
export declare function buildClientInfoFromHomeAccountId(homeAccountId: string): ClientInfo;
|
|
19
|
+
//# sourceMappingURL=ClientInfo.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ClientInfo.d.ts","sourceRoot":"","sources":["../../../src/account/ClientInfo.ts"],"names":[],"mappings":"AAWA;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG;IACrB,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF;;;;GAIG;AACH,wBAAgB,eAAe,CAC3B,aAAa,EAAE,MAAM,EACrB,YAAY,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,GACxC,UAAU,CAaZ;AAED;;;GAGG;AACH,wBAAgB,gCAAgC,CAC5C,aAAa,EAAE,MAAM,GACtB,UAAU,CAiBZ"}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Type which describes Id Token claims known by MSAL.
|
|
3
|
+
*/
|
|
4
|
+
export type TokenClaims = {
|
|
5
|
+
/**
|
|
6
|
+
* Audience
|
|
7
|
+
*/
|
|
8
|
+
aud?: string;
|
|
9
|
+
/**
|
|
10
|
+
* Issuer
|
|
11
|
+
*/
|
|
12
|
+
iss?: string;
|
|
13
|
+
/**
|
|
14
|
+
* Issued at
|
|
15
|
+
*/
|
|
16
|
+
iat?: number;
|
|
17
|
+
/**
|
|
18
|
+
* Not valid before
|
|
19
|
+
*/
|
|
20
|
+
nbf?: number;
|
|
21
|
+
/**
|
|
22
|
+
* Immutable object identifier, this ID uniquely identifies the user across applications
|
|
23
|
+
*/
|
|
24
|
+
oid?: string;
|
|
25
|
+
/**
|
|
26
|
+
* Immutable subject identifier, this is a pairwise identifier - it is unique to a particular application ID
|
|
27
|
+
*/
|
|
28
|
+
sub?: string;
|
|
29
|
+
/**
|
|
30
|
+
* Users' tenant or '9188040d-6c67-4c5b-b112-36a304b66dad' for personal accounts.
|
|
31
|
+
*/
|
|
32
|
+
tid?: string;
|
|
33
|
+
/**
|
|
34
|
+
* Trusted Framework Policy (B2C) The name of the policy that was used to acquire the ID token.
|
|
35
|
+
*/
|
|
36
|
+
tfp?: string;
|
|
37
|
+
/**
|
|
38
|
+
* Authentication Context Class Reference (B2C) Used only with older policies.
|
|
39
|
+
*/
|
|
40
|
+
acr?: string;
|
|
41
|
+
ver?: string;
|
|
42
|
+
upn?: string;
|
|
43
|
+
preferred_username?: string;
|
|
44
|
+
login_hint?: string;
|
|
45
|
+
emails?: string[];
|
|
46
|
+
name?: string;
|
|
47
|
+
nonce?: string;
|
|
48
|
+
/**
|
|
49
|
+
* Expiration
|
|
50
|
+
*/
|
|
51
|
+
exp?: number;
|
|
52
|
+
home_oid?: string;
|
|
53
|
+
sid?: string;
|
|
54
|
+
cloud_instance_host_name?: string;
|
|
55
|
+
cnf?: {
|
|
56
|
+
kid: string;
|
|
57
|
+
};
|
|
58
|
+
x5c_ca?: string[];
|
|
59
|
+
ts?: number;
|
|
60
|
+
at?: string;
|
|
61
|
+
u?: string;
|
|
62
|
+
p?: string;
|
|
63
|
+
m?: string;
|
|
64
|
+
roles?: string[];
|
|
65
|
+
amr?: string[];
|
|
66
|
+
idp?: string;
|
|
67
|
+
auth_time?: number;
|
|
68
|
+
/**
|
|
69
|
+
* Region of the resource tenant
|
|
70
|
+
*/
|
|
71
|
+
tenant_region_scope?: string;
|
|
72
|
+
tenant_region_sub_scope?: string;
|
|
73
|
+
};
|
|
74
|
+
/**
|
|
75
|
+
* Gets tenantId from available ID token claims to set as credential realm with the following precedence:
|
|
76
|
+
* 1. tid - if the token is acquired from an Azure AD tenant tid will be present
|
|
77
|
+
* 2. tfp - if the token is acquired from a modern B2C tenant tfp should be present
|
|
78
|
+
* 3. acr - if the token is acquired from a legacy B2C tenant acr should be present
|
|
79
|
+
* Downcased to match the realm case-insensitive comparison requirements
|
|
80
|
+
* @param idTokenClaims
|
|
81
|
+
* @returns
|
|
82
|
+
*/
|
|
83
|
+
export declare function getTenantIdFromIdTokenClaims(idTokenClaims?: TokenClaims): string | null;
|
|
84
|
+
//# sourceMappingURL=TokenClaims.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TokenClaims.d.ts","sourceRoot":"","sources":["../../../src/account/TokenClaims.ts"],"names":[],"mappings":"AAKA;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG;IACtB;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAClC,GAAG,CAAC,EAAE;QACF,GAAG,EAAE,MAAM,CAAC;KACf,CAAC;IACF,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IACjB,GAAG,CAAC,EAAE,MAAM,EAAE,CAAC;IACf,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,uBAAuB,CAAC,EAAE,MAAM,CAAC;CACpC,CAAC;AAEF;;;;;;;;GAQG;AACH,wBAAgB,4BAA4B,CACxC,aAAa,CAAC,EAAE,WAAW,GAC5B,MAAM,GAAG,IAAI,CAOf"}
|