From 734a768a3209cfbc2c977048ad893cb3d2aef90e Mon Sep 17 00:00:00 2001 From: nick-funk Date: Thu, 28 Nov 2024 09:50:21 -0700 Subject: [PATCH] set optional flags on OIDC schema - already set in the existing optional fork --- server/src/core/server/services/oidc/oidc.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/server/src/core/server/services/oidc/oidc.ts b/server/src/core/server/services/oidc/oidc.ts index d4a99f1001..51e20d9a7d 100644 --- a/server/src/core/server/services/oidc/oidc.ts +++ b/server/src/core/server/services/oidc/oidc.ts @@ -50,10 +50,10 @@ export const OIDCIDTokenSchema = Joi.object() exp: Joi.number().required(), email: Joi.string().lowercase().email(), email_verified: Joi.boolean().default(false), - picture: Joi.string(), - name: Joi.string(), - nickname: Joi.string(), - preferred_username: Joi.string(), + picture: Joi.string().optional(), + name: Joi.string().optional(), + nickname: Joi.string().optional(), + preferred_username: Joi.string().optional(), nonce: Joi.string(), }) .fork(