Skip to main content

GitHub OAuth

Appsmith allows you to integrate with GitHub OAuth, enabling end users to sign in to the Appsmith account using their GitHub authentication credentials.


  1. A self-hosted Appsmith instance. See the installation guides for installing Appsmith.
  2. A GitHub account.

Register OAuth app on GitHub

To enable GitHub Sign in, log in to your GitHub Account and follow the steps below:

  1. In your profile drop-down, navigate to Settings > Developer Settings > OAuth Apps and click Register a new application to create and register a new OAuth App.

Click to expand

  1. Configure the following OAuth Credentials for a web application:

    1. Homepage URL: the domain on which you host Appsmith with HTTPS (Eg:

    2. Authorization Callback URL: append /login/oauth2/code/github to the Homepage URL (Eg:

    Click to expand

Configure Appsmith instance


Test the Client ID and Client Secret before disabling Form login on Appsmith. This ensures that users can access Appsmith with their GitHub credentials. To fix an invalid GitHub configuration, update the environment variables.

There are two ways to configure the self-hosted Appsmith instance -

  • Admin Settings
  • Environment Variables

Admin settings

Click Admin Settings > Authentication > Enable(GitHub). Add the Client ID and Client Secret. Click the Save & Restart button at the bottom of the page.

Github authentication configuration image


If you have set values using environment variables for your instance, those values take precedence over values specified in the Admin Settings UI.

Environment variables

Update the values for the following keys in the instance configuration file, for example, in the docker.env file for Docker installation (<PROJECT_ROOT>/stacks/configuration/) and in the values.yaml file for Kubernetes:

  • Configure the APPSMITH_OAUTH2_GITHUB_CLIENT_ID and APPSMITH_OAUTH2_GITHUB_CLIENT_SECRET fields with the client ID and client secret generated in the preceding step.
  • Configure APPSMITH_SIGNUP_ALLOWED_DOMAINS with a second-level domain name (ex:, to only allow users with an email address from that domain name to log in (ex: You can provide several domain names using a comma-separated list.
    # Example configuration in docker.env file
    # ********* GitHub OAuth **********
    # ******************************
  • Restart the Appsmith instance.

After these steps, your Appsmith installation should now enable GitHub Login.

Further reading