0

401: Unauthorized error on Get Request Token

I am trying to get a request token from my C# application.
While trying to perform a GET on the below URL, I am getting the error
CODE
https://api.login.yahoo.com/oauth/v2/get_request_token?oauth_callback=http%3A%2F%2Flocalhost%3A25053%2FThirdPartyLogins%2FYahooCallback.aspx
&oauth_consumer_key=my_customer_key
&oauth_nonce=2326226
&oauth_signature_method=PLAINTEXT
&oauth_timestamp=1303732978
&oauth_version=1.0
&oauth_signature=my_customer_secret%26


The error I get is,

QUOTE
The remote server returned an error: (401) Unauthorized.


Documentation tells me that this usually means that one of my parameters is wrong. What could be that parameter?
Is the problem happening because
1. My CallBack URL is in localhost?
2. My signature method is Pliantext?
3. I have not verified my application domain?

by
3 Replies
  • Hi,

    If you have "localhost" in the callback_url and you've verified your
    domain, it will be rejected because they don't match.

    Thanks,
    Yu Wang
    Yahoo! Membership Team
    0
  • Hi Omiga,

    I keep on getting this error

    curl https://api.login.yahoo.com/oauth/v2/get_request_token -d "oauth_version=1.0&oauth_nonce=xbiaierkzhobzanulotyexnyonpskorn&oauth_timestamp=1346055344&oauth_consumer_key=my_consumer_key&oauth_signature_method=PLAINTEXT&oauth_signature=my_consumer_secret%26&oauth_callback=oob" -v

    All I get after issuing the above command is;

    * About to connect() to api.login.yahoo.com port 443 (#0)
    *   Trying 98.136.223.192...
    * connected
    * Connected to api.login.yahoo.com (98.136.223.192) port 443 (#0)
    * SSLv3, TLS handshake, Client hello (1):
    * SSLv3, TLS handshake, Server hello (2):
    * SSLv3, TLS handshake, CERT (11):
    * SSLv3, TLS alert, Server hello (2):
    * SSL certificate problem: unable to get local issuer certificate
    * Closing connection #0
    curl: (60) SSL certificate problem: unable to get local issuer certificate

    Right now I am just trying to connect.  

    Many Thank.
    Reggie
    0
  • Hi,

    I'm getting the following 401 error:

    The remote server returned an error: (401) Unauthorized.

    Here is my Authentication Information:

    Application URL : http://ellenlstyle.staging.printsys.net App Domain: http://ellenlstyle.staging.printsys.net My callback URL: ellenstyle.staging.printsys.net/ViewCart.aspx

    My domain ellenlstyle.staging.printsys.net is verified.

    Consumer Key & Consumer Secret are entered correctly.

    The call to Yahoo Boss Geo:

    http://yboss.yahooapis.com/geo/placefinder?country=US&postal=92011&oauth_version=1.0&oauth_nonce=5226783 &oauth_timestamp=1365016453&oauth_signature_method=HMAC-SHA1 &oauth_consumer_key=dj0yJmk9TUFyMFlSWDBEQWJ0JmQ9WVdrOU1UZGhPVkJoTXpJbWNHbzlNVGc0TnpReE5qZzJNZy0tJnM9Y29uc3VtZXJzZWNyZXQmeD04NQ-- &oauth_callback="http%3A%2F%2Fellenlstyle.staging.printsys.net%2FViewCart.aspx"&oauth_signature=nUHo2LKeQjkznHDKx3y1Iplr8Y=

    Is something wrong in here ?

    Thanks, J.F

    0

Recent Posts

in OAuth General Discussion YDN SDKs