dpdfh60088 2015-07-21 03:40
浏览 40
已采纳

Laravel Socialite(谷歌)错误:Middleware.php第69行中的ClientException; 错误403

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:

  • ClientException in Middleware.php line 69:
  • Client error: 403

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.

  • 写回答

2条回答 默认 最新

  • dongliyun3301 2015-07-21 21:03
    关注

    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.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?