2016-12-08 3 views
0

하이브리드 인증을 사용하는 laravel 응용 프로그램에 Google 인증을 추가하려고합니다.laravel 응용 프로그램의 하이브리드 승인 오류 -

구글 인증 구성 :

<?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 

이 오류의 원인은 무엇입니까?

+0

Laravel Socialite 패키지를 사용하지 않는 이유가 있습니까? 그것은 특별히 Taylor Otwell의 Laravel을 위해 쓰여졌습니다. – Joe

+0

[이 다른 질문]과 관련되었을 수 있습니다 (http://stackoverflow.com/questions/40997264/hybridauth-with-google-provider-randomly-returns-invalid-request-when-authenti)? –

답변

관련 문제