mirror of
https://github.com/tale/headplane.git
synced 2026-08-28 16:07:07 +00:00
fix: handle oidc scope types correctly
This commit is contained in:
@@ -105,8 +105,8 @@ const headscaleConfig = type({
|
|||||||
magic_dns: goBool.default(true),
|
magic_dns: goBool.default(true),
|
||||||
base_domain: 'string = "headscale.net"',
|
base_domain: 'string = "headscale.net"',
|
||||||
nameservers: type({
|
nameservers: type({
|
||||||
global: 'string[]',
|
'global?': 'string[]',
|
||||||
split: 'Record<string, string[]>',
|
'split?': 'Record<string, string[]>',
|
||||||
}).default(() => ({ global: [], split: {} })),
|
}).default(() => ({ global: [], split: {} })),
|
||||||
search_domains: type('string[]').default(() => []),
|
search_domains: type('string[]').default(() => []),
|
||||||
extra_records: type({
|
extra_records: type({
|
||||||
@@ -129,7 +129,7 @@ const headscaleConfig = type({
|
|||||||
client_secret_path: 'string?',
|
client_secret_path: 'string?',
|
||||||
expiry: goDuration.default('180d'),
|
expiry: goDuration.default('180d'),
|
||||||
use_expiry_from_token: goBool.default(false),
|
use_expiry_from_token: goBool.default(false),
|
||||||
scope: 'string = "profile email"',
|
scope: type('string[]').default(() => ['openid', 'email', 'profile']),
|
||||||
extra_params: 'Record<string, string>?',
|
extra_params: 'Record<string, string>?',
|
||||||
allowed_domains: 'string[]?',
|
allowed_domains: 'string[]?',
|
||||||
allowed_groups: 'string[]?',
|
allowed_groups: 'string[]?',
|
||||||
|
|||||||
Reference in New Issue
Block a user