Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

laravel 5.5 login via google gives Client error

I was trying to add the google login to my laravel project. but it gives a Client error. Given below is the error i got. I successfully installed the socialite as well.

 Client error: `GET https://www.googleapis.com/plus/v1/people/me?prettyPrint=false` resulted in a `403 Forbidden` response: {"error":{"errors":[{"domain":"usageLimits","reason":"accessNotConfigured","message":"Project 983930379932 is not found (truncated...) 
like image 566
Wathsara Wishwantha Daluwatta Avatar asked Apr 04 '18 14:04

Wathsara Wishwantha Daluwatta


2 Answers

Go to https://console.cloud.google.com/apis and enable Google+ api.

Took me 3 hours to find out that Google Cloud does not automatically enable the api for you when you create OAuth service.

like image 120
Goodcake Avatar answered Oct 20 '22 19:10

Goodcake


Remember you have to register your google app within googles service as well. That error if I remember correctly is simply telling you that you aren't allowed to use google services.

I am not super sure if this steps are up to date, but it shouldn't be that different: https://itsolutionstuff.com/post/laravel-5-google-oauth-authentication-using-socialite-packageexample.html

like image 2
Manuel Alejandro Caetano Avatar answered Oct 20 '22 18:10

Manuel Alejandro Caetano