I’m not 100% sure it works, but maybe this small hack can get it working again.
But you should only do this when absolutely necessary, since it breaks OAuth2 and some other things.
So don’t complain when those things don’t work then anymore.
And also I just tested and can confirm, that Lightning 5.4 works against Nextcloud 12 without this.
apps/dav/appinfo/v1/webdav.php
Replace:
$authPlugin->addBackend($bearerAuthPlugin);
with:
// FIXME I disabled this myself following https://help.nextcloud.com/t/nc12-authentication-issue-with-cardav-caldav-and-sogo-connector/12924 $authPlugin->addBackend($bearerAuthPlugin);
apps/dav/lib/Server.php
Replace:
$authPlugin->addBackend($bearerAuthBackend);
with:
// FIXME I disabled this myself following https://help.nextcloud.com/t/nc12-authentication-issue-with-cardav-caldav-and-sogo-connector/12924 $authPlugin->addBackend($bearerAuthBackend);