ToolJet/docs/versioned_docs/version-2.9.0/user-authentication/sso/github.md
Shubhendra Singh Chauhan e9c7cdf57e
[docs] Appbuilder 1.1 (#6874)
* [docs] conditional action #6304

* [docs] plotly bar mode

* [docs] private app embed var

* [doc] table: selectedCell

* [doc]table nested data

* [doc]number-decimal

* [doc]buttontext

* [doc]boundedbox:default data

* [doc]multi-env updates

* [doc]version 2.9.0

* commented: PR5926

* commented: PR5296 minor change
2023-07-05 19:30:20 +05:30

2.5 KiB

id title
github GitHub

GitHub Single Sign-on

  • Go to the Workspace Settings (⚙️) from the left sidebar in the ToolJet dashboard

    General Settings: SSO
  • Select SSO from sidebar and then select GitHub. GitHub login will be disabled by default,

    General Settings: SSO
  • Enable GitHub. You can see Redirect URL generated

    General Settings: SSO
  • Go to GitHub Developer settings and navigate to OAuth Apps and create a project. Authorization callback URL should be the generated Redirect URL in Git manage SSO page.

    General Settings: SSO
  • Open the application details, and you can see the Client ID

    General Settings: SSO
  • Then create Client secrets by clicking Generate new client secret

    General Settings: SSO

Lastly, enter Client Id and Client Secret in GitHub manage SSO page and save.

The GitHub sign-in button will now be available in your ToolJet login screen.

:::info Should configure Host Name if you are using GitHub Enterprise self hosted. Host name should be a URL and should not ends with /, example: https://github.tooljet.com :::

Setting default SSO

To set GitHub as default SSO for the instance use environment variable.

variable description
SSO_GIT_OAUTH2_CLIENT_ID GitHub OAuth client id
SSO_GIT_OAUTH2_CLIENT_SECRET GitHub OAuth client secret
SSO_GIT_OAUTH2_HOST GitHub OAuth host name if GitHub is self hosted

Redirect URL should be <host>/sso/git