{"record":{"id":"058833df682a9ff7","repo":"RocketChat/Rocket.Chat","slug":"saml-service-provider-not-found","errorCode":null,"errorMessage":"SAML Service Provider not found.","messagePattern":"SAML Service Provider not found\\.","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"apps/meteor/server/lib/saml/listener.ts","lineNumber":61,"sourceCode":"\t// the runner\n\ttry {\n\t\tconst samlObject = samlUrlToObject(req.originalUrl);\n\t\tif (!samlObject?.serviceName) {\n\t\t\tnext();\n\t\t\treturn;\n\t\t}\n\n\t\tif (!samlObject.actionName) {\n\t\t\tthrow new Error('Missing SAML action');\n\t\t}\n\n\t\tconst service = SAMLUtils.getServiceProviderOptions(samlObject.serviceName);\n\t\tif (!service) {\n\t\t\tSystemLogger.error({\n\t\t\t\tmsg: 'SAML service provider not found',\n\t\t\t\tserviceName: samlObject.serviceName,\n\t\t\t});\n\t\t\tthrow new Error('SAML Service Provider not found.');\n\t\t}\n\n\t\tawait SAML.processRequest(req, res, service, samlObject);\n\t} catch (err) {\n\t\t// @ToDo: Ideally we should send some error message to the client, but there's no way to do it on a redirect right now.\n\t\tSystemLogger.error({ err });\n\n\t\tif (!res.headersSent) {\n\t\t\tconst url = Meteor.absoluteUrl('home');\n\t\t\tres.writeHead(302, {\n\t\t\t\tLocation: url,\n\t\t\t});\n\t\t\tres.end();\n\t\t}\n\t}\n};\n\n// Listen to incoming SAML http requests","sourceCodeStart":43,"sourceCodeEnd":79,"githubUrl":"https://github.com/RocketChat/Rocket.Chat/blob/b2c16d5842cbe6b69b59bdf6fc5e5f1afcd1f0b0/apps/meteor/server/lib/saml/listener.ts#L43-L79","documentation":"Error \"SAML Service Provider not found.\" thrown in RocketChat/Rocket.Chat.","triggerScenarios":"Thrown in the SAML listener when no service provider configuration matches the requested provider name.","commonSituations":"See trigger scenarios.","solutions":["Enable and configure the SAML login service provider in the admin settings before using the SAML endpoints."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"b2c16d5842cbe6b69b59bdf6fc5e5f1afcd1f0b0","analyzedAt":"2026-08-18T15:26:39.429Z","contentChangedAt":"2026-08-18T15:26:39.429Z","schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}