From 6e514a90641c90e3717ac75ea6d5e2a55c861d0c Mon Sep 17 00:00:00 2001 From: Aarnav Tale Date: Sat, 1 Mar 2025 10:29:30 -0500 Subject: [PATCH] fix: handle oidc scope types correctly --- app/utils/config/parser.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/utils/config/parser.ts b/app/utils/config/parser.ts index 7a057d0..85964bf 100644 --- a/app/utils/config/parser.ts +++ b/app/utils/config/parser.ts @@ -105,8 +105,8 @@ const headscaleConfig = type({ magic_dns: goBool.default(true), base_domain: 'string = "headscale.net"', nameservers: type({ - global: 'string[]', - split: 'Record', + 'global?': 'string[]', + 'split?': 'Record', }).default(() => ({ global: [], split: {} })), search_domains: type('string[]').default(() => []), extra_records: type({ @@ -129,7 +129,7 @@ const headscaleConfig = type({ client_secret_path: 'string?', expiry: goDuration.default('180d'), use_expiry_from_token: goBool.default(false), - scope: 'string = "profile email"', + scope: type('string[]').default(() => ['openid', 'email', 'profile']), extra_params: 'Record?', allowed_domains: 'string[]?', allowed_groups: 'string[]?',