0

Problems usings OAuth during Local Development

I'm writing a site in Python that uses the 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 fairly new to development so if you could be specific with suggestions that would be awesome!

Any help is greatly appreciated. Let me know if you need more information.

by
1 Reply
  • If you're just trying to design a site for your own internal use, then you might consider passing "oob" as your callback URL? This will let the Yahoo! OAuth servers know to just return back the token verifier in their own webpage instead of trying to redirect to a callback URL. You can then grab that token verifier and manually pass it into your application. "localhost:8080" isn't really a domain, it's just an indicator to loop back to talking to your own computer. If you actually do end up wanting to have a public callback URL, then yeah, you're going to need a publicly accessible server with a public DNS entry.

    Let me know if that doesn't make sense.
    0

Recent Posts

in Fantasy Sports API