当我的本地域未在Yahoo中注册时,如何在本地开发时使用Yahoo OAuth? [英] How can I get Yahoo OAuth to work when I develop locally when my local domain is not registered with Yahoo?

查看:95
本文介绍了当我的本地域未在Yahoo中注册时,如何在本地开发时使用Yahoo OAuth?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发使用Yahoo OAuth的应用程序. OAuth一直运行良好,但是我只是在Yahoo上注册了域,现在,当我在本地进行开发时,它将不允许我使用OAuth, 不允许使用自定义端口,或者主机未使用此使用者密钥注册."

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."

问题是因为我的回叫URL指向未在Yahoo中注册的域( http://localhost:8080 /welcome ).

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.

推荐答案

Hiii ... yahoo在本地主机上工作:) ..您要做的是在注册yahoo使用者密钥和私有密钥时,注册页面要求您是哪种类型的应用程序.我想它为您提供了两种选择:网站和更便宜的应用程序(作为独立应用程序).选择适合您情况的独立应用程序.然后它将为您提供一对密钥,并且它将在localhost :)上运行.享受吧!

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!

这篇关于当我的本地域未在Yahoo中注册时,如何在本地开发时使用Yahoo OAuth?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆