26
Views
5
Comments
Solved
[JWT] Error While validating Signature of token
jwt
Service icon
Forge asset by João Almeida

Hi,
I am trying to verify the the a token using the JWT's action named "ReadAndValidateToken".

I am giving the JWK as a plain text as I receive from keys URL and then finding it via "GetJwkFromJwks" action.

The error is mentioned below:

Exceptions caught: ''. token: '[Security Artifact of type 'System.IdentityModel.Tokens.Jwt.JwtSecurityToken' is hidden. For more details, see https://aka.ms/IdentityModel/SecurityArtifactLogging.]'. See https://aka.ms/IDX10511 for details. 

Can anyone help in this? I have searched for this and there is one question on forge but it is very old and the forge must have got some changes since then.


2019-11-11 17-10-24
Manish Jawla
 
MVP
Solution

Hi @Rishabh Tailor

That means your token is not following the right pattern or signature.

Please check with token originator, how they are forming this token because if your token is not valid or broken then you cannot use the forge component to validate it.

At least you should be able to validate your token using below link.

https://www.jwt.io/ 

Regards,

Manish Jawla

2019-11-11 17-10-24
Manish Jawla
 
MVP

Hi @Rishabh Tailor ,

Have you tried verifying your token to the below url as well:

https://www.jwt.io/

If not try that as well and check the response.

We usually use this url to validate the token first, before checking the same using forge component.

And this component is recently updated on 4th July.

Regards,

Manish Jawla 

2025-02-21 07-07-34
Rishabh Tailor

Hi @Manish Jawla ,

I have checked the token already on https://www.jwt.io/, it is not being validated there too.

I checked the keyId and other things they are the same and is one of the keys we get from the Microsoft's Keys endpoint.

Does it mean that the generated token is not correct or something else?


2019-11-11 17-10-24
Manish Jawla
 
MVP
Solution

Hi @Rishabh Tailor

That means your token is not following the right pattern or signature.

Please check with token originator, how they are forming this token because if your token is not valid or broken then you cannot use the forge component to validate it.

At least you should be able to validate your token using below link.

https://www.jwt.io/ 

Regards,

Manish Jawla

2025-02-21 07-07-34
Rishabh Tailor

Hi @Manish Jawla , thanks for you support.
I figured it out, It was due to the audience/scope attribute which was being passed at the time of creation of token.


2019-11-11 17-10-24
Manish Jawla
 
MVP
Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.