question

GauravPandey-0691 avatar image
0 Votes"
GauravPandey-0691 asked RakeshJagatap-4451 commented

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"
}



azure-active-directoryazure-ad-authenticationazure-ad-saml-sso
· 3
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.

Hello @GauravPandey-0691 ,
Thanks for reaching out.

Hope you might have looked at this post, if not then I would recommend you to review.

Also, could you please confirm did this ever worked before or new setup altogether? Thanks.

0 Votes 0 ·

@GauravPandey-0691 , I just wanted to check in and see if you had any other questions or if you were able to resolve this issue? If you have any other questions, please let me know.
Thank you for your time and patience throughout this issue.

0 Votes 0 ·

Hi, can you please mark your own answer as answered, Doing so helps others find answers to their questions.

0 Votes 0 ·

1 Answer

GauravPandey-0691 avatar image
1 Vote"
GauravPandey-0691 answered sikumars-msft commented

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

· 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.

@GauravPandey-0691 , Glad that you were able to fix the issue, wondering if you could share your findings here so that others in the community facing similar issues can easily find the solution.

0 Votes 0 ·