@bitmovin/api-sdk
Version:
Bitmovin JS/TS API SDK
23 lines (22 loc) • 828 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.AzureServicePrincipal = void 0;
const Mapper_1 = require("../common/Mapper");
/**
* Azure service principal credentials for Microsoft Entra ID authentication. This authentication method is usable from encoder version 2.273.0 onwards.
* @export
* @class AzureServicePrincipal
*/
class AzureServicePrincipal {
constructor(obj) {
if (!obj) {
return;
}
this.tenantId = (0, Mapper_1.map)(obj.tenantId);
this.clientId = (0, Mapper_1.map)(obj.clientId);
this.clientSecret = (0, Mapper_1.map)(obj.clientSecret);
this.clientCertificate = (0, Mapper_1.map)(obj.clientCertificate);
}
}
exports.AzureServicePrincipal = AzureServicePrincipal;
exports.default = AzureServicePrincipal;