我在django-allauth和github上遇到了redirect_uri_mismatch错误

问题描述 投票:0回答:1

我收到了来自Django控制台的错误消息。为什么我收到此错误?我读了this tutorial并尝试过。

"GET /accounts/github/login/callback?error=redirect_uri_mismatch&error_description=The+redirect_uri+MUST+match+the+registered+callback+URL+for+this+application.&error_uri=https%3A%2F%2Fdeveloper.github.com%2Fapps%2Fmanaging-oauth-apps%2Ftroubleshooting-authorization-request-errors%2F%23redirect-uri-mismatch&state=cpybsYqLpapp HTTP/1.1" 301 0

Github app screenshot

django github oauth django-allauth
1个回答
1
投票

尝试将您的redirect-url更改为:http://127.0.0.1:8000/accounts/github/

使用http,它会工作。您可以通过在网络浏览器中输入任何错误的网址值来显示应用中的网址列表,以获取所有列表。选择那么多。你可以点击以下链接中的步骤:https://wsvincent.com/django-allauth-tutorial/

并把我在github回调网址中提供的链接。

© www.soinside.com 2019 - 2024. All rights reserved.