diff --git a/server/src/core/server/app/middleware/passport/strategies/verifiers/sso.ts b/server/src/core/server/app/middleware/passport/strategies/verifiers/sso.ts index e6d396943b..094991179a 100644 --- a/server/src/core/server/app/middleware/passport/strategies/verifiers/sso.ts +++ b/server/src/core/server/app/middleware/passport/strategies/verifiers/sso.ts @@ -201,6 +201,7 @@ export async function findOrCreateSSOUser( // not affected by this update feature. role: role || user.role, avatar, + ssoURL: url, }, lastIssuedAt ); diff --git a/server/src/core/server/models/user/user.ts b/server/src/core/server/models/user/user.ts index 801d5d6f13..e88cf1ac3b 100644 --- a/server/src/core/server/models/user/user.ts +++ b/server/src/core/server/models/user/user.ts @@ -1317,6 +1317,7 @@ export interface UpdateUserInput { badges?: string[]; role?: GQLUSER_ROLE; avatar?: string; + ssoURL?: string; } export async function updateUserFromSSO(