【问题标题】:azure AD: The reply url specificed in the request does not match the reply url configured in the applicationazure AD:请求中指定的回复 url 与应用程序中配置的回复 url 不匹配
【发布时间】:2021-03-12 09:13:17
【问题描述】:

我想让我的应用(使用 firebase)可以使用 microsoft 登录 我正在使用这个包https://pub.dev/packages/firebase_auth_oauth/versions

User user = await FirebaseAuthOAuth().openSignInFlow("microsoft.com",
        ["email openid"], {'tenant': 'my-id'});
    ;

我在 azure AD 中添加了我的应用程序,当我使用我的登录功能时,我得到了这个。

我在 azure AD 中看到了一些关于重定向 URL 的信息,但我不知道它应该是什么。 firebase 文档是这样说的:

When registering apps with these providers, be sure to register the *.firebaseapp.com domain for your project as the redirect domain for your app. (https://firebase.google.com/docs/auth/android/microsoft-oauth)

但我不知道在哪里做(也只是 *.firebaseapp.com 还是 * 需要什么?)

有什么帮助吗?

【问题讨论】:

  • 需要在Azure门户中配置回复url。
  • @CarlZhao 我应该放什么?只是做 *.firebaseapp.com 是行不通的。
  • 你在代码中配置的回复url必须和portal中配置的一致!
  • 我没有在我的代码中添加回复网址

标签: firebase flutter azure-active-directory


【解决方案1】:

不匹配的问题有一个通用的解决方案:

当您访问应用程序 url 时,您将被重定向到登录页面。解码授权请求URL,你会发现redirect_uri,复制redirect_uri的值并粘贴到Azure Portal,然后重试。

对于重定向URL,它应该以https开头,如果需要以http开头,则必须将其配置为http://localhost

【讨论】:

  • https%3A%2F%2Fshare-files-26506.firebaseapp.com%2F__%2Fauth%2Fhandler 这是您的意思是网址中的部分吗?我现在应该在 azure 门户中添加什么?
  • @venum 解码 url 并将其粘贴到 Azure 门户中。
  • 有效!遗憾的是它没有存储在火力基地中
猜你喜欢
  • 2021-12-23
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2020-12-25
  • 1970-01-01
相关资源
最近更新 更多