Google / Facebook OpenID 的 Yahoo OAuth 授权问题
我在弄清楚如何为已使用 Google 或 Facebook 登录创建帐户的 Yahoo 用户获取 OAuth 访问令牌时遇到了一些麻烦。我遵循了文档中描述的 OAuth 流程,但是这似乎只适用于直接创建雅虎帐户的用户。
是否有人在为使用 Google 或 Facebook 登录雅虎的用户获取访问令牌时遇到困难?
我查看了 OAuth + OpenID 流程,但是我在应该进行发现的地方遇到了麻烦。通过 Google OpenID 登录的用户如何接收 yahoo 的 request_token?
还有其他人遇到过这个问题吗?
Im having a bit of trouble figuring out how to get an OAuth access token for a Yahoo user who has created an account with Google or Facebook Sign-in. I've followed the OAuth flow described in the documentation, however this seems to only apply to users who have created a Yahoo account directly.
Has anyone else had trouble getting an access token for a user who has used Google or Facebook to sign into Yahoo?
I've looked at the OAuth + OpenID flow but I'm having trouble at the point where I should perform discovery. How would one receive an request_token for yahoo with a user who signs in via a Google OpenID?
Anyone else experienced this issue?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我能看到这种情况发生的唯一方法是雅虎是否在某个时候允许在 OAuth 授权步骤中进行 Facebook 和 Google 身份验证。这至少是 API 消费者应用程序最简单的前进方式。
恐怕 OAuth + OpenID 流程对您没有帮助,它仅适用于 Yahoo OpenID。我想它至少在理论上适用于 Google OpenID(如果雅虎实现了这一点),但 Facebook 甚至不是 OpenID 提供商。
我认为雅虎对此的立场是正确的。他们向他们自己配置的用户提供 API 访问权限。我认为您不会发现许多 API 提供商有不同的策略。
The only way I can see this happening is if Yahoo at some point allows Facebook and Google authentication in the OAuth authorization step. That would at least be the simplest way forward for an API consumer application.
The OAuth + OpenID flow will not help you I am afraid, it only works for Yahoo OpenIDs. I guess it could at least theoretically work for Google OpenIDs (if Yahoo implemented that), but Facebook is not even an OpenID provider.
I think Yahoo's stance on this is sound. They provide API access to users that they themselves have provisioned. I don't think you will find many API providers out there who will have a different strategy.