【发布时间】:2021-04-28 04:53:14
【问题描述】:
我正在关注this guide 对 Microsoft Graph API 进行身份验证,并且使用 Postman 我可以通过 POST 到 /token 端点成功获取令牌:
现在,复制该令牌并将其粘贴到 Authorization: Bearer {{token}},我尝试向 https://graph.windows.net/my-tenant/me?api-version=1.6/ 发出请求,但我得到的回复显示
{
"odata.error": {
"code": "Authentication_ExpiredToken",
"message": {
"lang": "en",
"value": "Your access token has expired. Please renew it before submitting the request."
},
"date": "2018-05-23T08:05:10",
"requestId": "f56bcd26-4314-41c6-81b6-e6540aa7b0ae",
"values": null
}
}
我刚刚创建的令牌怎么会过期?
【问题讨论】:
标签: oauth-2.0 azure-active-directory microsoft-graph-api