Hi everyone,
I’m currently using n8n with SSO authentication (SAML), and I have a question about integrating the credentials obtained via SSO with the credentials used by nodes—especially custom nodes.
My goal is to reuse the same token (or authentication context) that the user gets when authenticating into n8n via SSO, and use that token to authenticate requests made by my custom nodes. In other words, instead of configuring separate credentials for the nodes, I’d like the node to automatically use the SSO-based authentication token that was used to log into n8n.
Is there a supported way to:
Access the SSO (SAML) authentication token or user session token from within a custom node?
Map or propagate the n8n user’s authentication context to node executions?
Or otherwise integrate n8n’s SSO authentication with custom credential handling?
If this isn’t currently possible, I’d also appreciate guidance on recommended patterns or workarounds for aligning SSO authentication with custom node integrations.
Thanks in advance for any insights or pointers!
Describe the problem/error/question
What is the error message (if any)?
Please share your workflow
(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)
Share the output returned by the last node
Information on your n8n setup
- n8n version: 2.3.4
- Database (default: SQLite): PostgreSQL
- n8n EXECUTIONS_PROCESS setting (default: own, main): main
- Running n8n via (Docker, npm, n8n cloud, desktop app): docker self hosted
- Operating system: ubuntu