{"record":{"id":"60cbbd62b8da571d","repo":"RocketChat/Rocket.Chat","slug":"no-saml-provider","errorCode":"no-saml-provider","errorMessage":"SAML internal error","messagePattern":"SAML internal error","errorType":"exception","errorClass":"Meteor.Error","httpStatus":null,"severity":"error","filePath":"apps/meteor/server/meteor-methods/auth/samlLogout.ts","lineNumber":14,"sourceCode":"import type { ServerMethods } from '@rocket.chat/ddp-client';\nimport { Users } from '@rocket.chat/models';\nimport { Meteor } from 'meteor/meteor';\n\nimport type { IServiceProviderOptions } from '../../lib/saml/definition/IServiceProviderOptions';\nimport { SAMLServiceProvider } from '../../lib/saml/lib/ServiceProvider';\nimport { SAMLUtils } from '../../lib/saml/lib/Utils';\n\n/**\n * Fetch SAML provider configs for given 'provider'.\n */\nfunction getSamlServiceProviderOptions(provider: string): IServiceProviderOptions {\n\tif (!provider) {\n\t\tthrow new Meteor.Error('no-saml-provider', 'SAML internal error', {\n\t\t\tmethod: 'getSamlServiceProviderOptions',\n\t\t});\n\t}\n\n\tconst providers = SAMLUtils.serviceProviders;\n\n\tconst samlProvider = function (element: IServiceProviderOptions): boolean {\n\t\treturn element.provider === provider;\n\t};\n\n\treturn providers.filter(samlProvider)[0];\n}\n\ndeclare module '@rocket.chat/ddp-client' {\n\t// eslint-disable-next-line @typescript-eslint/naming-convention\n\tinterface ServerMethods {\n\t\tsamlLogout(provider: string): string | undefined;\n\t}","sourceCodeStart":1,"sourceCodeEnd":32,"githubUrl":"https://github.com/RocketChat/Rocket.Chat/blob/b2c16d5842cbe6b69b59bdf6fc5e5f1afcd1f0b0/apps/meteor/server/meteor-methods/auth/samlLogout.ts#L1-L32","documentation":"Error \"SAML internal error\" thrown in RocketChat/Rocket.Chat.","triggerScenarios":"Thrown at apps/meteor/server/meteor-methods/auth/samlLogout.ts:14 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Pass a valid SAML provider name to samlLogout; the error is thrown when the provider argument is empty.","Confirm the provider key matches one of the configured entries in SAMLUtils.serviceProviders (SAML admin settings)."],"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"}