mirror of
https://github.com/pocket-id/pocket-id.git
synced 2026-02-10 21:54:19 +00:00
chore: add docs link and rename to Federated Client Credentials (#636)
Co-authored-by: Elias Schneider <login@eliasschneider.com>
This commit is contained in:
committed by
GitHub
parent
f4af35f86b
commit
df5c1ed1f8
@@ -51,7 +51,7 @@
|
||||
}
|
||||
|
||||
function getFieldError(index: number, field: keyof OidcClientFederatedIdentity): string | null {
|
||||
console.log(federatedIdentities)
|
||||
console.log(federatedIdentities);
|
||||
if (!errors) return null;
|
||||
const path = [index, field];
|
||||
return errors?.filter((e) => e.path[0] == path[0] && e.path[1] == path[1])[0]?.message;
|
||||
@@ -59,7 +59,11 @@
|
||||
</script>
|
||||
|
||||
<div {...restProps}>
|
||||
<FormInput label={m.federated_identities()} description={m.federated_identities_description()}>
|
||||
<FormInput
|
||||
label={m.federated_client_credentials()}
|
||||
description={m.federated_client_credentials_description()}
|
||||
docsLink="https://pocket-id.org/docs/guides/oidc-client-authentication"
|
||||
>
|
||||
<div class="space-y-4">
|
||||
{#each federatedIdentities as identity, i}
|
||||
<div class="space-y-3 rounded-lg border p-4">
|
||||
@@ -142,7 +146,7 @@
|
||||
<Button class="mt-3" variant="secondary" size="sm" onclick={addFederatedIdentity} type="button">
|
||||
<LucidePlus class="mr-1 size-4" />
|
||||
{federatedIdentities.length === 0
|
||||
? m.add_federated_identity()
|
||||
: m.add_another_federated_identity()}
|
||||
? m.add_federated_client_credential()
|
||||
: m.add_another_federated_client_credential()}
|
||||
</Button>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user