Skip to main content

To configure Appsmith to use Auth0 as a SAML provider, follow the steps below:

Prerequisites

  1. A self-hosted Appsmith instance. See the installation guides for installing Appsmith.
  2. Before setting up Single Sign-On (SSO), ensure that you have already configured a custom domain for your instance.
  3. In Appsmith, go to Admin Settings > Authentication and click Enable on SAML 2.0.
  4. Copy the Redirect URL from the SAML 2.0 configuration page to add it later in the Auth0 settings.
SAML configurations
SAML configuration in Appsmith

Create application on Auth0

  1. Log in to your Auth0 account and go to Applications > Create Application.
  2. In the Create application modal, select Regular Web Application and click Create.
  3. Once your application is created, you’re taken to the Quick Start screen. Go to the Settings tab.
  4. Scroll down to the Application URIs and paste the Redirect URL copied earlier in the Allowed Callback URLs field.
  5. Click Save Changes.
  6. On the Settings tab, go to Advanced Settings > Endpoints. Scroll down to the SAML section, and copy the SAML Metadata URL to add it later in the SAML configurations in Appsmith.

Register Auth0 in Appsmith

To complete the SAML configuration, you have to register the identity provider on Appsmith. Appsmith provides three options to register the identity provider as mentioned below:

To register Auth0 as the identity provider on Appsmith, follow the steps below:

  1. If you are running Appsmith on Google Cloud Run, AWS ECS, or Azure Container Instances, make sure to configure the service before setting up SSO. For more information, see:
  1. Go to the SAML 2.0 configuration page in Appsmith and navigate to Register Identity Provider section.

  2. Add the copied Metadata URL in the Metadata URL field under the Register Identity Provider section.

Once you have added the details, click the SAVE & RESTART button to save the configuration and restart the instance.

info

If you're running Appsmith on a Kubernetes cluster with an HA configuration, after completing the setup, run the following command to ensure the new authentication settings are properly applied:

kubectl rollout restart deployment/appsmith -n

After the Appsmith instance restarts, try logging in again to your account. You'll see a login screen with the SIGN IN WITH SAML SSO button.

SAML-login
Login with SAML SSO

Troubleshooting

If you are facing issues contact the support team using the chat widget at the bottom right of this page.

See also