gpt4 book ai didi

twitter - 回调 URL 未经 Twitter 批准

转载 作者:行者123 更新时间:2023-12-02 11:14:34 28 4
gpt4 key购买 nike

我的应用程序构建于 spring-social-twitter允许用户使用 Twitter 登录的功能最近已停止工作。

我收到如下错误消息:

Callback URL not approved for this client application. Approved callback URLs can be adjusted in your application settings

注意:我使用的是 Spring Social Twitter 版本 1.1.2.RELEASE。如果您使用 Spring Social Twitter 版本 1.1.0.RELEASE,您可能会收到略有不同的错误消息,如下所示:

POST request for "https://api.twitter.com/oauth/request_token" resulted in 403 (Forbidden); invoking error handler

最佳答案

出于安全原因,Twitter 最近(2018 年 5 月)强制要求使用 Twitter 登录的用户必须将回调 URL 列入白名单(请参阅 the announcement)。

这意味着必须为所有受支持的第三方应用程序明确且相同地设置回调 URL。您可以在 Twitter 的应用程序设置页面中设置回调 URL:https://apps.twitter.com

例如,如果您的回调 URL 是 http://localhost:8080/myApp/signin/twitter ,您必须将其添加到 Twitter 应用程序设置页面中的回调 URL 列表中,如下所示:http://localhost:8080/myApp/signin/twitter

enter image description here

另请参阅the documentation on Twitter callback URLs .

关于twitter - 回调 URL 未经 Twitter 批准,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51103139/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com