{"id":19857986,"url":"https://github.com/boldare/xsolve-google-auth-bundle","last_synced_at":"2025-10-10T02:37:56.983Z","repository":{"id":62548395,"uuid":"13143715","full_name":"boldare/xsolve-google-auth-bundle","owner":"boldare","description":"Integration Google OAuth 2.0 sign in and sign up to FOSUserBundle","archived":false,"fork":false,"pushed_at":"2015-04-08T12:16:45.000Z","size":203,"stargazers_count":5,"open_issues_count":0,"forks_count":2,"subscribers_count":70,"default_branch":"master","last_synced_at":"2025-05-02T02:38:46.713Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/boldare.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"Security/Authentication/GoogleAuthenticationInterface.php","support":null}},"created_at":"2013-09-27T07:02:44.000Z","updated_at":"2017-04-21T05:55:57.000Z","dependencies_parsed_at":"2022-11-02T23:30:35.813Z","dependency_job_id":null,"html_url":"https://github.com/boldare/xsolve-google-auth-bundle","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/boldare/xsolve-google-auth-bundle","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boldare%2Fxsolve-google-auth-bundle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boldare%2Fxsolve-google-auth-bundle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boldare%2Fxsolve-google-auth-bundle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boldare%2Fxsolve-google-auth-bundle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/boldare","download_url":"https://codeload.github.com/boldare/xsolve-google-auth-bundle/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boldare%2Fxsolve-google-auth-bundle/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279002538,"owners_count":26083401,"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","status":"online","status_checked_at":"2025-10-10T02:00:06.843Z","response_time":62,"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":"2024-11-12T14:20:42.783Z","updated_at":"2025-10-10T02:37:56.968Z","avatar_url":"https://github.com/boldare.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# About\n\nThis bundle allows user to sign in via Google Auth 2.0 API to FOSUserBundle.\n\nIt includes:\n\n* Google API integration\n* Creating new user when it's necessary\n* Signing in\n\n# Installation\n\n1) Install and configure FOSUserBundle\n\n    https://github.com/FriendsOfSymfony/FOSUserBundle/blob/master/Resources/doc/index.md\n\n2) Add to composer.json\n\n    \"require\": {\n        \"xsolve-pl/xsolve-google-auth-bundle\": \"1.0.*\"\n    },\n\n3) Install dependencies\n\n    composer install\n\n4) Run the bundle in app/AppKernel.php\n\n    public function registerBundles()\n    {\n        return array(\n            // ...\n            new Xsolve\\GoogleAuthBundle\\XsolveGoogleAuthBundle(),\n        );\n    }\n\n5) Add to routing.yml \n\n    xsolve_google_auth:\n        resource: \"@XsolveGoogleAuthBundle/Controller/\"\n            type:     annotation\n                prefix:   /\n\n\n6) Register your service in https://code.google.com/apis/console/b/0/ an configure parameters.yml and add\n\n    xsolve_google_auth:\n        name: Xsolve test application\n        client_id: \"4429041xxxx.apps.googleusercontent.com\"\n        client_secret: \"xrAbfJ7wmOBZbYU3TyDxxxxx\"\n        redirect_uri: \"http://testapp.xsolve.pl/oauth2callback\"\n        dev_key: xsolvetestapplication\n\n        success_authorization_redirect_url: _welcome\n        failure_authorization_redirect_url: _welcome\n\n        scopes:\n           -  profile\n           -  email\n\n        autoregistration: false\n        autoregistration_domains: []\n\n7) Add access controls to security.yml\n\n    access_control:\n        - { path: ^/oauth2callback, role: IS_AUTHENTICATED_ANONYMOUSLY }\n        - { path: ^/googleauthlogin, role: IS_AUTHENTICATED_ANONYMOUSLY }\n\n\n# Usage\n\nAfter configuring a bundle you can go to /oauth2callback page and the browser should redirect to google access page.\n\n## Configuration options\n\nConfiguration can be adjusted in app/config/config.yml\n\n    xsolve_google_auth:\n        name: Xsolve test application #name of application from google console\n        client_id: \"4429041xxxx.apps.googleusercontent.com\" #client id of application from google console\n        client_secret: \"xrAbfJ7wmOBZbYU3TyDxxxxx\" #client secret key of application from google console\n        redirect_uri: \"http://testapp.xsolve.pl/oauth2callback\" #redirect uri of application from google console\n        dev_key: xsolvetestapplication #your developmnent's application name from google console\n\n        scopes: #data which application needs from google API\n           -  profile\n           -  email\n\n        success_authorization_redirect_url: _welcome #url key inside Symfony where user should be redirected after successful sign in\n        failure_authorization_redirect_url: _welcome #url key inside Symfony where user should be redirected after failure sign in\n\n        autoregistration: false #true|false - if false than user will be registered into system automaticaly\n        autoregistration_domains:  #array may be empty. If autoregistration is true you can allow to register users only from selected domains\n           - xsolve.pl\n\n\n## Add link to Twig template\n\nAdd this link to your Twig template to force login action with Google OAuth 2.0 :\n\n    \u003ca href=\"{{ path('xsolve_googleauth_googleauthorization_authorization') }}\"\u003eLogin with Google\u003c/a\u003e\n\nor\n\n    \u003ca href=\"{{ path('xsolve_googleauth_googleauthorization_authorization_1') }}\"\u003eLogin with Google\u003c/a\u003e\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fboldare%2Fxsolve-google-auth-bundle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fboldare%2Fxsolve-google-auth-bundle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fboldare%2Fxsolve-google-auth-bundle/lists"}