feat: support gravatar profile pictures for oidc

This commit is contained in:
Aarnav Tale
2025-08-21 12:16:11 -04:00
parent 9183f805a6
commit 4351e1fcb3
5 changed files with 51 additions and 3 deletions
+2
View File
@@ -63,6 +63,7 @@ const oidcConfig = type({
disable_api_key_login: stringToBool,
headscale_api_key: 'string?',
headscale_api_key_path: 'string?',
profile_picture_source: '"oidc" | "gravatar" = "oidc"',
strict_validation: stringToBool.default(true),
})
.narrow((obj: Record<string, unknown>, ctx: any) => {
@@ -94,6 +95,7 @@ const partialOidcConfig = type({
disable_api_key_login: stringToBool.optional(),
headscale_api_key: 'string?',
headscale_api_key_path: 'string?',
profile_picture_source: '("oidc" | "gravatar")?',
strict_validation: stringToBool.default(true),
});