【发布时间】:2012-06-23 06:08:09
【问题描述】:
AppHarbour oauth API 的文档仅显示如何在网站内执行 oauth,即使用 redirect_uri
GET https://appharbor.com/user/authorizations/new?client_id=:client_id&redirect_uri=:http://mysite.com/home/auth
这最终会重定向到http://mysite.com/home/auth?&code=ACCESS_CODE
但是有没有办法将 ACCESS_CODE 值作为 GET 的一部分取回?我希望在桌面应用程序中使用 AppHarbour api。我可以使用嵌入式网络浏览器打开网页,以便用户可以验证我的应用程序,但我没有重定向 url 让它返回?
如何使用 api 来执行此操作?
【问题讨论】:
-
我们改进了 SDK 以使其更简单,请查看博文:blog.appharbor.com/2012/06/21/…
-
很好,谢谢。是的,你是对的,这正是我试图这样做的原因
We only realized the need for a non-web OAuth flow after announcing the AppHarbor API contest where we gamely suggested you guys build various desktop apps using the API, without providing a useful way to authenticate these kinds of apps.