0
我正嘗試在使用混合身份驗證的我的laravel應用程序中添加google身份驗證。laravel應用程序中的Google身份驗證 - 混合身份驗證錯誤
谷歌身份驗證配置:
<?php
return array(
"base_url" => "https://mywebsite.com/gauth/auth",
"providers" => array(
"Google" => array(
"enabled" => true,
"keys" => array(
"id" => "myid.apps.googleusercontent.com",
"secret" => "mysecret"
),
"scope" => "https://www.googleapis.com/auth/userinfo.email "
)
)
);
認證在HTTP網站的罰款。但是當我添加SSL/HTTPS到網站它不工作,我得到以下錯誤:
Exception in Auth.php line 169:
User profile request failed! Google returned an error: exception 'Exception' with message 'The Authorization Service has return: invalid_request' in /project/httpdocs/vendor/hybridauth/hybridauth/hybridauth/Hybrid/thirdparty/OAuth/OAuth2Client.php:84
什麼是導致此錯誤的問題?
有沒有理由不使用Laravel Socialite包來做到這一點?它是由泰勒奧特維爾專門爲Laravel寫的。 – Joe
也許與[this other question]有關(http://stackoverflow.com/questions/40997264/hybridauth-with-google-provider-randomly-returns-invalid-request-when-authenti)? –