[英]Microsoft graph api - no refresh_token
i want to use MS graph api, i have CODE, and i need to exchange code for access token, when i post request, like in docs i get this answer 我想使用MS图api,我有CODE,我需要交换访问令牌代码,当我发布请求时,就像在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 ..... §§&&##"
}
and this token will expire in 1 hour, i found, that i need refresh_token
to extend token next time, but i havent got any in response with access_token 这个令牌将在1小时后到期,我发现,下次我需要refresh_token
来扩展令牌,但我没有得到任何响应access_token
any solution? 任何解决方案
Thanks 谢谢
查看Active Directory令牌的文档,您需要在授权代码请求和令牌请求中请求offline_access
范围。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.