UNPKG

@azure/identity

Version:

Provides credential implementations for Azure SDK libraries that can authenticate with Microsoft Entra ID

23 lines 951 B
// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. import { credentialLogger, formatError } from "../util/logging.js"; const BrowserNotSupportedError = new Error("ClientCertificateCredential is not supported in the browser."); const logger = credentialLogger("ClientCertificateCredential"); /** * Enables authentication to Microsoft Entra ID using a PEM-encoded * certificate that is assigned to an App Registration. */ export class ClientCertificateCredential { /** * Only available in Node.js */ constructor(_tenantId, _clientId, _certificatePathOrConfiguration, _options) { logger.info(formatError("", BrowserNotSupportedError)); throw BrowserNotSupportedError; } getToken(_scopes, _options) { logger.getToken.info(formatError("", BrowserNotSupportedError)); throw BrowserNotSupportedError; } } //# sourceMappingURL=clientCertificateCredential-browser.mjs.map