RocketChat/Rocket.Chat · error · Meteor.Error

no-saml-provider

no-saml-provider

Error message

SAML internal error

What it means

Error "SAML internal error" thrown in RocketChat/Rocket.Chat.

Source

Thrown at apps/meteor/server/meteor-methods/auth/samlLogout.ts:14

import type { ServerMethods } from '@rocket.chat/ddp-client';
import { Users } from '@rocket.chat/models';
import { Meteor } from 'meteor/meteor';

import type { IServiceProviderOptions } from '../../lib/saml/definition/IServiceProviderOptions';
import { SAMLServiceProvider } from '../../lib/saml/lib/ServiceProvider';
import { SAMLUtils } from '../../lib/saml/lib/Utils';

/**
 * Fetch SAML provider configs for given 'provider'.
 */
function getSamlServiceProviderOptions(provider: string): IServiceProviderOptions {
	if (!provider) {
		throw new Meteor.Error('no-saml-provider', 'SAML internal error', {
			method: 'getSamlServiceProviderOptions',
		});
	}

	const providers = SAMLUtils.serviceProviders;

	const samlProvider = function (element: IServiceProviderOptions): boolean {
		return element.provider === provider;
	};

	return providers.filter(samlProvider)[0];
}

declare module '@rocket.chat/ddp-client' {
	// eslint-disable-next-line @typescript-eslint/naming-convention
	interface ServerMethods {
		samlLogout(provider: string): string | undefined;
	}

View on GitHub (pinned to b2c16d5842)

Solutions

  1. Pass a valid SAML provider name to samlLogout; the error is thrown when the provider argument is empty.
  2. Confirm the provider key matches one of the configured entries in SAMLUtils.serviceProviders (SAML admin settings).

When it happens

Trigger: Thrown at apps/meteor/server/meteor-methods/auth/samlLogout.ts:14 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of RocketChat/Rocket.Chat@b2c16d5842 (2026-08-18). Data as JSON: /api/errors/60cbbd62b8da571d. Report an issue: GitHub.