Back to Tooljet

Google (Open ID)

docs/versioned_docs/version-2.11.0/user-authentication/sso/openid/google-openid.md

3.20.154-lts2.9 KB
Original Source
  • Go to the Workspace Settings (⚙️) from the left sidebar in the ToolJet dashboard

    <div style={{textAlign: 'center'}}> </div>
  • Select SSO from workspace options

    <div style={{textAlign: 'center'}}> </div>
  • Select Open ID Connect from the left sidebar

    <div style={{textAlign: 'center'}}> </div>
  • Set Name as Google and get the Client ID and Client Secret from your Google Clound Console.

  • Set the Well Known URL to https://accounts.google.com/.well-known/openid-configuration

Generating Cliend ID and Cliend Secret on GCS

  • Go to Google cloud console and create a project.

    <div style={{textAlign: 'center'}}> </div>
  • Go to the Google cloud console credentials page, and create an OAuth client ID

    <div style={{textAlign: 'center'}}> </div>
  • You'll be asked to select user type in consent screen. To allow only users within your workspace, select 'Internal', otherwise, select 'External'.

    <div style={{textAlign: 'center'}}> </div>
  • You'll be led to an app registration page where you can set OAuth scopes. Select 'Add or remove scopes' and add the scopes userinfo.email and userinfo.profile as shown in the image. This will allow ToolJet to store the email and name of the user who is signing in

    <div style={{textAlign: 'center'}}> </div>
  • Set the domain on which ToolJet is hosted as an authorized domain

    <div style={{textAlign: 'center'}}> </div>
  • Set the Redirect URL generated at manage SSO Open ID page under Authorised redirect URIs

    <div style={{textAlign: 'center'}}> </div>
  • Now, you can view your client ID and client secret from the Credentials page in API Console:

    • Go to the Credentials page.
    • Click the name of your credential or the pencil icon. Your client ID and secret are at the top of the page.