All posts

CortenDesk 0.9.1 fixes MariaDB migrations and SSO

CortenDesk 0.9.1 fixes MariaDB migration failures from 0.9.0 and SSO providers that omit email_verified.

A repaired server and database sit on a workbench with a key beside them.
MariaDB and SSO0.9.1

0.9.1 fixes two problems reported against 0.9.0. If you run MariaDB, upgrading is recommended.

MariaDB migrations now complete

0.9.0 could fail during install or upgrade on MariaDB, and on any MySQL server left at explicit_defaults_for_timestamp=0.

The failure stopped the migration with:

SQLSTATE[42000]: 1067 Invalid default value for 'expires_at'

On those servers, a NOT NULL TIMESTAMP with no default can get an implicit 0000-00-00 00:00:00, which Laravel strict mode rejects. Four tables were affected.

SSO accepts providers without email_verified

Single sign-on no longer refuses users only because the provider omits the email_verified claim.

That claim is optional in OpenID Connect, and some providers, including Microsoft Entra ID, do not send it. CortenDesk now treats an absent claim differently from an explicit unverified result:

  • absent claim: trusted
  • explicit not verified: refused

Settings → SSO also adds a switch to require the claim for providers that let people choose their own address.

Updating

If 0.9.0 already failed during migration, upgrade and run:

php artisan migrate

The Docker image runs this on start. The failed migration did not create anything, so there is nothing to repair by hand.

No configuration changes are needed. Everything added in 0.9.0 still defaults to off.

Pull one of these image tags:

docker pull marcpope/cortendesk:0.9.1
docker pull ghcr.io/marcpope/cortendesk:0.9.1

Read the full release notes.