Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 20 additions & 12 deletions web/components/Client/AddUpdate.vue
Original file line number Diff line number Diff line change
Expand Up @@ -27,18 +27,6 @@
required
></b-form-input>
</b-form-group>
<b-form-group
v-if="type === 'Add'"
label="Client Secret:"
label-for="client_secret"
>
<b-form-input
id="client_secret"
v-model="form.client_secret"
minlength="6"
required
></b-form-input>
</b-form-group>
<b-form-group label="Token Endpoint Auth method">
<b-form-select
v-model="form.token_endpoint_auth_method"
Expand All @@ -49,9 +37,29 @@
value: 'private_key_jwt',
text: 'private_key_jwt',
},
{
value: 'none',
text: 'none',
},
]"
></b-form-select>
</b-form-group>
<b-form-group
v-if="
type === 'Add' &&
form.token_endpoint_auth_method &&
form.token_endpoint_auth_method !== 'none'
"
label="Client Secret:"
label-for="client_secret"
>
<b-form-input
id="client_secret"
v-model="form.client_secret"
minlength="6"
:required="form.token_endpoint_auth_method !== 'none'"
></b-form-input>
</b-form-group>
<b-form-group
v-if="form.token_endpoint_auth_method === 'private_key_jwt'"
label="Jwks:"
Expand Down