mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 20:38:52 +00:00
> [!NOTE] > **This is a reopened (already approved) PR** > Needed to reopen https://github.com/toeverything/AFFiNE/pull/13011 because commit email was wrong and I could not sign the CLA Make Office365 / Azure login possible by making preferred_username optional. This is NOT send in the token of MS. To make this work you ALSO need to set the oidc.config.args.id to "email" (there preferred_username is used as default) Source: https://github.com/toeverything/AFFiNE/blob/canary/packages/backend/server/src/plugins/oauth/providers/oidc.ts#L152 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Bug Fixes** * Improved compatibility with OIDC providers by allowing the preferred username field to be optional during user info validation. <!-- end of auto-generated comment: release notes by coderabbit.ai -->