On 05/26/2018 04:27 PM, Jonathan Matthews wrote: > Hello folks, > > The payload (and other parts) of a JSON Web Token (JWT, a popular and > growing auth standard: https://tools.ietf.org/html/rfc7519) is base64 > encoded. > > Unfortunately, the payload encoding (specified in > https://tools.ietf.org/html/rfc7515) is defined as the "URL safe" > variant. This variant allows for the lossless omission of base64 > padding ("=" or "=="), which the haproxy b64dec convertor doesn't > appear to be able cope with. The result of
Jonathan, It's not just padding, urlsafe base64 replaces '+' with '-', and '/' with '_'. For now, I guess the easiest way would be to write a simple converter in Lua, which just returns the original string, and send payload somewhere for further processing. Best regards, Adis

