GildedHonour / frank_jwt

JSON Web Token implementation in Rust.
https://jwt.io
Apache License 2.0
252 stars 47 forks source link

Remove trailing "=" from tokens #28

Closed felipenoris closed 6 years ago

felipenoris commented 6 years ago

Based on jwt.io , I find that trailing "=" characters should be removed from the encoded token.

You can check on pyjwt implementation, that funcions base64url_decode and base64url_encode take that in consideration.

This package doesn´t observe this.

GildedHonour commented 6 years ago

Based on jwt.io , I find that trailing "=" characters should be removed from the encoded token.

Is that mentioned at jwt.io? Or is that a hack to make an encoded token look better?

felipenoris commented 6 years ago

@GildedHonour That is defined by RFC 7515. Please, refer to the Appendix C of this document.