【发布时间】:2021-09-28 09:36:12
【问题描述】:
在使用 PKCE 的 oauth2 代码流授权管理 api 后,来自POST https://login.tapkey.com/connect/token 的响应不返回刷新令牌。我错过了什么吗?
用户重定向到https://login.tapkey.com/connect/authorize?client_id=[...]&redirect_uri=[...]&scope=write%3Agrants&response_type=code&state=[...]&code_challenge=[...]&code_challenge_method=S256"
在回调之后,我使用以下表单数据请求POST https://login.tapkey.com/connect/token:
[
"grant_type" => "authorization_code"
"client_id" => "[...]"
"client_secret" => null
"code" => "[...]"
"redirect_uri" => "[...]"
"code_verifier" => "[...]"
]
我得到的回应是
[
"access_token" => "[...]"
"expires_in" => 3600
"token_type" => "Bearer"
"scope" => "write:grants"
]
【问题讨论】:
-
能否请您也添加您的请求。
-
当然,我编辑了问题。