Migrate from SAML to OIDC
Learn how to migrate your SSO configuration from SAML to OIDC.
| Single Sign-On (SSO) Availability | |||
|---|---|---|---|
| Cloud | Generally Available | ||
| Self-hosted Edge 3.36 or later | Generally Available | ||
| Self-hosted Stable 3.33 or later | Generally Available | ||
You can use both OpenID and SAML SSO methods to log users in to Retool. OIDC SSO has additional functionality you may want to enable based on your use case. For example, with OIDC, you can use ID tokens from your IdP for authentication in Retool resources.
On self-hosted instances, ensure you follow the order outlined in this guide. On Retool Cloud, you can update settings directly in Settings > Single Sign-On (SSO).
To minimize downtime, apply all changes to environment variables at the same time. When you restart the Retool server, your instance immediately replaces the SAML-based SSO with the new OIDC-based SSO.
1. Enable OIDC SSO
Use the configuration guides—Okta, Google, OneLogin, or another provider—to enable OIDC authentication on your instance. This involves creating an OIDC app for your Retool instance and setting CUSTOM_OAUTH2_SSO_* environment variables. You can set these variables in Retool under Settings > Configuration variables. Do not restart your Retool instance yet.