Closed mkubala closed 5 years ago
This PR fixes an issue with RS256 JSON Web Signatures being encoded using BASE64 encoder instead of BASE64URL one. In order to prevent from similar mistakes in future, I extracted a protected encode method into JwsAlgorithm trait.
RS256
BASE64
BASE64URL
encode
JwsAlgorithm
This PR fixes an issue with
RS256
JSON Web Signatures being encoded usingBASE64
encoder instead ofBASE64URL
one. In order to prevent from similar mistakes in future, I extracted a protectedencode
method intoJwsAlgorithm
trait.