✏️Google Sign In Setup for Self-hosted app

This guide provides essential instructions for accessing your DataBrain account effortlessly using google sign in for self hosted app.

  1. Create Google OAuth Client

Follow the steps mentioned in this link to create Google OAuth Client:

https://www.balbooa.com/help/gridbox-documentation/integrations/other/google-client-id

  1. Add below URLs while creating Google OAuth Client

Authorized JavaScript origins:

  • {YOUR_SELFHOSTED_APP_URL} eg: https://selfhosted-abc-org.centralindia.cloudapp.azure.com

Authorized redirect URIs:

  • {YOUR_SELFHOSTED_APP_URL}/users/sign-in eg: https://selfhosted-abc-org.centralindia.cloudapp.azure.com/users/sign-in

  • {YOUR_SELFHOSTED_APP_URL}/users/sign-up eg: https://selfhosted-abc-org.centralindia.cloudapp.azure.com/users/sign-up

  1. Copy the Google OAuth Client ID

  1. Add Google OAuth Client ID env variable in express

GOOGLE_OAUTH_CLIENT_ID = {YOUR_GOOGLE_OAUTH_CLIENT_ID}
eg: GOOGLE_OAUTH_CLIENT_ID = 694528862847-u9...nnibb.apps.googleusercontent.com

Last updated