CortenDesk 0.9.2 fixes SSO and trusted proxies
CortenDesk 0.9.2 fixes SSO for providers that send email_verified false and makes TRUSTED_PROXIES work with cached config.
CortenDesk 0.9.2 fixes two user-reported issues: one in single sign-on, and one in trusted proxy handling when config is cached.
SSO no longer refuses false email verification claims
Some providers do not assert email verification. CortenDesk 0.9.1 handled providers that omit the email_verified claim, but providers that send email_verified: false for every user were still refused.
That claim is no longer used to refuse a sign-in. There is nothing to configure. Upgrade and it works.
If you want the earlier strict behaviour, turn on Settings → SSO switch Require the provider to assert email verification. It is off by default. Turn it on only if you federate with a provider whose users can choose their own email address.
Accounts are matched on the provider's stable user id, iss plus sub. An email address is used only for the first link. After that, it does not decide account access. The email-domain allowlist and the new-user policy still apply.
TRUSTED_PROXIES works with cached config
TRUSTED_PROXIES was silently ignored when config was cached. The Docker image and most deployments run php artisan config:cache, so the value did not apply and the built-in private-range default stayed in use.
If your reverse proxy reaches CortenDesk from a public address, such as Cloudflare or an external load balancer, this could make HTTPS go undetected, generate non-HTTPS asset URLs, and cause sign-in loops.
The proxy list now lives in config/trustedproxy.php and survives config caching.
Reported and diagnosed by @AJV20.
Updating
No configuration changes are needed. No migrations are added.
If you are still on 0.9.0, this release includes the MariaDB migration fix from 0.9.1.
docker pull marcpope/cortendesk:0.9.2
docker pull ghcr.io/marcpope/cortendesk:0.9.2
Full details are in the CortenDesk 0.9.2 release notes.