我正在尝试在 flutter 应用程序中对我的动态 crm api 进行身份验证。我正在使用 aad_auth 包。但我无法验证。我在 aad 中创建了应用程序,并遵循了所有必要的步骤。仍然存在身份验证错误。这是我的屏幕截图:
AAD 应用程序:
flutter session :
登录操作和错误:
如何解决这个问题?
谢谢。
最佳答案
您可以使用https://pub.dev/packages/firebase_auth_oauth为其打包。
并使用 Microsoft Auth 提供程序登录 Firebase。
User user = await FirebaseAuthOAuth().openSignInFlow(
"microsoft.com", ["email openid"], {'tenant': 'your-tenent-id'});
这与 firebase 很好地集成,因此 firebase authStateChange 也可以使用此方法。
关于flutter - Flutter 中的 Azure Active Directory 身份验证失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/72658074/