logto-io / logto

🧑‍🚀 The better identity infrastructure for developers and the open-source alternative to Auth0.
https://logto.io
Mozilla Public License 2.0
8.94k stars 446 forks source link

fix(core): fix enterprise SSO unknown field not synced issue #6763

Closed simeng-li closed 2 weeks ago

simeng-li commented 2 weeks ago

Summary

Fix enterprise SSO unknown field not syncing issue.

The SocialUserInfo guard filtered extended SSO user identity info. Replace the socialUserInfoGuard in the enterpriseSsoVerification data with extendedSocialUserInfoGuard. So we may keep all the unknown extended SSO identity info in file.

Testing

test locally.

image

Checklist

github-actions[bot] commented 2 weeks ago

COMPARE TO master

Total Size Diff :chart_with_upwards_trend: +2.76 KB

Diff by File |Name|Diff| |---|---| |packages/core/src/queries/user-sso-identities.ts|:chart_with_upwards_trend: +379 Bytes| |packages/core/src/routes/experience/classes/experience-interaction.ts|:chart_with_upwards_trend: +400 Bytes| |packages/core/src/routes/experience/classes/helpers.ts|:chart_with_upwards_trend: +252 Bytes| |packages/core/src/routes/experience/classes/libraries/provision-library.ts|:chart_with_upwards_trend: +29 Bytes| |packages/core/src/routes/experience/classes/verifications/enterprise-sso-verification.ts|:chart_with_upwards_trend: +31 Bytes| |packages/core/src/routes/experience/types.ts|:chart_with_upwards_trend: +317 Bytes| |packages/core/src/routes/interaction/utils/single-sign-on.ts|:chart_with_upwards_trend: +182 Bytes| |packages/core/src/utils/json.test.ts|:chart_with_upwards_trend: +750 Bytes| |packages/core/src/utils/json.ts|:chart_with_upwards_trend: +491 Bytes|