5
0
mirror of git://git.proxmox.com/git/pve-cluster.git synced 2025-03-12 20:58:25 +03:00

add 'allow-subdomains' to webauthn schema

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
Wolfgang Bumiller 2022-07-25 13:51:08 +02:00
parent f9eb3f1510
commit 3b0214b610

View File

@ -107,11 +107,17 @@ my $webauthn_format = {
id => {
type => 'string',
description =>
'Relying part ID. Must be the domain name without protocol, port or location.'
'Relying party ID. Must be the domain name without protocol, port or location.'
.' Changing this *will* break existing credentials.',
format_description => 'DOMAINNAME',
optional => 1,
},
'allow-subdomains' => {
type => 'boolean',
description => 'Whether to allow the origin to be a subdomain, rather than the exact URL.',
optional => 1,
default => 1,
},
};
PVE::JSONSchema::register_format('mac-prefix', \&pve_verify_mac_prefix);