设置单点登录(单点登录)(Set up Single Sign-On (SSO))#
Feature availability
- Available on Business and Enterprise plans.
- You need to be an instance owner or admin to enable and configure SAML or OIDC.
n8n 支持 SAML 和 OIDC 身份验证协议,以实现单点登录(SSO)。有关这两种协议的更多一般信息、它们之间的差异及各自的优点,请参见 OIDC 与 SAML。
🌐 n8n supports the SAML and OIDC authentication protocols for single sign-on (SSO). See OIDC vs SAML for more general information on the two protocols, the differences between them, and their respective benefits.
- 设置 SAML:在 n8n 中设置 SAML 的通用指南,以及常用身份提供商 (IdP) 的资源链接。
- 设置 OIDC:在 n8n 中设置 OpenID Connect (OIDC) 单点登录 (SSO) 的通用指南。
使用环境变量配置单点登录(Configure SSO with environment variables)#
你还可以通过环境变量而不是通过 UI 配置 SSO。从 n8n v2.18.0 开始可用。完整的变量列表请参见 SSO 环境变量,有关激活模式如何工作的说明请参见 使用环境变量管理实例设置。
🌐 You can also configure SSO from environment variables instead of through the UI. Available from n8n v2.18.0. See SSO environment variables for the full list of variables, and Manage instance settings using environment variables for how the activation pattern works.