using access token generated by refresh token to creat todo task failed

Stephen 0 Reputation points
2024-01-21T18:21:50.13+00:00

I am using refresh token to get access token and success,

@app.route('/refresh', methods=['GET'])

but when I use the access token to get todo list or create todo task, it failed

{"error":{"code":"UnknownError","message":"","innerError":{"date":"2024-01-21T16:17:13","request-id":"aa970622-a1db-4661-890d-c35c6a2140b6","client-request-id":"aa970622-a1db-4661-890d-c35c6a2140b6"}}}'


when get access token, I can see the scope like this profile openid email https://graph.microsoft.com/Presence.Read.All https://graph.microsoft.com/Tasks.Read https://graph.microsoft.com/Tasks.Read.Shared https://graph.microsoft.com/Tasks.ReadWrite https://graph.microsoft.com/Tasks.ReadWrite.Shared https://graph.microsoft.com/User.Read https://graph.microsoft.com/User.Read.All https://graph.microsoft.com/User.ReadBasic.All https://graph.microsoft.com/User.ReadWrite https://graph.microsoft.com/User.ReadWrite.All seems enough permissions, but failed, the failed response shows the reason:unauthorized who can explain this for me? thankyou

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
13,489 questions
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.