How can I get Yahoo OAuth to work when I develop locally when my local domain is not registered with Yahoo?

Andrew picture Andrew · Sep 2, 2010 · Viewed 13.1k times · Source

I'm working on an app that uses Yahoo OAuth. The OAuth had been working fine but I just registered my domain with Yahoo and now it will not let me use the OAuth when I develop locally because "Custom port is not allowed or the host is not registered with this consumer key."

The issue is because my call back URL is to a domain that is not registered with Yahoo (http://localhost:8080/welcome).

I'm not sure what to do. I'm also new to development so if you could be specific with suggestions that would be awesome! Any help is greatly appreciated.

Answer

Vignesh Iyer picture Vignesh Iyer · Feb 17, 2011

Hiii... yahoo works on localhost :).. what you have to do is while registering for a yahoo consumer key and secret key, the registration page asks you what type of application is yours. I guess it gives you two options , website and the oder one as stand alone app. Choose stand alone app as in your case. Then it will give you a pair of keys, and it will work on localhost :). Enjoy!