【发布时间】: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