7 Commits

Author SHA1 Message Date
Dominik Thalhammer
1e9b1354e1 🐛 Fix recursion in count_padding (#432) 2026-10-06 17:53:56 +02:00
Marcel
59cdb435db Refactor base64 decoding to use a lookup table (#364)
* Refactor base64 decoding to use a lookup table

* Refactor base64 decoding to use a lookup table - clang format adaptions
2024-11-16 17:06:29 -08:00
Chris Mc
0628011aeb 🔤 Support for Base64url with case insensitive padding (#219)
* stl algs for `alphabet::index`

* refact `jwt::base` to a namespace

instead of a class

* recursive count passing

* test complicated scenarios

* count padding of variable length

* new percent enconding helper

* spelling

* fix gcc 4.8

* trying to avoid the runtime problem on init list with dynamic values

* :qRevert "trying to avoid the runtime problem on init list with dynamic values"

This reverts commit b9be15e06c397e6c2fecc6d60bde90bbb55f84a2.

* switch to vector

* linter

* missing header

* fix gcc 4.8 more

* more tests with new alphabet
2022-09-19 08:52:07 -07:00
Chris Mc
b21d80c22e 🧰 Linting and maintenance (#120)
* some manual fixes to obtain

* fairly close enough

* whitespace fixes

* add comment

* adding clang format + applied

* add editorconfig (supported natively by github web editor)

* apply linting to project

* clean up CI workflows

* zap vcpkg folder

actual one is here
https://github.com/microsoft/vcpkg/tree/master/ports/jwt-cpp

* adding a logo

* thin the lines in the pluses

* use logo + more links to spec and examples

* Create lint.yml

* apply linting
2021-01-11 17:37:14 -05:00
Chris Mc
27673b058d adding test code fro pad and trim 2020-04-11 12:58:19 -04:00
Christopher McArthur
a9a1b80eda adding tests to cmake 2020-01-19 17:25:51 -05:00
Christopher McArthur
bb42fd9472 moving tests to a subdir 2020-01-19 15:08:20 -05:00