Mentor LMS Docs
Configuration

Google Authentication

Enable Google OAuth login for students and instructors in Mentor LMS.

Enabling Google Authentication allows users to sign up and log in using their Google accounts.

Accessing Google Auth Settings

  1. Log in to your admin dashboard
  2. Navigate to SettingsSocial Login Settings

Google Auth Settings


Setting Up Google OAuth

Step 1: Create a Google Cloud Project

  1. Go to Google Cloud Console
  2. Click project dropdown → New Project
  3. Enter a name and click Create
  4. Select your new project
  1. Navigate to APIs & ServicesOAuth consent screen
  2. Select External user type
  3. Fill in App name, User support email, and Developer contact information
  4. Add scopes: email and profile
  5. Add test users if in testing mode

Step 3: Create OAuth Credentials

  1. Navigate to APIs & ServicesCredentials
  2. Click Create CredentialsOAuth client ID
  3. Select Web application
  4. Add authorized JavaScript origins: https://your-domain.com
  5. Add authorized redirect URI: https://your-domain.com/auth/google/callback
  6. Click Create and save the Client ID and Client Secret

Step 4: Configure in Mentor LMS

  1. In Social Login Settings, toggle Enable Google Login to Yes
  2. Enter Client ID and Client Secret
  3. Verify the Callback URL is pre-filled correctly
  4. Click Save Changes

Troubleshooting

  1. Verify Credentials — Double-check Client ID and Client Secret
  2. Check Redirect URI — Ensure the callback URL exactly matches your LMS configuration
  3. OAuth Consent Screen — Complete the consent screen setup fully
  4. HTTPS Required — Google OAuth requires HTTPS for production
  5. Published Status — Testing-status apps only allow authorized test users

Security Considerations

  • Never expose your Client Secret in client-side code
  • Only request the user data you actually need (email, profile)
  • Update your Privacy Policy to reflect data collected via Google Auth
  • Periodically review who has access to your Google Cloud project

On this page