【问题标题】:What is the right redirect uri for OpenIDConenct in flutter?Flutter 中 OpenIDConnect 的正确重定向 uri 是什么?
【发布时间】:2020-12-13 23:56:53
【问题描述】:

我在 Flutter 1.20.2 中使用 openid_connect 包。

我应该在这个 api 的重定向 uri 部分写什么?

final authenticator = Authenticator(client,
          scopes: scopes, , urlLancher: urlLauncher, redirectUri: '???');

【问题讨论】:

    标签: flutter redirect openid openid-connect


    【解决方案1】:

    移动 OAuth 最常见和最简单的选项是私有 URI 方案值,例如:

    • com.mycompany.myapp:/callback

    如果您更有野心,可以使用声明的 Https 方案,例如:

    我的资源

    浏览我的几篇视觉博客文章可能会帮助您了解它的外观。我没有使用 Flutter,但 OAuth 概念将是相同的:

    【讨论】:

      猜你喜欢
      • 2023-03-20
      • 2019-03-07
      • 2018-06-17
      • 2020-02-29
      • 2018-12-08
      • 2010-10-23
      • 2012-02-10
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多