django-microsoft-auth:为输入参数';redirect_uri';提供的值无效 [英] django-microsoft-auth : The provided value for the input parameter 'redirect_uri' is not valid
本文介绍了django-microsoft-auth:为输入参数';redirect_uri';提供的值无效的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在Azure AD和Django的帮助下创建单点登录(SSO)。我正在使用
Python==3.8
Django==3.1
django-microsoft-auth==2.4.0
我按照https://django-microsoft-auth.readthedocs.io/en/latest/usage.html
上的教程操作 但我在完成10个步骤后尝试使用注册电子邮件ID登录时收到此错误。我使用的Azure广告中的重定向URI是https://localhost:8080/microsoft/auth-callback/推荐答案
问题是我将HTTPS而不是HTTP作为重定向URI
SO而不是
https://localhost:8080/microsoft/auth-callback/
使用
http://localhost:8080/microsoft/auth-callback/
另外,在我使用的PostgreSQL数据库中,我们还应提供值
本地主机:8080
进入表Django_Site
这篇关于django-microsoft-auth:为输入参数';redirect_uri';提供的值无效的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文