{"id":50718492,"url":"https://github.com/leowebguy/google-oauth","last_synced_at":"2026-06-09T21:03:47.158Z","repository":{"id":357696169,"uuid":"1237185272","full_name":"leowebguy/google-oauth","owner":"leowebguy","description":null,"archived":false,"fork":false,"pushed_at":"2026-05-13T23:20:28.000Z","size":300,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-13T23:35:44.700Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/leowebguy.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-13T00:42:15.000Z","updated_at":"2026-05-13T23:18:40.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/leowebguy/google-oauth","commit_stats":null,"previous_names":["leowebguy/google-oauth"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/leowebguy/google-oauth","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leowebguy%2Fgoogle-oauth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leowebguy%2Fgoogle-oauth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leowebguy%2Fgoogle-oauth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leowebguy%2Fgoogle-oauth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/leowebguy","download_url":"https://codeload.github.com/leowebguy/google-oauth/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leowebguy%2Fgoogle-oauth/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34125332,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-09T02:00:06.510Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-06-09T21:03:46.277Z","updated_at":"2026-06-09T21:03:47.152Z","avatar_url":"https://github.com/leowebguy.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Google OAuth plugin for Craft\n\nA minimal Craft plugin to provide Google OAuth login\n\n---\n\n## Installation\n\n```bash\ncomposer require \"leowebguy/google-oauth\" -w \u0026\u0026 php craft plugin/install google-oauth\n```\n\n## Composer\n\nCraft 4\n\n```json\n\"require\": {\n   \"leowebguy/google-oauth\": \"^1.0\",\n}\n```\n\nCraft 5\n\n```json\n\"require\": {\n   \"leowebguy/google-oauth\": \"^2.0\",\n}\n```\n\n## Credentials\n\nGather the necessary info from GoogleOAuth\n\nGo to https://console.cloud.google.com/auth/clients\n1. Select a Project\n2. Create client\n3. Pick \"Web application\"\n\n![Screenshot](resources/web-app.png)\n\n4. Give it a name\n5. Add \"Authorized JavaScript origins\" i.e. https://myapp.ddev.site (Optional)\n6. Add \"Authorized redirect URIs\" i.e. https://myapp.ddev.site/oauth/g/auth\n\n\u003e The URI has to be \"/oauth/g/auth\" \u003cbr\u003e\n\u003e Added to your Craft App URL i.e. https://myapp.ddev.site/oauth/g/auth\n\n![Screenshot](resources/console.png)\n\n7. Copy Client ID and Secret\n8. Paste/Save /admin/settings/plugins/google-oauth\n\n![Screenshot](resources/settings.png)\n\n9. Add ID/Secret to .env (Optional)\n\n```.dotenv\n### OAUTH\nGOOGLE_CLIENT_ID=111-xxx.apps.googleusercontent.com\nGOOGLE_CLIENT_SECRET=AAA-123qwe\n```\n\n![Screenshot](resources/main-login.png)\n\n![Screenshot](resources/timeout-login.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleowebguy%2Fgoogle-oauth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fleowebguy%2Fgoogle-oauth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleowebguy%2Fgoogle-oauth/lists"}