diff --git a/dashboard/src/components/forms/client-form.tsx b/dashboard/src/components/forms/client-form.tsx index 88a34b7..054023e 100644 --- a/dashboard/src/components/forms/client-form.tsx +++ b/dashboard/src/components/forms/client-form.tsx @@ -302,8 +302,42 @@ export function CreateClientForm({ action }: CreateClientFormProps) { Configure allowed grant types and response types for this OAuth2 Client. - - + + ( + + Grant types + + {/* TODO: add multiselect component */} + + + + + )} + /> + ( + + Response types + + {/* TODO: add multiselect component */} + + + + + )} + /> + + Access token type + + + + + diff --git a/dashboard/src/lib/forms/client-form.ts b/dashboard/src/lib/forms/client-form.ts index b60b862..5e9b1bc 100644 --- a/dashboard/src/lib/forms/client-form.ts +++ b/dashboard/src/lib/forms/client-form.ts @@ -10,4 +10,7 @@ export const clientFormSchema = z.object({ tos_uri: z.string().url(), policy_uri: z.string().url(), owner: z.string().min(1, 'Owner is required'), + grant_types: z.array(z.string()), + response_types: z.array(z.string()), + token_endpoint_auth_method: z.string(), });