0

Adding xoauth_lang_pref parameter results in 401

I'm using signpost, an OAuth library for Java, to authenticate with Yahoo in order to use the Contacts API. My code works fine if I don't try to use the xoauth_lang_pref parameter to specify the locale of the login page the user will see. If I do add that parameter I get a 401 back when I try to get the request token. An example of the URL I'm using is:

https://api.login.yahoo.com/oauth/v2/get_re...lang_pref=fr_CA

Again, if I were not to include "&xoauth_lang_pref=fr_CA" the request works.

by
1 Reply
  • Here's the full URL:

    CODE
    https://api.login.yahoo.com/oauth/v2/get_request_token&oauth_callback=http%3A%2F%2Fjbodnar.corp.convio.com%2FPC2%2Faddress_book_import_oauth_callback_handler.html%3Fimport_job_id%3D1031&oauth_consumer_key=dj0yJmk9Qno3dG1JaVk2QUlLJmQ9WVdrOU9XRkNZbGR5Tm1zbWNHbzlNV
    EV3TkRZeU9USTJNZy0tJnM9Y29uc3VtZXJzZWNyZXQmeD1lMA--&oauth_nonce=-8430160719413354253&oauth_signature_method=HMAC-SHA1&oauth_timestamp=1308854712&oauth_version=1.0&xoauth_lang_pref=fr_CA
    0

Recent Posts

in OAuth General Discussion YDN SDKs