From 29748cc6c7b7e5a6b54bfe837e0b1a98fa1ad594 Mon Sep 17 00:00:00 2001 From: Elias Schneider Date: Sun, 13 Oct 2024 15:55:17 +0200 Subject: [PATCH] fix: allow copy to clipboard for client secret --- .../admin/oidc-clients/[id]/+page.svelte | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/frontend/src/routes/settings/admin/oidc-clients/[id]/+page.svelte b/frontend/src/routes/settings/admin/oidc-clients/[id]/+page.svelte index 040868f..1085fe0 100644 --- a/frontend/src/routes/settings/admin/oidc-clients/[id]/+page.svelte +++ b/frontend/src/routes/settings/admin/oidc-clients/[id]/+page.svelte @@ -26,7 +26,7 @@ 'OIDC Discovery URL': `https://${$page.url.hostname}/.well-known/openid-configuration`, 'Token URL': `https://${$page.url.hostname}/api/oidc/token`, 'Userinfo URL': `https://${$page.url.hostname}/api/oidc/userinfo`, - 'Certificate URL': `https://${$page.url.hostname}/.well-known/jwks.json`, + 'Certificate URL': `https://${$page.url.hostname}/.well-known/jwks.json` }; async function updateClient(updatedClient: OidcClientCreateWithLogo) { @@ -95,10 +95,16 @@
- {$clientSecretStore ?? '••••••••••••••••••••••••••••••••'} - {#if !$clientSecretStore} + {#if $clientSecretStore} + + + {$clientSecretStore} + + + {:else} + ••••••••••••••••••••••••••••••••