Appearance
How to Integrate Google Sign-in
Last update: 02 Nov 2024
Allow users to sign in to your AI Tools application using their Google account.
Step 1: Create a Google Cloud Project
Visit the Google Cloud Console:
https://console.developers.google.com/projectcreate
Create a new project or select an existing one.
Step 2: Create an OAuth Client ID
Open the Credentials page:
https://console.developers.google.com/apis/credentials
Click Create Credentials and select OAuth Client ID.

Step 3: Configure the OAuth Consent Screen
Configure the OAuth Consent Screen for your application.
Complete the required information and save the configuration.

Step 4: Copy the Client ID and Client Secret
After creating the OAuth Client ID, copy the following credentials:
- Client ID
- Client Secret

Step 5: Add the Redirect URI
In the Authorized redirect URIs section, add the following URL:
text
https://yourdomain.com/sign-in-with-googleNote
Replace
yourdomain.comwith your actual domain name.
Save the changes.

Step 6: Configure Google Sign-in in the Admin Panel
Log in to your AI Tools Admin Panel and navigate to:
Settings -> General Settings -> Webtools and Google Configuration Settings
Enter your:
- Client ID
- Client Secret
Enable Google Auth, then click Update Changes.

Step 7: Configure Google Sign-in in the .env File (Optional)
If you prefer, you can also configure the credentials directly in the .env file.
Open:
PROJECT-ROOT/.env
Update the Google authentication values and save the file.

Step 8: Disable Google Sign-in (Optional)
If you do not want to allow Google Sign-in, navigate to:
Settings -> General Settings -> Webtools and Google Configuration Settings
Set Google Auth Enable to OFF, then click Update Changes.

