Plugin screenshot thumbnail 1/2
Plugin screenshot thumbnail 2/2

Google OAuth plugin for Craft

A minimal Craft plugin to provide Google OAuth login

Installation

composer require "leowebguy/google-oauth" -w && php craft plugin/install google-oauth

Credentials

Gather the necessary info from Google Console Cloud

Go to https://console.cloud.google.com/auth/clients

  1. Select a Project
  2. Create client
  3. Pick "Web application"

Screenshot

  1. Give it a name
  2. Add "Authorized JavaScript origins" i.e. https://myapp.ddev.site
  3. Add "Authorized redirect URIs" i.e. https://myapp.ddev.site/oauth/g/auth

The URI has to be "/oauth/g/auth"
Added to your Craft App URL i.e. https://myapp.ddev.site/oauth/g/auth

Screenshot

  1. Copy Client ID and Secret (blue arrow)
  2. Paste into .env OR /admin/settings/plugins/google-oauth
### OAUTH
GOOGLE_CLIENT_ID=111-xxx.apps.googleusercontent.com
GOOGLE_CLIENT_SECRET=AAA-123qwe

Screenshot

Screenshot


Composer

Craft 4

"require": {
   "leowebguy/google-oauth": "^1.0",
}

Craft 5

"require": {
   "leowebguy/google-oauth": "^2.0",
}

Standard

Plus $10/year after one year.

Installation Instructions

To install this plugin, copy the command above to your terminal.

Reviews

This plugin doesn't have any reviews.

Active Installs
1
Version
2.0
License
Craft
Compatibility
Craft 4, Craft 5
Last release
May 15, 2026
Activity (30 days)
0
Closed Issues
0
Open Issues
0
Merged PRs
0
Open PRs