Django Web应用集成Microsoft 365登录时出现AADSTS700016错误的问题求助
Django Web应用集成Microsoft 365登录时出现AADSTS700016错误的问题求助
我正在给一个带有基础用户管理服务的Django Web应用添加Microsoft 365身份验证功能,但每次尝试登录都会遇到下面这个错误:
AADSTS700016: Application with identifier 'None' was not found in the directory 'University Of x'. This can happen if the application has not been installed by the administrator of the tenant or consented to by any user in the tenant. You may have sent your authentication request to the wrong tenant.
我搞不懂怎么让请求URL里带上客户端ID(client ID)。我已经在Django管理后台创建了Microsoft社交应用,也在settings.py里试了好多种写法配置,但都没效果。我还手动把客户端ID加到URL里,结果直接导致网站崩溃了——我觉得这是因为后端没有读取到这个手动添加的client_ID,没法在后续页面处理验证流程。
备注:内容来源于stack exchange,提问作者Erik Lopez
相关产品推荐
相关产品推荐

