Microsoft 图 api - 没有 refresh_token
Microsoft graph api - no refresh_token
我想使用 MS 图表 api,我有代码,我需要用代码交换访问令牌,当我 post 请求时,就像 docs 我得到这个回答
{
"token_type": "Bearer",
"scope": "mail.read mail.send user.read user.read.all",
"expires_in": 3599,
"ext_expires_in": 0,
"access_token": "blah blah blah ..... §§&&##"
}
我发现这个令牌将在 1 小时后过期,我需要 refresh_token
来延长令牌,但我没有收到任何 的响应 access_token
有什么解决办法吗?
谢谢
查看 Active Directory Tokens 的文档,您需要在授权代码请求和令牌请求中请求 offline_access
范围。
我想使用 MS 图表 api,我有代码,我需要用代码交换访问令牌,当我 post 请求时,就像 docs 我得到这个回答
{
"token_type": "Bearer",
"scope": "mail.read mail.send user.read user.read.all",
"expires_in": 3599,
"ext_expires_in": 0,
"access_token": "blah blah blah ..... §§&&##"
}
我发现这个令牌将在 1 小时后过期,我需要 refresh_token
来延长令牌,但我没有收到任何 的响应 access_token
有什么解决办法吗?
谢谢
查看 Active Directory Tokens 的文档,您需要在授权代码请求和令牌请求中请求 offline_access
范围。