mirror of
https://github.com/pocket-id/pocket-id.git
synced 2026-02-14 16:27:29 +00:00
fix: make pkce requirement visible in the oidc form if client is public
This commit is contained in:
@@ -200,12 +200,18 @@
|
|||||||
id="public-client"
|
id="public-client"
|
||||||
label={m.public_client()}
|
label={m.public_client()}
|
||||||
description={m.public_clients_description()}
|
description={m.public_clients_description()}
|
||||||
|
onCheckedChange={(v) => {
|
||||||
|
if (v) {
|
||||||
|
$inputs.pkceEnabled.value = true;
|
||||||
|
}
|
||||||
|
}}
|
||||||
bind:checked={$inputs.isPublic.value}
|
bind:checked={$inputs.isPublic.value}
|
||||||
/>
|
/>
|
||||||
<SwitchWithLabel
|
<SwitchWithLabel
|
||||||
id="pkce"
|
id="pkce"
|
||||||
label={m.pkce()}
|
label={m.pkce()}
|
||||||
description={m.public_key_code_exchange_is_a_security_feature_to_prevent_csrf_and_authorization_code_interception_attacks()}
|
description={m.public_key_code_exchange_is_a_security_feature_to_prevent_csrf_and_authorization_code_interception_attacks()}
|
||||||
|
disabled={$inputs.isPublic.value}
|
||||||
bind:checked={$inputs.pkceEnabled.value}
|
bind:checked={$inputs.pkceEnabled.value}
|
||||||
/>
|
/>
|
||||||
<SwitchWithLabel
|
<SwitchWithLabel
|
||||||
|
|||||||
Reference in New Issue
Block a user