【发布时间】:2015-11-08 17:40:04
【问题描述】:
我一直在 iOS 应用中使用 Pinterest REST API。我使用嵌入式 UIWebView 并通过加载此 URL(已编辑 client_id 和 redirect_uri 值)来启动身份验证过程:
https://api.pinterest.com/oauth/
?client_id=1234567890
&scope=read_public,read_relationships
&redirect_uri=https%3A%2F%mysite.com%2Foauth%2Fpinterest
&state=E95D914D-78B5-4E16-B8AA-8BD0774CC347
&response_type=code
直到最近它一直运行良好。现在,显示了 Pinterest 登录页面,但登录后,我被重定向到 https://www.pinterest.com,而不是我的 redirect_uri。我在https://developers.pinterest.com 上的应用配置中仔细检查了 URI 是否匹配。
我也尝试过使用Paw,结果相同。
就好像 OAuth 上下文被忽略了,它只是被视为普通的 Web 登录。其他人看到了吗?
【问题讨论】:
-
我看到了同样的情况,但它与桌面用户代理一起正常运行。
-
谢谢。 developers.pinterest.com/tools/access_token 的行为相同——适用于桌面版 Safari,不适用于移动版 Safari。我发了推文@PinterestEng,还没有回复。
标签: ios api authentication oauth pinterest