Nextcloud SSO XML meta-data export doesn't work

I tried to configure Nextcloud SSO using keycloak. I followed instructions here : Nextcloud SSO using Keycloak – Jörns Blog

But I get an error while dowloading meta-data XML file.

Here is the output the log file /var/www/html/data/nextcloud.log :

Invalid SP metadata: invalid_xml

I don’t have any details about what might be missing or incorrect in the form (https://nextcloud-ubalia.cleverapps.io/settings/admin/saml).

image

Hi,

Same problem here. Trying to setup a new SSO-saml from scratch using Keycloak.
I used the available docs but I always get the error ‘invalid_xml’ when I press ‘download XML meta-data’ button.

Nextcloud logs say

Erreur	index	OneLogin\Saml2\Error: Invalid SP metadata: invalid_xml
/var/www/html/lib/private/AppFramework/Http/Dispatcher.php - line 230:

OCA\User_SAML\Controller\SAMLController->getMetadata(1)

/var/www/html/lib/private/AppFramework/Http/Dispatcher.php - line 137:

OC\AppFramework\Http\Dispatcher->executeController([ "OCA\\User ... "], "getMetadata")

/var/www/html/lib/private/AppFramework/App.php - line 183:

OC\AppFramework\Http\Dispatcher->dispatch([ "OCA\\User ... "], "getMetadata")

/var/www/html/lib/private/Route/Router.php - line 315:

OC\AppFramework\App::main("OCA\\User_S ... r", "getMetadata", [ "OC\\AppFr ... "], [ "user_saml.SAML.getMetadata"])

/var/www/html/lib/base.php - line 1068:

OC\Route\Router->match("/apps/user_saml/saml/metadata")

/var/www/html/index.php - line 36:

OC::handleRequest()

Nextcloud 27.1.2 using Kubernetes Helm Chart (v 4.3.5)
SSO & SAML authentication app version 5.2.2

Full configuration:

image