【问题标题】:How to get refresh token for the first time?第一次如何获取刷新令牌?
【发布时间】:2019-05-07 14:14:15
【问题描述】:

当我第一次请求access token 时,我不应该也获得refresh token 吗?

我正在关注 .net 核心版本的刷新流逻辑 (Startup.cs, AuthorizationController.cs) 并使用 postman 进行测试以获取访问令牌和刷新令牌。我可以获得访问令牌,但似乎它没有返回刷新令牌。

我在这里错过了什么?

【问题讨论】:

    标签: postman asp.net-core-2.0 refresh-token openiddict


    【解决方案1】:

    解决了。

    我不得不在邮递员Body中添加一个额外的键和值

    密钥:scope 值:openid offline_access

    【讨论】:

      猜你喜欢
      • 2016-06-22
      • 2019-05-02
      • 2021-08-25
      • 2022-10-31
      • 2018-02-27
      • 2014-04-08
      • 1970-01-01
      • 2020-02-26
      • 2019-09-09
      相关资源
      最近更新 更多