An API that connects multiple Microsoft services, enabling data access and automation across platforms
Have you fixed the error? I have the same one.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I'm trying to execute the userinfo endpoint at https://graph.microsoft.com/oidc/userinfo using an access token received through Open ID Connect.
The response received is:
400 Bad Request
{
"error": {
"code": "UnknownError",
"message": "Token must contain sub claim.",
"innerError": {
"date": "2021-02-22T03:57:51",
"request-id": "533a4343-85ab-45cb-9422-d7ec75677376",
"client-request-id": "533a4343-85ab-45cb-9422-d7ec75677376"
}
}
}
The access token does appear to contain the sub claim, it was visible in https://jwt.io.
If I login to https://developer.microsoft.com/en-us/graph/graph-explorer and try there it works and I notice the sub claim for the access token is different - for the same user.
Can you please help discern what could be the issue?
An API that connects multiple Microsoft services, enabling data access and automation across platforms
Have you fixed the error? I have the same one.