I'm following this guide to authenticate to the Microsoft Graph API, and using Postman I can POST
to the /token
endpoint successfully get a token:
Now, copying that token and pasting it into Authorization: Bearer {{token}}
, I try to make a request to https://graph.windows.net/my-tenant/me?api-version=1.6/
, but the response I get says
{
"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
}
}
How can the token I just created be expired?