---
title: Set up Single Sign-On (SSO)
description: "Set up SAML or OIDC Single Sign-On for your self-hosted n8n instance."
contentType: howto
---

# Set up Single Sign-On (SSO)

/// info | 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 supports the SAML and OIDC authentication protocols for single sign-on (SSO). See [OIDC vs SAML](https://www.onelogin.com/learn/oidc-vs-saml) for more general information on the two protocols, the differences between them, and their respective benefits.

* [Set up SAML](/user-management/saml/setup.md): a general guide to setting up SAML in n8n, and links to resources for common identity providers (IdPs).
* [Set up OIDC](/user-management/oidc/setup.md): a general guide to setting up OpenID Connect (OIDC) SSO in n8n.

## Configure SSO with environment variables

You can also configure SSO from environment variables instead of through the UI. Available from n8n v2.18.0. See [SSO environment variables](/hosting/configuration/environment-variables/sso.md) for the full list of variables, and [Manage instance settings using environment variables](/hosting/configuration/settings-env-vars.md) for how the activation pattern works.
