第一次获取refresh token怎么办?

How to get refresh token for the first time?

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

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

我在这里错过了什么?

已解决。

我不得不在 postman 中添加一个额外的键值对 Body

键:scope 值:openid offline_access