Internal server error while login Platform UI by using SAML with LDAP dependency
Login error appears when you try to access the Platform UI by using SAML that is registered with LDAP.
Symptoms
When you use LDAP dependency with SAML authentication and try to access the Platform UI by using SAML, the login error appears and displays a message, 500 internal server error.
If you access the Common UI console, the following errors are displayed in the common-ui container logs:
[2022-03-04T11:58:45.375] [ERROR] [webui-nav] [platform-auth-service] SAML enabled, but unable to get idsource registrations to determine if ldap is enabled for the saml config - default to true Error:
at Request.<anonymous> (/opt/ibm/platform-header/lib/server/request.js:115:34)
at Request._callback (/opt/ibm/platform-header/node_modules/lodash/lodash.js:10118:25)
at Request.requestRetryReply [as reply] (/opt/ibm/platform-header/node_modules/requestretry/index.js:105:19)
at Request.<anonymous> (/opt/ibm/platform-header/node_modules/requestretry/index.js:138:10)
at Request.self.callback (/opt/ibm/platform-header/node_modules/request/request.js:185:22)
at Request.emit (events.js:400:28)
at Request.emit (domain.js:475:12)
at Request.<anonymous> (/opt/ibm/platform-header/node_modules/request/request.js:1154:10)
at Request.emit (events.js:400:28)
at Request.emit (domain.js:475:12) {
statusCode: 403,
details: 'Unexpected response code 403 from request:\n' +
'GET https://platform-identity-provider:4300/v2/auth/idsource/registration?protocol=saml HTTP/1.1\n' +
'Accept: application/json\n' +
'Authorization: Bearer ***\n' +
'Accept: application/json\n' +
'\n' +
'HTTP/1.1 403\n' +
'X-Dns-Prefetch-Control: off\n' +
'X-Frame-Options: SAMEORIGIN\n' +
'Strict-Transport-Security: max-age=15552000; includeSubDomains\n' +
'X-Download-Options: noopen\n' +
'X-Content-Type-Options: nosniff\n' +
'X-Xss-Protection: 1; mode=block\n' +
'Content-Type: application/json; charset=utf-8\n' +
'Content-Length: 57\n' +
'Etag: W/"39-Iup4jU4k5A0rUB2wIQCJV1dX4gw"\n' +
'Date: Fri, 04 Mar 2022 11:58:45 GMT\n' +
'Connection: close\n' +
'\n' +
'{"error":"Insufficient user permission for role :Viewer"}\n'
}
Causes
Service-id permission returns Viewer role access.
Resolving the problem
Upgrade your current foundational services version to 3.16.0 version or later.