haproxy/reg-tests/sample_fetches
Moemen MHEDHBI 92f7d43c5d MINOR: sample: add ub64dec and ub64enc converters
ub64dec and ub64enc are the base64url equivalent of b64dec and base64
converters. base64url encoding is the "URL and Filename Safe Alphabet"
variant of base64 encoding. It is also used in in JWT (JSON Web Token)
standard.
RFC1421 mention in base64.c file is deprecated so it was replaced with
RFC4648 to which existing converters, base64/b64dec, still apply.

Example:
  HAProxy:
    http-request return content-type text/plain lf-string %[req.hdr(Authorization),word(2,.),ub64dec]
  Client:
    Token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyIjoiZm9vIiwia2V5IjoiY2hhZTZBaFhhaTZlIn0.5VsVj7mdxVvo1wP5c0dVHnr-S_khnIdFkThqvwukmdg
    $ curl -H "Authorization: Bearer ${TOKEN}" http://haproxy.local
    {"user":"foo","key":"chae6AhXai6e"}
2021-04-13 17:28:13 +02:00
..
cook.vtc REGTESTS: Add sample_fetches/cook.vtc 2020-11-13 19:46:15 +01:00
hashes.vtc REGTESTS: mark sample_fetches/hashes.vtc as 2.4-only 2021-02-04 18:07:59 +01:00
so_name.vtc MINOR: listener: add so_name sample fetch 2020-03-29 05:47:29 +02:00
srv_name.vtc
ubase64.vtc MINOR: sample: add ub64dec and ub64enc converters 2021-04-13 17:28:13 +02:00
vars.vtc MEDIUM: cli: add a new experimental "set var" command 2021-03-26 16:57:43 +01:00