How do you increase the SAML timeout?

Describe the problem/error/question

When trying to login via SSO to n8n using entra (microsoft) SAML interface, there is a whitepage for a few second then “401 SAML Authentication failed: timeout exceeded when trying to connect“

Entra says it successfully authenticated us and on their status report there is no indication of a bigger issue

My question is simply (to start with at least) how do you increase the SAML timeout?

What is the error message (if any)?

In the log (which is currently at debug level) says

{“level”:“debug”,“message”:“SAML response is valid”,“metadata”:{“file”:“saml-validator.js”,“function”:“validateXml”,“timestamp”:“2025-12-02T16:44:54.003Z”}}
{“level”:“error”,“message”:“\u001b[31m401 SAML Authentication failed: SAML Authentication failed. Could not parse SAML response. ERR_SUBJECT_UNCONFIRMED\u001b[39m”,“metadata”:{“file”:“response-helper.js”,“function”:“sendErrorResponse”,“timestamp”:“2025-12-02T16:44:54.025Z”}}

Please share your workflow

n/a

Share the output returned by the last node

Information on your n8n setup

  • n8n version: 1.82.1
  • Database (default: SQLite): postgres
  • n8n EXECUTIONS_PROCESS setting (default: own, main): n/a
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system: Windows

Short version: you don’t change the timeout in the SAML settings – you change n8n’s JWT session duration, which is what controls how long SAML-logged-in users stay authenticated.

The default duration is 7 days, so this sounds like an authentication issue, not a SAML timeout issue.

It looks like the start of the SSO “conversation” is working, the users browser calling out to microsoft, it doesn’t seem that microsofts reply (whilst showing as successful on their console) is getting though to the page on the server that receives it (or according the error, before a timelimit)