From 25ac04f4e5dce318de99430455c0f551872b7ccd Mon Sep 17 00:00:00 2001 From: Ken Sternberg <133134217+kensternberg-authentik@users.noreply.github.com> Date: Tue, 5 Sep 2023 15:37:49 -0700 Subject: [PATCH] web/admin: fix not being able to unset certificates (#6767) * web: fix 6742: empty web certificate request needs to return null, not undefined This replaces the `undefined` setting of the certificate search wrapper to `null` when the admin requests no certificate. * only set singleton if we don't have an instance Signed-off-by: Jens Langhammer --------- Signed-off-by: Jens Langhammer Co-authored-by: Jens Langhammer --- web/src/admin/common/ak-crypto-certificate-search.ts | 2 +- web/src/admin/providers/oauth2/OAuth2ProviderForm.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/web/src/admin/common/ak-crypto-certificate-search.ts b/web/src/admin/common/ak-crypto-certificate-search.ts index 15fe347c2..3d913a13a 100644 --- a/web/src/admin/common/ak-crypto-certificate-search.ts +++ b/web/src/admin/common/ak-crypto-certificate-search.ts @@ -69,7 +69,7 @@ export class AkCryptoCertificateSearch extends CustomListenerElement(AKElement) } get value() { - return this.selectedKeypair ? renderValue(this.selectedKeypair) : undefined; + return this.selectedKeypair ? renderValue(this.selectedKeypair) : null; } connectedCallback() { diff --git a/web/src/admin/providers/oauth2/OAuth2ProviderForm.ts b/web/src/admin/providers/oauth2/OAuth2ProviderForm.ts index 1a335846d..b1e07c352 100644 --- a/web/src/admin/providers/oauth2/OAuth2ProviderForm.ts +++ b/web/src/admin/providers/oauth2/OAuth2ProviderForm.ts @@ -205,8 +205,8 @@ ${this.instance?.redirectUris}

${msg("Key used to sign the tokens.")}