effortless-mgmt / ems_app

Effortless Management System Flutter App
3 stars 0 forks source link

Base64Decoder().convert() throws exception when validating token #153

Closed twast92 closed 5 years ago

twast92 commented 5 years ago

Exception message:

Invalid length, must be multiple of four

Tokens can be of a length that is not a multiple of four. Pls fix the backend so this isn't the case. kthxbye

algorythm commented 5 years ago

JWS standard defines that the padding should not be included: https://tools.ietf.org/html/rfc7515#section-2.

See dotnet/core#2235.

RFC 7515 - JSON Web Signature (JWS)
algorythm commented 5 years ago

Re-opened as the issue is still an issue, which has to be fixed client side. The error is not on the backend, but the app.