Social Login Setup: Google


To enable Google social login, you'll need to create OAuth 2.0 credentials in the Google Cloud Console. Here's a step-by-step guide to get your Google Client ID and Client Secret:




Steps to Get Google OAuth Credentials


1. Go to Google Cloud Console



2. Create a New Project


  • Click the project dropdown at the top and select "New Project".

  • Name your project (e.g., MyWebApp), then click Create.

  • Once created, switch to that project.


3. Enable the Google+ API or "People API"


  • Go to APIs & Services > Library in the sidebar.

  • Search for and enable:

    • People API (used for fetching user profile info)

    • (Optional but useful) OAuth 2.0 API


4. Create OAuth 2.0 Credentials


  • Go to APIs & Services > Credentials.

  • Click Create Credentials > OAuth client ID.

  • If prompted to configure the consent screen first, do that:


Consent Screen Configuration


  • Choose "External" and click Create.

  • Fill in:

    • App Name

    • User Support Email

    • Developer Contact Information

  • Save and continue (you can skip scopes and test users for now).


OAuth Client Setup


  • Application type: Choose "Web application"

  • Name it (e.g., Web Login)

  • Add Authorized redirect URIs (you can find this link on the social login setup page on your traineasy backend), e.g.:

    https://username.traineasy.net/social/login/google
  • Click Create


5. Get Your Credentials


  • Youll now see:

    • Client ID

    • Client Secret


Click the download icon to save them securely.



Go to your TrainEasy backend and go to 'Settings'-'Site Settings'. Click on the 'Social Login' tab. Save the credentials generated into Google login fields and save


2025 © TrainEasy.