flutter - Flutter 中的 Azure Active Directory 身份验证失败

标签 flutter azure powerapps

我正在尝试在 flutter 应用程序中对我的动态 crm api 进行身份验证。我正在使用 aad_auth 包。但我无法验证。我在 aad 中创建了应用程序,并遵循了所有必要的步骤。仍然存在身份验证错误。这是我的屏幕截图:

AAD 应用程序:

enter image description here

flutter session :

enter image description here

登录操作和错误:

enter image description here

如何解决这个问题?

谢谢。

最佳答案

您可以使用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/

相关文章:

flutter - 如果 bool 列表中的所有值都为 true,则将变量设置为 true 的最佳方法

asynchronous - 在 Flutter 中创建异步验证器

Dart/flutter : String data from initState can't be passed via setState

Azure 前门自定义域停机

Azure 自定义连接器动态架构不起作用

dart - 如何确定 Flutter 中图像的宽度和高度?

azure - Windows Azure Web 角色 - RoleEnvironment.Changing 去了哪里?

c# - 在 Visual Studio 或 SQL Server Management Studio 中连接到 Azure SQL 数据库需要执行哪些步骤?

sharepoint-online - 如何从术语集加载所有托管元数据值

sharepoint-online - 如何检查按钮公式中组合框(选定项目)的值(可见属性)