duanletao9487
2019-06-18 12:40
浏览 503
已采纳

Codeigniter的URL问题(Azure AD回复URI)

I searched for hours but didn't find any solution. I want users to connect with Office 365 and use an Azure App to do this with a javascript single page app. I work in local and all works fine when I test the code in a basic www/testapp folder. But when I use the code in my Codeigniter project, also in a basic assets folder, I get this error message :

AADSTS50011: The reply url specified in the request does not match the reply urls configured for the application: 'xxxxxxx'.

The redirection URI in Azure portal is correctly setted but the error is still here. So I think it comes from Codeigniter parameters (URI redirection, etc.) but I don't know how to fix it.

Thx for your help !

AADSTS50011: The reply url specified in the request does not match the reply urls configured for the application: 'xxxxxxx'.

图片转代码服务由CSDN问答提供 功能建议

我搜索了几个小时但没有找到任何解决方案。 我希望用户与Office 365连接并使用Azure应用程序使用javascript单页面应用程序执行此操作。 我在本地工作,当我在基本的www / testapp文件夹中测试代码时,一切正常。 但是当我在我的Codeigniter项目中使用代码时,也在基本资源文件夹中,我收到以下错误消息:

AADSTS50011:请求中指定的回复网址 与为应用程序配置的 回复网址不匹配:'xxxxxxx'。

Azure门户中的重定向URI已正确设置但错误仍在此处。 所以我认为它来自Codeigniter参数(URI重定向等),但我不知道如何解决它。

Thx求助!

AADSTS50011:请求中指定的回复网址与为应用程序配置的 回复网址不匹配:'xxxxxxx'。

  • 写回答
  • 好问题 提建议
  • 追加酬金
  • 关注问题
  • 邀请回答

1条回答 默认 最新

  • dongzhao8233 2019-06-22 06:14
    最佳回答

    Hi thanks for your replies ! The problem came from Codeigniter config.php file. The base_url parameter was empty, so the url in localhost was 'http://[:1]/mysite/' instead of 'http://localhost/mysite/'. Just had to set base_url information and now it works.

    评论
    解决 无用
    打赏 举报

相关推荐 更多相似问题