Skip to content

Google Authentication

Andreas Michael edited this page Nov 30, 2026 · 1 revision

Google Authentication

The ESN Membership Manager supports Sign in with Google (OAuth 2.0), allowing applicants and members to authenticate on the Application Form (/memberships/apply) and Member Dashboard (/memberships/dashboard) without waiting for an email verification code.

Prerequisites

  • A Google Cloud Console project.
  • Access to Google Auth Platform (or APIs & Services > Credentials) in your project.

Note

Google Authentication uses an OAuth 2.0 Client ID configured directly in ESN Membership Manager Settings. It does not require a Google Service Account or Omnia Google Integration.

1. Configure the OAuth Consent Screen

  1. Go to the Google Cloud Console and select your ESN section's project.
  2. Navigate to Google Auth Platform > Overview (or APIs & Services > OAuth consent screen).
  3. Choose External as the User Type so any student with a Google account can sign in.
  4. Fill in your app name (e.g., ESN Membership Manager), support email, and authorised domain.
  5. Publish the app to Production so external users are not blocked by test-user restrictions.

2. Create an OAuth 2.0 Client ID

  1. Navigate to Google Auth Platform > Clients (or APIs & Services > Credentials).
  2. Click Create Client (or Create Credentials > OAuth client ID).
  3. Select Web application as the Application type.
  4. Enter a Name (e.g., ESN Membership Manager).
  5. Under Authorized redirect URIs, add: https://your-domain.com/memberships/auth/google
    • Note: Replace your-domain.com with your actual site domain.
  6. Click Create and copy the generated Client ID and Client Secret.

3. Module Configuration

  1. Navigate to the module settings: /admin/config/system/esn-membership-manager.
  2. Under Enable / Disable Features > Third-party Authentication, check Enable Google Authentication.
  3. Open the Google Authentication Settings section and enter:
    • Client ID: Your OAuth 2.0 Client ID.
    • Client Secret: Your OAuth 2.0 Client Secret.
  4. Click Save configuration.

How It Works

  • Registration (/memberships/apply): Signing in with Google verifies the applicant's email address immediately, creates an in-progress application record, and pre-fills the verified email field. If an application already exists for that email, the user is redirected to the Member Dashboard.
  • Login (/memberships/dashboard): Signing in with Google authenticates the member directly into their Member Dashboard. If no application exists for that Google account, they are redirected to the Application Form.

Clone this wiki locally