robbert229 / jwt

This is an implementation of JWT in golang!
MIT License
105 stars 28 forks source link

Algorithm.Sign() was pre-encoding the signature; the rest of the lib then double encoded them #18

Closed henderjon closed 6 years ago

henderjon commented 6 years ago

Externally created tokens were failing to validate, it turns out that signatures were being double encoded.

I used the debugger at jwt.io to confirm.

coveralls commented 6 years ago

Coverage Status

Coverage remained the same at 75.238% when pulling 2479b53da499cc20e4164eccba239cfda66b74e3 on henderjon:master into 0c020499288fd486b7f29a5ce2d51a55f7d746c3 on robbert229:master.

yedpodtrzitko commented 6 years ago

can confirm this issue