简体   繁体   English

Microsoft graph api - 没有refresh_token

[英]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.

相关问题 检查 Microsoft 图形令牌过期 - Checking for a Microsoft graph token expiration 如何使用属性传递将带有响应的refresh_token从响应传递到具有串联的请求:TestSuite soapui - How to use Property Transfer to pass refresh_token from Response to request with concatenation : TestSuite soapui Grails 3应用程序中使用Spring Security Rest对“ refresh_token”请求进行403响应 - 403 response on a “refresh_token” request with Spring Security Rest in a Grails 3 application 调用获取访问令牌 Microsoft Graph API 到 REST POST 调用时出现连接超时错误 - Getting connection timeout error while calling get access token Microsoft Graph API through REST POST call 将请求发布到 Microsoft graph API - Post request to Microsoft graph API 使用ReactJS从API刷新令牌 - Refresh token from API with ReactJS Microsoft Graph API Calendar API Null SeriesMasterId - Microsoft Graph API Calendar API Null SeriesMasterId 如何使用 Microsoft Graph API 下载附件? - How to download attachments using Microsoft Graph API? 带有超链接的 Microsoft Graph API Planner 任务详细信息 - Microsoft Graph API Planner Task Detail with hyperlinks Microsoft Graph REST API配置文件照片为守护进程 - Microsoft Graph REST API profilePhoto as deamon
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM