【问题标题】:django-microsoft-auth : The provided value for the input parameter 'redirect_uri' is not validdjango-microsoft-auth:为输入参数“redirect_uri”提供的值无效
【发布时间】:2020-12-14 11:18:21
【问题描述】:

我正在 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 登录时出现此错误。我使用的天蓝色广告中的重定向 URI 是 https://localhost:8080/microsoft/auth-callback/

【问题讨论】:

  • 您是如何进入 Microsoft 登录页面的?我正在尝试实现相同的模块,但我不知道在哪里输入凭据?

标签: python-3.x azure django-rest-framework single-sign-on django-3.1


【解决方案1】:

问题是我给了 https 而不是 http 作为重定向 URI

所以而不是

https://localhost:8080/microsoft/auth-callback/

使用

http://localhost:8080/microsoft/auth-callback/

在我使用的 postgresql 数据库中,我们也应该提供值

本地主机:8080

进入表django_site

【讨论】:

    猜你喜欢
    • 2012-09-19
    • 1970-01-01
    • 2012-11-26
    • 2017-08-27
    • 1970-01-01
    • 2021-02-27
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多