Share via

Getting Issue Verifying a assertion token received from sso

Gaurav Pandey 16 Reputation points
2021-08-23T09:08:22.553+00:00

Hi,

I am getting the following error while i am verifying the access token received from teams sso,
please provide the exact context which might have caused this issue.

URL -> https://login.microsoftonline.com/common/oauth2/v2.0/token
BODY -> grant_type=urn:ietf:params:oauth:grant-type:jwt-bearer&client_id={app id}&client_secret={app secret}&assertion=
{token_received}&scope=User.Read&requested_token_use=on_behalf_of

Response -> {
"error": "invalid_grant",
"error_description": "AADSTS50013: Assertion failed signature validation. [Reason - The key was not found.]\r\nTrace ID: da9c8ef4-ac56-4780-ad29-9bfe6c7a9b00\r\nCorrelation ID: 920d1825-262c-4646-a897-b88a44a83e96\r\nTimestamp: 2021-08-23 06:56:38Z",
"error_codes": [
50013
],
"timestamp": "2021-08-23 06:56:38Z",
"trace_id": "da9c8ef4-ac56-4780-ad29-9bfe6c7a9b00",
"correlation_id": "920d1825-262c-4646-a897-b88a44a83e96",
"error_uri": "https://login.microsoftonline.com/error?code=50013"
}

Microsoft Security | Microsoft Entra | Microsoft Entra ID

1 answer

Sort by: Most helpful
  1. Gaurav Pandey 16 Reputation points
    2021-09-09T11:37:17.517+00:00

    Thanks @sikumars-msft , the application was created as a saml so it was responding the above issue. I has been resolved thanks

    Was this answer helpful?

    3 people found this answer helpful.

Your answer

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