1
0
Fork 0
mirror of https://codeberg.org/MarkusThielker/next-ory.git synced 2025-07-03 21:39:18 +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>