nextcloud / user_saml

:lock: App for authenticating Nextcloud users using SAML https://apps.nextcloud.com/apps/user_saml
https://portal.nextcloud.com/article/configuring-single-sign-on-10.html
GNU Affero General Public License v3.0
96 stars 76 forks source link

Invalid metadata and Internal Server Error on Nextcloud 27.0.0 and PHP 8.1.2 #743

Closed danfratamico closed 1 year ago

danfratamico commented 1 year ago

On Nextcloud 27.0.0 and PHP 8.1.2, when I try to connect my instance to Azure AD and click "Download metadata", I am redirected to an Internal Server Error with URL "https://drive.domain.com/apps/user_saml/saml/metadata". In Nextcloud logs, I see the following:

Error | PHP | foreach() argument must be of type array|object, null given at /var/www/html/nextcloud/apps/user_saml/lib/SAMLSettings.php#119 |   | 2023-07-11T18:58:15-0400

Debug | user_saml | /appinfo/app.php is deprecated, use \OCP\AppFramework\Bootstrap\IBootstrap on the application class instead. |   | 2023-07-11T18:58:15-0400

solracsf commented 1 year ago

Upgrade to 5.2.1 and report back. If error, the full stack error in JSON format from the logs.

danfratamico commented 1 year ago

UPDATE: I figured it out. I was missing the X.509 certificate in the optional Identity Provider settings!

Same error. How can I grab the full error in JSON format?

solracsf commented 1 year ago

In the /data/nextcloud.log file.