mirror of
https://codeberg.org/MarkusThielker/next-ory.git
synced 2025-04-18 00:21:18 +00:00
NORY-46: add temporary form items for OAuth2 flows
This commit is contained in:
parent
ce28973dea
commit
b5bd353f43
2 changed files with 39 additions and 2 deletions
|
@ -302,8 +302,42 @@ export function CreateClientForm({ action }: CreateClientFormProps) {
|
||||||
Configure allowed grant types and response types for this OAuth2 Client.
|
Configure allowed grant types and response types for this OAuth2 Client.
|
||||||
</CardDescription>
|
</CardDescription>
|
||||||
</CardHeader>
|
</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>
|
</CardContent>
|
||||||
</Card>
|
</Card>
|
||||||
|
|
||||||
|
|
|
@ -10,4 +10,7 @@ export const clientFormSchema = z.object({
|
||||||
tos_uri: z.string().url(),
|
tos_uri: z.string().url(),
|
||||||
policy_uri: z.string().url(),
|
policy_uri: z.string().url(),
|
||||||
owner: z.string().min(1, 'Owner is required'),
|
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(),
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Reference in a new issue