回调 URL 未批准用于此客户端应用程序。可以在应用程序设置中调整批准的回调 URL

Moe*_*men 4 twitter-oauth auth0 angular

我需要让我的网站用户能够使用他们的 Twitter 帐户登录我的网站。我的网站基于 Angular 8 和 Spring Boot。当我配置 Auth0 并测试我的 Twitter 应用程序时,出现以下错误:

{
  "error": "access_denied",
  "error_description": "Callback URL not approved for this client application. Approved callback URLs can be adjusted in your application settings"
}
Run Code Online (Sandbox Code Playgroud)

在此输入图像描述

但是我正确配置了我的callback_url。那么这个问题的解决办法是什么?

Vig*_*esh 6

您很可能将 twitter 回调 URL 设置为您自己的域,但在 auth0 twitter 登录中,登录回调应该发生在 auth0 上。

因此,将您的 Twitter 应用回调 URL 更改为以下,

https://your-tenant.auth0.com/login/callback
Run Code Online (Sandbox Code Playgroud)

your-tenant 应替换为您的实际租户域。

更多信息请参见https://community.auth0.com/t/twitter-auth-no-longer-works/12291/22