NC 27.0.1 SSO / SAML with Authentik error

After upgrade to Nextcloud 27.0.1(docker image),
the SSO/SAML with user_saml again Authentik got errors when download the metadata

[index] Error: OneLogin\Saml2\Error: Invalid SP metadata: invalid_xml at <>

  1. /var/www/html/lib/private/AppFramework/Http/Dispatcher.php line 230
    OCA\User_SAML\Controller\SAMLController->getMetadata(1)
  2. /var/www/html/lib/private/AppFramework/Http/Dispatcher.php line 137
    OC\AppFramework\Http\Dispatcher->executeController(["OCA\User_SAML … "], “getMetadata”)
  3. /var/www/html/lib/private/AppFramework/App.php line 183
    OC\AppFramework\Http\Dispatcher->dispatch(["OCA\User_SAML … "], “getMetadata”)
  4. /var/www/html/lib/private/Route/Router.php line 315
    OC\AppFramework\App::main(“OCA\User_SAML\ … r”, “getMetadata”, ["OC\AppFramewo … "], [“user_saml.SAML.getMetadata”])
  5. /var/www/html/lib/base.php line 1071
    OC\Route\Router->match(“/apps/user_saml/saml/metadata”)
  6. /var/www/html/index.php line 36
    OC::handleRequest()

GET /apps/user_saml/saml/metadata
from 172.18.0.1 at 2023-07-21T13:35:33+00:00

I did verified the 27.0.0 Docker image with the same configuration works fine.

Some ore logs,

[PHP] Error: DOMDocument::schemaValidate(): Invalid Schema at /var/www/html/custom_apps/user_saml/3rdparty/vendor/onelogin/php-saml/src/Saml2/Utils.php#153

GET /apps/user_saml/saml/metadata
from 172.18.0.1 at 2023-07-21T13:35:33+00:00

Not sure if this is Nxetcloud side issue or user_saml side one?

I have the same error
Opened an issue here : SAML Authentication broken after upgrade to Nextcloud 27.0.1 · Issue #757 · nextcloud/user_saml · GitHub

Fix is on the way.

I used the patch generated from PR #754 mentioned above to fix my setup.