1
0
Fork 0
mirror of https://codeberg.org/MarkusThielker/next-ory.git synced 2025-04-10 11:58:41 +00:00

NORY-46: add temporary form items for OAuth2 flows

This commit is contained in:
Markus Thielker 2025-02-19 00:26:40 +01:00
parent ce28973dea
commit b5bd353f43
2 changed files with 39 additions and 2 deletions

View file

@ -302,8 +302,42 @@ export function CreateClientForm({ action }: CreateClientFormProps) {
Configure allowed grant types and response types for this OAuth2 Client.
</CardDescription>
</CardHeader>
<CardContent>
<CardContent className="space-y-4">
<FormField
control={form.control}
name="grant_types"
render={({ field }) => (
<FormItem>
<FormLabel>Grant types</FormLabel>
<FormControl>
{/* TODO: add multiselect component */}
<Input value="TODO: add multiselect component" readOnly disabled/>
</FormControl>
<FormMessage/>
</FormItem>
)}
/>
<FormField
control={form.control}
name="response_types"
render={({ field }) => (
<FormItem>
<FormLabel>Response types</FormLabel>
<FormControl>
{/* TODO: add multiselect component */}
<Input value="TODO: add multiselect component" readOnly disabled/>
</FormControl>
<FormMessage/>
</FormItem>
)}
/>
<FormItem>
<FormLabel>Access token type</FormLabel>
<FormControl>
<Input value="opaque" readOnly disabled/>
</FormControl>
<FormMessage/>
</FormItem>
</CardContent>
</Card>

View file

@ -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(),
});