python-3.x - django-microsoft-auth:为输入参数“redirect_uri”提供的值无效
问题描述
我正在 Azure AD 和 Django 的帮助下创建单点登录 (SSO)。我在用
蟒蛇==3.8
姜戈==3.1
django-microsoft-auth==2.4.0
我按照https://django-microsoft-auth.readthedocs.io/en/latest/usage.html上的教程进行操作
但是当我在完成 10 个步骤后尝试使用注册电子邮件 ID 登录时出现此错误。我使用的天蓝色广告中的重定向 URI 是https://localhost:8080/microsoft/auth-callback/
解决方案
问题是我给了 https 而不是 http 作为重定向 URI
所以而不是
https://localhost:8080/microsoft/auth-callback/
利用
http://localhost:8080/microsoft/auth-callback/
同样在我使用的 postgresql 数据库中,我们应该提供值
本地主机:8080
进入表django_site
推荐阅读
- spring-boot - 无法写入 JSON:没有为类 net.i2p.crypto.eddsa.math.ed25519.Ed25519LittleEndianEncoding 找到序列化程序
- javascript - 如何将 react-tippy 中的 html 道具中的组件连接到 redux 表单
- sql - 在 SQL Server 中替换字符串中的有趣字符
- oracle - 出现错误 - Unknown Command ,同时删除视图(如果存在于 oracle 中)
- java - Retrofit 发送多个请求
- python - python中打印函数的关键字参数
- python - 将 dtabricks 服务中的 spark graphframe 加载到云端的 neo4j db
- entity-framework - 实体框架代码先一对一双向导航
- python - python链接模块执行
- javascript - 路由器已更改,但组件未重新渲染