I am setting up a Laravel app to authenticate with Google.
I am prompted to select a Google account and allow access to my Google info and I have everything working up to the callback function.
When my callback function runs (it does get called correctly) I get:
The code in my AuthController leading to the error is:
$user = \Socialite::driver('google')->user();
I would be grateful for any help. I am using Laravel 5.1 and Socialite 2.0.
This proved to be an error on the Google side of things. The client enabled the Google+ API in the console. Things work fine now.
The 403 error is access error from the google end. Check that you've also enabled the APIs from the google end you intend to use.
Easy way to test things and see what's problem: curl -H "Authorization: Bearer 1/fFBGRNJru1FQd44AzqT3Zg" https://www.googleapis.com/plus/v1/people/me
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With