leowebguy/google-oauth
最新稳定版本:2.0
Composer 安装命令:
composer require leowebguy/google-oauth
包简介
A minimal Craft plugin to provide Google OAuth login
README 文档
README
A minimal Craft plugin to provide Google OAuth login
Installation
composer require "leowebguy/google-oauth" -w && php craft plugin/install google-oauth
Composer
Craft 4
"require": { "leowebguy/google-oauth": "^1.0", }
Craft 5
"require": { "leowebguy/google-oauth": "^2.0", }
Credentials
Gather the necessary info from GoogleOAuth
Go to https://console.cloud.google.com/auth/clients
- Select a Project
- Create client
- Pick "Web application"
- Give it a name
- Add "Authorized JavaScript origins" i.e. https://myapp.ddev.site
- 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
- Copy Client ID and Secret (blue arrow)
- Paste into .env OR /admin/settings/plugins/google-oauth
### OAUTH
GOOGLE_CLIENT_ID=111-xxx.apps.googleusercontent.com
GOOGLE_CLIENT_SECRET=AAA-123qwe
统计信息
- 总下载量: 1
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 10
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: proprietary
- 更新时间: 2026-05-13



