question

ScisloTomasz-1579 avatar image
0 Votes"
ScisloTomasz-1579 asked MohammedMehtabSiddiqueMINDTREELIMI-9821 commented

Unable to authenticate to query https://graph.microsoft-ppe.com/v2.0/me

Hi!

With both access_tokens (below) I get 401 response
{"error":{"code":"InvalidAuthenticationToken","message":"Signing key is invalid.","innerError":{"date":"2022-04-22T14:57:16","request-id":"37eb813d-ba4f-42a5-925c-a1ae583eca11","client-request-id":"37eb813d-ba4f-42a5-925c-a1ae583eca11"}}}
from:
https://graph.microsoft-ppe.com/v2.0/me

195578-access-token-1.png


195610-access-token-2.png

My API Permissions:
195661-perms.png


microsoft-graph-profile
access-token-1.png (83.2 KiB)
access-token-2.png (84.1 KiB)
perms.png (30.4 KiB)
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @ScisloTomasz-1579 , Thanks for reaching out just wanted to ask how are you getting the access token for the API and is the version V2 valid.

0 Votes 0 ·

1 Answer

ScisloTomasz-1579 avatar image
0 Votes"
ScisloTomasz-1579 answered MohammedMehtabSiddiqueMINDTREELIMI-9821 commented

Here you can find more details: https://github.com/AzureAD/microsoft-authentication-library-for-js/issues/4734#issuecomment-1108927002 basicaly I'm using React app and V2

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @ScisloTomasz-1579 , I just wanted to know how your getting the bearer token which you are using for authentication and which client credential flow are you using, Thanks.

0 Votes 0 ·