# Token validation with https://jwt.io/#debugger

**URL:** <https://community.auth0.com/t/token-validation-with-https-jwt-io-debugger/6648>\
**Category:** Get Help\
**Tags:** jwt-validation\
**Created:** [May 17, 2017, 11:22pm UTC](https://community.auth0.com/t/token-validation-with-https-jwt-io-debugger/6648 "2017-05-17T23:22:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ms1](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ms1/32/14222_2.png) [@ms1](https://community.auth0.com/u/ms1)\
**Post date:** [May 17, 2017, 11:22pm UTC](https://community.auth0.com/t/token-validation-with-https-jwt-io-debugger/6648/1 "2017-05-17T23:22:46Z")

</div>

Hello, I have a question.  
We have developped for our application our own JWT token creator + parser in Java. We used no lib, but just used the Java SDK and followed the relevant RFC spec or other descriptions found elsewhere.  
During development we used the [JSON Web Tokens - jwt.io](https://jwt.io/#debugger) to create tokens and to verify our own generated tokens. All works fine.

Purpose is to validate tokens generated by another party. Now we did first integration tests but found that the other party generates tokens, which our validator regards as invalid. On the other hand [JSON Web Tokens - jwt.io](https://jwt.io/#debugger) accepts these tokens. To us these tokens definitely look like base64 rather than base64URL encoded which in our opinion is not spec conform.  
[JSON Web Tokens - jwt.io](https://jwt.io/#debugger) works in two direction. So if afterwards we use the tool to generate the token, it generates a different token, our validator accepts.

Can you tell us a reason why the other party token can be successfully validated with the tool?

---

<div class="post-metadata">

**Author:** ![ms1](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ms1/32/14222_2.png) [@ms1](https://community.auth0.com/u/ms1)\
**Post date:** [May 18, 2017, 3:18pm UTC](https://community.auth0.com/t/token-validation-with-https-jwt-io-debugger/6648/2 "2017-05-18T15:18:02Z")

</div>

We analyzed the third party token and the [jwt.io](http://jwt.io) validator behaviour:  
As assumed the other party uses Base64 rather than Base64URL encoding.  
The [jwt.io](http://jwt.io) validator obviously uses the received encoded header/payload string to generate the signature to compare with the received signature. According to [RFC 7515: JSON Web Signature (JWS)](https://tools.ietf.org/html/rfc7515#page-16), chap. 5.2.8 this is wrong, because the comparison signature must be generated from a new generated header/payload string. If you do this, the Base64URL encoding problem would become obvious, and thus the token validation would fail.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [March 2, 2018, 5:53am UTC](https://community.auth0.com/t/token-validation-with-https-jwt-io-debugger/6648/3 "2018-03-02T05:53:58Z")

</div>


