Implementing Oauth2 login, Fatal error: Class 'Google_Service' not found

后端 未结 8 1410
情书的邮戳
情书的邮戳 2020-12-06 03:02

I am updating my website\'s login system from LightOpenID to Google\'s Oauth 2.0.

When I require the Client.php and the Service/Oauth2.php I get an error

8条回答
  •  甜味超标
    2020-12-06 03:41

    To this version https://github.com/google/google-api-php-client this is a posible solution

    set_include_path("google-api-php-client/src/" . PATH_SEPARATOR . get_include_path());
    
    //.....
    
    require_once 'Google/Service.php';
    //.....
    

提交回复
热议问题