PHP Classes

Error Authorizing with Yahoo!

Recommend this page to a friend!

      PHP OAuth Library  >  PHP OAuth Library package blog  >  How to Implement PHP ...  >  All threads  >  Error Authorizing with Yahoo!  >  (Un) Subscribe thread alerts  
Subject:Error Authorizing with Yahoo!
Summary:Error Authorizing with Yahoo!
Messages:5
Author:Chris Myers
Date:2013-03-14 12:32:23
Update:2013-03-15 00:30:24
 

  1. Error Authorizing with Yahoo!   Reply   Report abuse  
Picture of Chris Myers Chris Myers - 2013-03-14 12:32:23
I am very new to oauth and downloaded this class + related ones. I registered the app/ url with yahoo as directed and received a success message after placing the file on the server to verify I own the domain.

Finally I modified test_oauth_client.php to reflect my credentials (copied and paste to ensure no errors) and the redirect URL. However I keep on getting this message when I run test_oauth_client.php:

"Authorization error: it was not possible to access the OAuth request token: it was returned an unexpected response status 401 Response: oauth_problem=consumer_key_unknown"

I am sure there must be a simple step I am missing but I've gone through the instructions multiple times and still cannot find it. Can anyone assist me with troubleshooting this?

Thank you

  2. Re: Error Authorizing with Yahoo!   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2013-03-14 22:41:43 - In reply to message 1 from Chris Myers
You are probably using the incorrect values.

The client_id for Yahoo should be a long string ending in --- . The client_secret is much shorter and only has hexadecimal letters and digits.

  3. Re: Error Authorizing with Yahoo!   Reply   Report abuse  
Picture of Chris Myers Chris Myers - 2013-03-14 23:15:29 - In reply to message 2 from Manuel Lemos
Thanks for your reply. I went through this twice and when I visit https://developer.apps.yahoo.com/wsregapp/?view I see the two listed as "BBAuth IDs".

In both cases, the ID is 32 characters long, contains numbers and mixed case and ends with 1 '-' (not 3 as you indicated). The Shared Secret is also 32 characters long but with only digits and small letters.

The scope says "Scope: Single Sign On, No user data can be accessed".

Have I made a mistake somewhere?

  4. Re: Error Authorizing with Yahoo!   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2013-03-14 23:50:48 - In reply to message 3 from Chris Myers
No, you need to go to the page of your application and see a section at the top named "Authentication Information: OAuth". The you have "Consumer Key" and "Consumer Secret". You need to click on the values in front because they may appear truncated. Once the values are selected, just copy and paste them in your script.

  5. Re: Error Authorizing with Yahoo!   Reply   Report abuse  
Picture of Chris Myers Chris Myers - 2013-03-15 00:30:24 - In reply to message 4 from Manuel Lemos
Thank you very much, I found the page you spoke of now.