mirror of
https://github.com/pocket-id/pocket-id.git
synced 2026-02-04 11:36:46 +00:00
feat: add issuer url to oidc client details list (#1197)
This commit is contained in:
@@ -498,5 +498,6 @@
|
|||||||
"scim_sync_successful": "The SCIM sync has been completed successfully.",
|
"scim_sync_successful": "The SCIM sync has been completed successfully.",
|
||||||
"save_and_sync": "Save and Sync",
|
"save_and_sync": "Save and Sync",
|
||||||
"scim_save_changes_description": "You have to save the changes before starting a SCIM sync. Do you want to save now?",
|
"scim_save_changes_description": "You have to save the changes before starting a SCIM sync. Do you want to save now?",
|
||||||
"scopes": "Scopes"
|
"scopes": "Scopes",
|
||||||
|
"issuer_url": "Issuer URL"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -38,6 +38,7 @@
|
|||||||
const backNavigation = backNavigate('/settings/admin/oidc-clients');
|
const backNavigation = backNavigate('/settings/admin/oidc-clients');
|
||||||
|
|
||||||
const setupDetails = $state({
|
const setupDetails = $state({
|
||||||
|
[m.issuer_url()]: `https://${page.url.host}`,
|
||||||
[m.authorization_url()]: `https://${page.url.host}/authorize`,
|
[m.authorization_url()]: `https://${page.url.host}/authorize`,
|
||||||
[m.oidc_discovery_url()]: `https://${page.url.host}/.well-known/openid-configuration`,
|
[m.oidc_discovery_url()]: `https://${page.url.host}/.well-known/openid-configuration`,
|
||||||
[m.token_url()]: `https://${page.url.host}/api/oidc/token`,
|
[m.token_url()]: `https://${page.url.host}/api/oidc/token`,
|
||||||
@@ -207,14 +208,14 @@
|
|||||||
<Card.Content>
|
<Card.Content>
|
||||||
<div class="flex flex-col">
|
<div class="flex flex-col">
|
||||||
<div class="mb-2 flex flex-col sm:flex-row sm:items-center">
|
<div class="mb-2 flex flex-col sm:flex-row sm:items-center">
|
||||||
<Field.Label class="w-50">{m.client_id()}</Field.Label>
|
<Field.Label class="w-52">{m.client_id()}</Field.Label>
|
||||||
<CopyToClipboard value={client.id}>
|
<CopyToClipboard value={client.id}>
|
||||||
<span class="text-muted-foreground text-sm" data-testid="client-id"> {client.id}</span>
|
<span class="text-muted-foreground text-sm" data-testid="client-id"> {client.id}</span>
|
||||||
</CopyToClipboard>
|
</CopyToClipboard>
|
||||||
</div>
|
</div>
|
||||||
{#if !client.isPublic}
|
{#if !client.isPublic}
|
||||||
<div class="mt-1 mb-2 flex flex-col sm:flex-row sm:items-center">
|
<div class="mt-1 mb-2 flex flex-col sm:flex-row sm:items-center">
|
||||||
<Field.Label class="w-50">{m.client_secret()}</Field.Label>
|
<Field.Label class="w-52">{m.client_secret()}</Field.Label>
|
||||||
{#if $clientSecretStore}
|
{#if $clientSecretStore}
|
||||||
<CopyToClipboard value={$clientSecretStore}>
|
<CopyToClipboard value={$clientSecretStore}>
|
||||||
<span class="text-muted-foreground text-sm" data-testid="client-secret">
|
<span class="text-muted-foreground text-sm" data-testid="client-secret">
|
||||||
@@ -240,8 +241,8 @@
|
|||||||
{#if showAllDetails}
|
{#if showAllDetails}
|
||||||
<div transition:slide>
|
<div transition:slide>
|
||||||
{#each Object.entries(setupDetails) as [key, value]}
|
{#each Object.entries(setupDetails) as [key, value]}
|
||||||
<div class="mb-5 flex flex-col sm:flex-row sm:items-center">
|
<div class="mb-2 flex flex-col sm:flex-row sm:items-center">
|
||||||
<Field.Label class="w-50">{key}</Field.Label>
|
<Field.Label class="w-52">{key}</Field.Label>
|
||||||
<CopyToClipboard {value}>
|
<CopyToClipboard {value}>
|
||||||
<span class="text-muted-foreground text-sm">{value}</span>
|
<span class="text-muted-foreground text-sm">{value}</span>
|
||||||
</CopyToClipboard>
|
</CopyToClipboard>
|
||||||
|
|||||||
Reference in New Issue
Block a user