mirror of
https://github.com/nikdoof/pocket-id.git
synced 2025-12-14 07:12:19 +00:00
fix: allow copy to clipboard for client secret
This commit is contained in:
@@ -26,7 +26,7 @@
|
|||||||
'OIDC Discovery URL': `https://${$page.url.hostname}/.well-known/openid-configuration`,
|
'OIDC Discovery URL': `https://${$page.url.hostname}/.well-known/openid-configuration`,
|
||||||
'Token URL': `https://${$page.url.hostname}/api/oidc/token`,
|
'Token URL': `https://${$page.url.hostname}/api/oidc/token`,
|
||||||
'Userinfo URL': `https://${$page.url.hostname}/api/oidc/userinfo`,
|
'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) {
|
async function updateClient(updatedClient: OidcClientCreateWithLogo) {
|
||||||
@@ -95,10 +95,16 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="mb-2 mt-1 flex items-center">
|
<div class="mb-2 mt-1 flex items-center">
|
||||||
<Label class="w-44">Client secret</Label>
|
<Label class="w-44">Client secret</Label>
|
||||||
|
{#if $clientSecretStore}
|
||||||
|
<CopyToClipboard value={$clientSecretStore}>
|
||||||
|
<span class="text-muted-foreground text-sm" data-testid="client-secret">
|
||||||
|
{$clientSecretStore}
|
||||||
|
</span>
|
||||||
|
</CopyToClipboard>
|
||||||
|
{:else}
|
||||||
<span class="text-muted-foreground text-sm" data-testid="client-secret"
|
<span class="text-muted-foreground text-sm" data-testid="client-secret"
|
||||||
>{$clientSecretStore ?? '••••••••••••••••••••••••••••••••'}</span
|
>••••••••••••••••••••••••••••••••</span
|
||||||
>
|
>
|
||||||
{#if !$clientSecretStore}
|
|
||||||
<Button
|
<Button
|
||||||
class="ml-2"
|
class="ml-2"
|
||||||
onclick={createClientSecret}
|
onclick={createClientSecret}
|
||||||
|
|||||||
Reference in New Issue
Block a user