RocketChat/Rocket.Chat · error · Error
SAML Service Provider not found.
Error message
SAML Service Provider not found.
What it means
Error "SAML Service Provider not found." thrown in RocketChat/Rocket.Chat.
Source
Thrown at apps/meteor/server/lib/saml/listener.ts:61
// the runner
try {
const samlObject = samlUrlToObject(req.originalUrl);
if (!samlObject?.serviceName) {
next();
return;
}
if (!samlObject.actionName) {
throw new Error('Missing SAML action');
}
const service = SAMLUtils.getServiceProviderOptions(samlObject.serviceName);
if (!service) {
SystemLogger.error({
msg: 'SAML service provider not found',
serviceName: samlObject.serviceName,
});
throw new Error('SAML Service Provider not found.');
}
await SAML.processRequest(req, res, service, samlObject);
} catch (err) {
// @ToDo: Ideally we should send some error message to the client, but there's no way to do it on a redirect right now.
SystemLogger.error({ err });
if (!res.headersSent) {
const url = Meteor.absoluteUrl('home');
res.writeHead(302, {
Location: url,
});
res.end();
}
}
};
// Listen to incoming SAML http requestsView on GitHub (pinned to b2c16d5842)
Solutions
- Enable and configure the SAML login service provider in the admin settings before using the SAML endpoints.
When it happens
Trigger: Thrown in the SAML listener when no service provider configuration matches the requested provider name.
Common situations: See trigger scenarios.
AI-assisted analysis of RocketChat/Rocket.Chat@b2c16d5842 (2026-08-18).
Data as JSON: /api/errors/058833df682a9ff7.
Report an issue: GitHub.