How to Programmatically Configure SSO

Describe the problem/error/question

We are running n8n on Kubernetes using the community-supported Helm chart. Most of our configuration is handled via environment variables, which works well — except for SAML SSO.

The official SAML Okta guide and the general SAML setup guide only provide steps for configuring SSO via the UI. There doesn’t appear to be a documented or recommended way to configure SSO programmatically via environment variables or Helm values.

Is there an officially supported way to fully configure SAML SSO headlessly, particularly in containerized/Kubernetes environments?

What is the error message (if any)?

No specific error, just missing functionality — we cannot configure SSO without manually clicking through the UI.

Please share your workflow

(Not applicable — this is a platform-level configuration issue, not a workflow issue.)

Share the output returned by the last node

(Not applicable.)

2 Likes

What would be the best way to open a feature request for the ability to configure these?

Hi @RoseSecurity did you encounter any other issues while setting up SSO via Okta , we are getting this error, {"code":401,"message":"SAML Authentication failed: SAML Authentication failed. Could not parse SAML response. ERR_REDIRECT_FLOW_BAD_ARGS"} not sure what might be the case

We are seeking to programmatically implement SSO through environment variables or other means. This request is more of a feature request than a bug report.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.