Error about API /v3/auth/token

83 views
Skip to first unread message

パイオニアPioneer

unread,
Jun 16, 2021, 12:52:59 AM6/16/21
to Feedly Cloud
An error has occured when I access the API below.
Environment Sandbox : https://sandbox7.feedly.com/v3/auth/token
Environment Production : http://cloud.feedly.com/v3/auth/token

Error Message :
file_get_contents(https://sandbox7.feedly.com/v3/auth/token): failed to open stream: HTTP request failed! HTTP/1.1 401 Unauthorized

Parameters of API :
[refresh_token] => AwApTncc0HYcyhSgsYHbxo9x5u60MwGnMcyyZ0pCjttU0qnSiTg0FbuHMRUH6YEWHRkj7H_dY4CAi9YXhjTNGqxNa4ozgo5iiS2bEbzCi_YKOeZECAyqxYmEeMQRNOnC7HWVB6Q-uvLyeoh43z334Xk5jAvjUqbLIMI4C_yGotgi_Kpt3BxK7fCnGM8suNg3oEYU96gmoX090v4ZrRNJJMWH08zw-xE-NaLHeI4QcAY2RdwRSMbSrGnaL9sEu1_Lw49pJQ:sandbox
[client_id] => sandbox
[client_secret] => X92Fj8xZnTWO0BUMlzrEHY00Lc_JN_DK
[grant_type] => revoke_token

This error has occurred since last fall , So I modified the parameter [grant_type] around April this year as below.
Before : [grant_type] => revoke_token
After : [grant_type] => refresh_token

I have three questions
1) Is the modification correct ?
2) How can I resolve this problem if the modification is not correct ?
3) Is any difference with this API in Environment Sandbox and production, So I need set parameters separately in each Environment ?

Thank you

David Chatenay

unread,
Jun 16, 2021, 1:50:00 PM6/16/21
to パイオニアPioneer, Feedly Cloud
  Hi,
  This client secret expired in March. The current client secret is "sc1fRN1XyVJnoUvSM5LRcZnlx0al9b5u" (it expires on August 31st).
  Sandbox keys only work on sandbox. Production keys work both on production and on sandbox.
  I hope this helps.

-- 
David Chatenay
Platform Engineer
Feedly


--
You received this message because you are subscribed to the Google Groups "Feedly Cloud" group.
To unsubscribe from this group and stop receiving emails from it, send an email to feedly-cloud...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/feedly-cloud/02524339-4d1c-4198-8b21-891cbe24b3f3n%40googlegroups.com.

パイオニアPioneer

unread,
Jun 17, 2021, 8:44:50 AM6/17/21
to Feedly Cloud
Thank you for your replay .

I have other two questions .

1) About the error below.
     Error Message :
     file_get_contents(https://sandbox7.feedly.com/v3/auth/token): failed to open stream: HTTP request failed! HTTP/1.1 401 Unauthorized

     Parameters of API :
     [refresh_token] =>      AwApTncc0HYcyhSgsYHbxo9x5u60MwGnMcyyZ0pCjttU0qnSiTg0FbuHMRUH6YEWHRkj7H_dY4CAi9YXhjTNGqxNa4ozgo5iiS2bEbzCi_YKOeZECAyqxYmEeMQRNOnC7HWVB6Q-uvLyeoh43z334Xk5jAvjUqbLIMI4C_yGotgi_Kpt3BxK7fCnGM8suNg3oEYU96gmoX090v4ZrRNJJMWH08zw-xE-NaLHeI4QcAY2RdwRSMbSrGnaL9sEu1_Lw49pJQ:sandbox
     [client_id] => sandbox
     [client_secret] => X92Fj8xZnTWO0BUMlzrEHY00Lc_JN_DK
     [grant_type] => revoke_token
  
    But this error was occured before March , So the [client_secret] had not been expired at that time .
    Can you tell me the reason ?

     In addition,  I used to access this Api successfully with parameter  [grant_type] => revoke_token ,
     Why the error was happened ? Is there any change with this API ?

2) About API /v3/auth/auth
     I access this API with parameter [ client_id  ] => pioneer , is it OK ?

Thank you
2021年6月17日木曜日 2:50:00 UTC+9 david:

David Chatenay

unread,
Jun 17, 2021, 8:26:55 PM6/17/21
to パイオニアPioneer, Feedly Cloud
  My apologies, I did not notice the `grant_type` value. We deprecated `revoke_token`, please use `POST /v3/auth/logout` instead (just pass the access token in the `Authorization` header, like other authenticated APIs).

  You can continue using the `pioneer` client_id, it should work on sandbox as well. Let me know if you need different redirect URIs than the ones currently configured.

  Best regards,

-- 
David Chatenay
Platform Engineer
Feedly

パイオニアPioneer

unread,
Jun 18, 2021, 3:32:18 AM6/18/21
to Feedly Cloud
Thank you for your reply .

I still have some questions .

1) Is it the only way to disconnect from feedly with API /v3/auth/logout ?
   Can I use API /v3/auth/auth (with parameter [grant_type] => refresh_token) to disconnect from feedly the same as API /v3/auth/logout?

2) About API /v3/auth/auth
   If there is no problem with paramter [ client_id  ] => pioneer,
   Why the error below occured when I access API /v3/auth/auth ?
   
   Error message :
   {"errorCode":400,"errorId":"ap7int-sv2.2021061623.587313","errorMessage":"invalid redirect_uri"}

3) Although I do not need different redirect URIs than the ones currently configured, 
   Can you tell me what do I need to do when I want a new redirect URI ?

Thank you

2021年6月18日金曜日 9:26:55 UTC+9 david:

パイオニアPioneer

unread,
Jun 21, 2021, 5:04:53 AM6/21/21
to Feedly Cloud
Hello

Thank you for your apply .

Please add the redirect uris below .

Thank you




2021年6月18日金曜日 16:32:18 UTC+9 Pioneer パイオニア:

パイオニアPioneer

unread,
Jun 22, 2021, 4:35:30 AM6/22/21
to Feedly Cloud
Hello

Thank you for adding the redirects for our app .
We Have tested it , the result is OK .

Best Regards

2021年6月21日月曜日 18:04:53 UTC+9 Pioneer パイオニア:
Reply all
Reply to author
Forward
0 new messages