about summary refs log tree commit diff
path: root/net/alcoholic_jwt/src/lib.rs
diff options
context:
space:
mode:
authorVincent Ambo <mail@tazj.in>2019-02-13T13·06+0100
committerVincent Ambo <github@tazj.in>2019-02-13T13·18+0100
commitcc1ee9c81d4f1c8620661cbe5945913e415e218f (patch)
tree32ffbd376bb92339faf9b9506310fa3e309fed80 /net/alcoholic_jwt/src/lib.rs
parent4051fe0ec884a8e49a74191b798845415abe7d33 (diff)
fix: Allow trailing bits in base64 encodings
After upgrading the base64 library, tests were failing because the new
default of the library is to disallow trailing bits in JWTs.

Some JWT provider implementations do however use this "forgiving"
version of base64-encoding, hence it is required for token validation.

This adds a base64::Config with the appropriate settings and also
chains base64-errors separately from other token errors.
Diffstat (limited to 'net/alcoholic_jwt/src/lib.rs')
0 files changed, 0 insertions, 0 deletions