{"id":18276362,"url":"https://github.com/runthis/laravel-google-auth","last_synced_at":"2025-04-05T03:31:30.147Z","repository":{"id":41124802,"uuid":"508391209","full_name":"runthis/laravel-google-auth","owner":"runthis","description":"Tiny authentication in Laravel with Google for a specific domain","archived":false,"fork":false,"pushed_at":"2025-03-30T22:59:24.000Z","size":95,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-30T23:27:17.604Z","etag":null,"topics":["authentication","google","laravel"],"latest_commit_sha":null,"homepage":"","language":"Blade","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/runthis.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}},"created_at":"2022-06-28T17:17:38.000Z","updated_at":"2025-03-30T22:59:20.000Z","dependencies_parsed_at":"2024-03-10T23:23:43.327Z","dependency_job_id":"0c78c12f-58e9-47b5-b24c-1c07a731548b","html_url":"https://github.com/runthis/laravel-google-auth","commit_stats":{"total_commits":21,"total_committers":3,"mean_commits":7.0,"dds":"0.47619047619047616","last_synced_commit":"3b8e0ba64feb855db397be3aedcc62b099538637"},"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/runthis%2Flaravel-google-auth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/runthis%2Flaravel-google-auth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/runthis%2Flaravel-google-auth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/runthis%2Flaravel-google-auth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/runthis","download_url":"https://codeload.github.com/runthis/laravel-google-auth/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247284911,"owners_count":20913691,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["authentication","google","laravel"],"created_at":"2024-11-05T12:15:51.486Z","updated_at":"2025-04-05T03:31:25.123Z","avatar_url":"https://github.com/runthis.png","language":"Blade","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Laravel Google Authentication\n\nA tiny laravel package to authenticate users via google with domain verification.\n\n\n## Installation\n\n    composer require runthis/laravel-google-auth\n\n\n\n## Setup\n\n##### Google\n\nHead over to https://console.cloud.google.com/apis/credentials and set up some oauth credentials. Note the client id.\n\n\n##### Laravel\n\nOpen up your .env file and add the following keys and adjust as necessary. \n\n    GOOGLE_CLIENT_ID=\"xxx.apps.googleusercontent.com\"\n    GOOGLE_BASE_ROUTE=\"/login\"\n    GOOGLE_AUTH_ROUTE=\"/auth/callback\"\n    GOOGLE_VALID_DOMAIN=\"domain.com\"\n\n\nWith the above environment variables; When a user visits /login in your application, they will be presented with a page containing a button to sign in with Google.\n\n\n## Usage\n\nPackage emits `Runthis\\Login\\Events\\UserWasAuthenticatedWithGoogle` when google login is successful and contains an array payload with various keys provided by google (name, email, picture, etc).\n\nCreate a listener in Laravel. Add `use Runthis\\Login\\Events\\UserWasAuthenticatedWithGoogle;`. Set the handle method parameter to `UserWasAuthenticatedWithGoogle $event`. Handle the event as you want (logging the user in, adding to database if you like, etc).\n\n\n\n## Changelog\n\nPlease see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frunthis%2Flaravel-google-auth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frunthis%2Flaravel-google-auth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frunthis%2Flaravel-google-auth/lists"}