import { t } from "@lingui/macro"; import { html, TemplateResult } from "lit"; import { customElement } from "lit/decorators"; import { CertificateGenerationRequest, CertificateKeyPair, CryptoApi } from "@goauthentik/api"; import { DEFAULT_CONFIG } from "../../api/Config"; import { Form } from "../../elements/forms/Form"; import "../../elements/forms/HorizontalFormElement"; @customElement("ak-crypto-certificate-generate-form") export class CertificateKeyPairForm extends Form { getSuccessMessage(): string { return t`Successfully generated certificate-key pair.`; } send = (data: CertificateGenerationRequest): Promise => { return new CryptoApi(DEFAULT_CONFIG).cryptoCertificatekeypairsGenerateCreate({ certificateGenerationRequest: data, }); }; renderForm(): TemplateResult { return html` ${t`Optional, comma-separated SubjectAlt Names.`} `; } }
${t`Optional, comma-separated SubjectAlt Names.`}