user_saml
user_saml copied to clipboard
SAML login option disppeared with 5.0.2. Also, app settings aren't accessible.
After upgrading user_saml to 5.0.2 the SSO login disappeared from the login page. Also, it became impossible to access the SAML SSO app settings via web.
Steps to reproduce
- Open Settings -> SSO & SAML
- Server returns an error.
Expected behaviour
The SAML app settings page should open
Actual behaviour
Server returns an error page. The followin log is produced.
{
"reqId": "Yw3Z2QBvZ21ZlKTgglMcEQAAAIA",
"level": 3,
"time": "2022-08-30T12:35:21+03:00",
"remoteAddr": "..."
"user": "..."
"app": "index",
"method": "GET",
"url": "/index.php/settings/admin/saml",
"message": {
"Exception": "Exception",
"Message": "Class 'OneLogin\\Saml2\\Constants' not found in file '/opt/nextcloud/apps/user_saml/lib/Settings/Admin.php' line 143",
"Code": 0,
"Trace": [
{
"file": "/opt/nextcloud/lib/private/AppFramework/App.php",
"line": 157,
"function": "dispatch",
"class": "OC\\AppFramework\\Http\\Dispatcher",
"type": "->"
},
{
"file": "/opt/nextcloud/lib/private/Route/Router.php",
"line": 302,
"function": "main",
"class": "OC\\AppFramework\\App",
"type": "::"
},
{
"file": "/opt/nextcloud/lib/base.php",
"line": 1008,
"function": "match",
"class": "OC\\Route\\Router",
"type": "->"
},
{
"file": "/opt/nextcloud/index.php",
"line": 36,
"function": "handleRequest",
"class": "OC",
"type": "::"
}
],
"File": "/opt/nextcloud/lib/private/AppFramework/Http/Dispatcher.php",
"Line": 158,
"Previous": {
"Exception": "Error",
"Message": "Class 'OneLogin\\Saml2\\Constants' not found",
"Code": 0,
"Trace": [
{
"file": "/opt/nextcloud/apps/settings/lib/Controller/CommonSettingsTrait.php",
"line": 129,
"function": "getForm",
"class": "OCA\\User_SAML\\Settings\\Admin",
"type": "->"
},
{
"file": "/opt/nextcloud/apps/settings/lib/Controller/AdminSettingsController.php",
"function": "formatSettings",
"class": "OCA\\Settings\\Controller\\AdminSettingsController",
"type": "->"
},
{
"file": "/opt/nextcloud/apps/settings/lib/Controller/CommonSettingsTrait.php",
"line": 140,
"function": "getSettings",
"class": "OCA\\Settings\\Controller\\AdminSettingsController",
"type": "->"
},
{
"file": "/opt/nextcloud/apps/settings/lib/Controller/AdminSettingsController.php",
"line": 68,
"function": "getIndexResponse",
"class": "OCA\\Settings\\Controller\\AdminSettingsController",
"type": "->"
},
{
"file": "/opt/nextcloud/lib/private/AppFramework/Http/Dispatcher.php",
"line": 217,
"function": "index",
"class": "OCA\\Settings\\Controller\\AdminSettingsController",
"type": "->"
},
{
"file": "/opt/nextcloud/lib/private/AppFramework/Http/Dispatcher.php",
"line": 126,
"function": "executeController",
"class": "OC\\AppFramework\\Http\\Dispatcher",
"type": "->"
},
{
"file": "/opt/nextcloud/lib/private/AppFramework/App.php",
"line": 157,
"function": "dispatch",
"class": "OC\\AppFramework\\Http\\Dispatcher",
"type": "->"
},
{
"file": "/opt/nextcloud/lib/private/Route/Router.php",
"line": 302,
"function": "main",
"class": "OC\\AppFramework\\App",
"type": "::"
},
{
"file": "/opt/nextcloud/lib/base.php",
"line": 1008,
"function": "match",
"class": "OC\\Route\\Router",
"type": "->"
},
{
"file": "/opt/nextcloud/index.php",
"line": 36,
"function": "handleRequest",
"class": "OC",
"type": "::"
}
],
"File": "/opt/nextcloud/apps/user_saml/lib/Settings/Admin.php",
"Line": 143
},
"CustomMessage": "--"
},
"userAgent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Safari/537.36",
"version": "23.0.7.3"
}
Downgrading to 5.0.1 fixed the issue.
I also tried the fix in #647 but unfortunately it didn't help.
did you get the app from the appstore?
Hi, I am not sure if I have the same problem. nginx error.log throws on request of the application
"message":"chmod(): Operation not permitted at /var/www/nextcloud/lib/private/Log/File.php#86"
I recognized that I got a new log file in /var/log/nextcloud with permissions
-rw-r--r-- 1 root root 0 Jun 29 18:11 nextcloud.log
I changed this by
chown www-data.www-data nextcloud.log
restarted nginx and now I have the app settings again.
Is this issue still present on v5.0.3 https://github.com/nextcloud/user_saml/releases/tag/v5.0.3 ?
Sorry for long silence. Yes, the app was installed from app store.
I will check if 5.0.3 still has the issue.
I will check if 5.0.3 still has the issue.
Just tried 5.0.3. This time SAML login works.