The Lua HTTP filter exposes handle:base64Escape(str) for encoding but has no corresponding decode function. Scripts that receive base64-encoded values (e.g. in headers from list claims) must work around using a pure-Lua implementation.
Proposed API:
local decoded = handle:base64Decode("Zm9vYmFy") -- returns "foobar"
The Lua HTTP filter exposes handle:base64Escape(str) for encoding but has no corresponding decode function. Scripts that receive base64-encoded values (e.g. in headers from list claims) must work around using a pure-Lua implementation.
Proposed API: