mirror of
https://github.com/wekan/wekan.git
synced 2026-11-24 09:59:47 -05:00
Apple has no userinfo endpoint and its access_token is opaque, and it requires response_mode=form_post for the name and email scopes. The OIDC login decoded the access token and sent no response mode. Now models/lib/oidcProviderMode.js decides, from the settings: Apple's address (or OAUTH2_CLAIMS_IN_ID_TOKEN=true) reads the claims from the ID token - also for a setup made from the old docs with OAUTH2_ADFS_ENABLED=true - and sends form_post (or OAUTH2_RESPONSE_MODE); every other provider is unchanged. tests/oidcProviderMode.test.cjs pins the decisions and the wiring. Thanks to xet7 !