2013-06-13 3 views
2

Google 리더에서 OAuth2를 통해 구독 목록을 얻으려고합니다. Codeigniter와 library - CI_OPAUTH을 사용하고 있습니다. 문제없이 scren 사용 권한을 얻고 Google 리더 사용 권한을 부여 할 수 있습니다. 문제는 인증이 끝난 후 콜백 헤더가 나에게 403 Forbidden 헤더를 줄 때입니다.OAuth2를 사용하는 Google 리더 구독

Array 
(
[error] => Array 
    (
     [provider] => Google 
     [code] => userinfo_error 
     [message] => Failed when attempting to query for user information 
     [raw] => Array 
      (
       [response] => 0 
       [headers] => HTTP/1.0 403 Forbidden 
WWW-Authenticate: Bearer realm="https://www.google.com/accounts/AuthSubRequest",  error=insufficient_scope, scope="https://www.googleapis.com/auth/userinfo.id h ttps://www.googleapis.com/auth/userinfo.profile https://www.googleapis.com/auth/userinfo.email https://www.googleapis.com/auth/plus.me https://www.googleapis.com/auth/plus.login https://www.google.com/accounts/OAuthLogin" 
Content-Type: application/json; charset=UTF-8 
Date: Thu, 13 Jun 2013 12:26:25 GMT 
Expires: Thu, 13 Jun 2013 12:26:25 GMT 
Cache-Control: private, max-age=0 
X-Content-Type-Options: nosniff 
X-Frame-Options: SAMEORIGIN 
X-XSS-Protection: 1; mode=block 
Server: GSE 
      ) 

    ) 

[timestamp] => 2013-06-13T12:26:25+00:00 
) 

내가 2 일 동안이에 갇혀했는데 내가 '모르는 :

여기
$config['opauth_config'] = array(
    'path' => '/mixordia/index.php/oauth/login/', //example: /ci_opauth/auth/login/ 
    'callback_url' => '/mixordia/index.php/oauth/authenticate/', //example: /ci_opauth/auth/authenticate/ 
    'callback_transport' => 'get', //Codeigniter don't use native session 
    'security_salt' => 'mixordias_salt_whwhwh_wayacross', 
    'debug' => true, 
    'Strategy' => array(
     'Google' => array(
      'client_id' => 'MY_ID', 
      'client_secret' => 'MY_SECRET', 
      'service' => 'reader', 
      'source' => 'APP Name', 
      'scope' => 'http://www.google.com/reader/api' 
     ) 
    ) 
); 

내가 무엇을 얻을 수 있습니다 : 여기

라이브러리 내 옵션입니다 도서관에서 요청할 때 잘못했다. 너 나 좀 도와 줄 수있어?

+2

모르는 사이에. Google 리더는 곧 사라질 것입니다. – DampeS8N

+0

나는 그것을 알고있다. – Elkas

답변

관련 문제