MINOR: jwt: JWT tokenizing helper function
authorRemi Tricot-Le Breton <rlebreton@haproxy.com>
Fri, 1 Oct 2021 13:36:55 +0000 (15:36 +0200)
committerWilliam Lallemand <wlallemand@haproxy.org>
Thu, 14 Oct 2021 14:38:10 +0000 (16:38 +0200)
commite0d3c0008690b9fa076172d8c31bf0e1d383cd55
tree391f5f7e6bbebb835206dc83e12903df585605d4
parent7feb36177618026a9ed5b2f21c995093b087bd7e
MINOR: jwt: JWT tokenizing helper function

This helper function splits a JWT under Compact Serialization format
(dot-separated base64-url encoded strings) into its different sub
strings. Since we do not want to manage more than JWS for now, which can
only have at most three subparts, any JWT that has strictly more than
two dots is considered invalid.
include/haproxy/jwt-t.h
include/haproxy/jwt.h
src/jwt.c