Thanks @sikumars-msft , the application was created as a saml so it was responding the above issue. I has been resolved thanks
Getting Issue Verifying a assertion token received from sso
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"
}