在尝试使用github时,我一直得到相同的OAuth错误。有时它会消失,但大多数时候它会留下。我已经尝试重置我的秘密密钥,撤销所有的令牌,清除safari缓存,但没有运气。这是错误: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%2Fv3%2Foauth%2F%23redirect-uri-mismatch
所有论坛都说要修复这个错误,删除我的请求的redirect_uri参数,我已经这样做了。
这是我的要求:https://github.com/login/oauth/authorize?client_id=myclientid&scope=user,public_repo
所有内容都会显示出来,当我单击“授权”时,它会将我重定向回我的应用程序,但它不是给我代码,而是给我错误。

发布于 2018-05-21 16:12:52
要么将http而不是https放在授权回调URL中
在您的GitHub OAuth应用程序设置中。
http://www.example.com/oauth/complete/github/另一种选择
settings.py
SOCIAL_AUTH_REDIRECT_IS_HTTPS = Truehttps://stackoverflow.com/questions/34730153
复制相似问题