* dev container + vscode extensions
* exploring cmake presets for CI
* ignore user presets
* add configure to build preset
windows ran in debug, which means the multi config needs more help
* coverage preset
* creating a fuzzing preset
* fuzzing fix cwd + more configs to preset
* move cmake set vars to right section
https://learn.microsoft.com/en-us/cpp/build/cmake-presets-vs?view=msvc-170
"You can set C and C++ compilers by using cacheVariables.CMAKE_C_COMPILER and cacheVariables.CMAKE_CXX_COMPILER in a Configure Preset. It's equivalent to passing -D CMAKE_C_COMPILER=<value> and -D CMAKE_CXX_COMPILER=<value> to CMake from the command line."
* fix workdir for new fuzz run targets
* split up presets into more files
* fix include order (liking this less)
* add asan to presets
* fix copy paste
* add asan build preset
* move ubsan to presets
* replace mustache with a cmake script
* touch ups
* restore file to void merge conflicts
* fix order for args
* remove action wrapper
more quotes for inputs
* revert bad render of boost_json
* fix casing
* format changes
* test to see if output is working
* last try
* git revert moving mustache to cmake
* cmake not enough for presets
* drop ci prefix
* new test for `library_ROOT` search path
* install with presets
* cmake --install does not take a preset
* install with preset is not yet supported
https://gitlab.kitware.com/cmake/cmake/-/issues/23208
* add missing build step
* more global fuzzing flags to toolchain file
* fixup toolchain in presets
* fix pathing and limit configs to tested platforms
* clean up + use presets for clang-tidy
* dry up sanitizer flags
* try install with a preset
* remove duplicated test
* notes about hunter test
* skip checking the compiler since this causes errors with the same CMake uses in combinations with the fuzz sanitizer flag
https://github.com/prince-chrismc/jwt-cpp/actions/runs/7481024827/job/20361722539?pr=33
```
/usr/bin/ld: /usr/bin/ld: DWARF error: invalid or unhandled FORM value: 0x22
CMakeFiles/cmTC_ff7c6.dir/testCCompiler.c.o: in function `main':
testCCompiler.c:(.text.main[main]+0x0): multiple definition of `main'; /usr/lib/llvm-14/lib/clang/14.0.0/lib/linux/libclang_rt.fuzzer-x86_64.a(FuzzerMain.cpp.o):(.text.main+0x0): first defined here
/usr/bin/ld: /usr/lib/llvm-14/lib/clang/14.0.0/lib/linux/libclang_rt.fuzzer-x86_64.a(FuzzerMain.cpp.o): in function `main':
(.text.main+0x12): undefined reference to `LLVMFuzzerTestOneInput'
```
* remove system name to disable cross compiling
* tests do not pass clang-tidy
* drop toolchain, use target specific flags
* leave flags in cmake
* missing deps + clean apt files
* remove some code duplication
* fix typo
* devcontainers fix, test and add wolfssl
refactored installer to have a script that could be reused
* add missing build context
* pass version to script
* dont use bash syntax
* fix typo
* upload tar.gz for new releases
* revert name to manually trigger it
* Update and rename nuget.yml to release.yml
* disable nuget for testing
* add a zip as well
* back to basics
* remove remove testing code
* update workflow name
* enable testing needs to be in the root
* add a test preset and use it in some workflows
* fix linting tests
* bump github actions
* bump python setup
* drop dev containers
* dont install openssl on windows
* revert merge conflicts
* fix whitespace
* fix private claims example to have a valid token
#351
* put back versioned format
I dont remember why, it looks like it was debugging
* bump actions
* avoid conflicts
* work around nodejs being too new
https://www.digitalocean.com/community/tutorials/how-to-install-node-js-on-ubuntu-18-04
* clang-format-14 needs ubuntu 22
* dont use source
* limit check to v3
there no docker image for node 20 on debian buster with gcc-4.8 and ubuntu 18 has a glibc that is too low
we'll need to checkout manually when needed
* explicit format
* Update jwt.yml
* clean up attempt code
* update tests to run jsoncpp
* fix order for type checking
Co-authored-by: cjserio <cjserio@users.noreply.github.com>
* linter should be more specific on on default for trait
* fix linter
* output folder name
* use filepath for linter processing
---------
Co-authored-by: cjserio <cjserio@users.noreply.github.com>
* Implemented JsonCPP Traits
* quick pass to add CI
* correct find_packge to use config and not be required
* typo in default version
* jsoncpp forces out of source builds
* disable tests and shared library
* add missing build step
* try a different target + build less
"they" do not maintain the CMake scripts so this will be fun https://github.com/open-source-parsers/jsoncpp/issues/455#issuecomment-478251641
* fix name for traits (missed replaces)
* Added missing array_type constructor so that basic_claims can be formed from sets of values
* Linters and more tests + fetchcontent gtest
* linter
* support library names with many separators
* linters
* run clang format after rendering defaults
---------
Co-authored-by: Chris Mc <prince.chrismc@gmail.com>
* quick poc for Thalhammer#174
* Copy paste
* Rename include/jwt-cpp/traits/traits.h to include/jwt-cpp/traits/danielaparker-jsoncons/traits.h
* Create traits.h
* adding a namespace
* mustache + action to automate defaults generation
since they should always be the same
* fix order
* traits tests should use traits
* playing with header order
to make clang happy
* install all possible traits
switch badge name to sha
* Update CMakeLists.txt
* Update traits.h
* try commenting corrected code
* rm typescript
* make sure to implace edit
* dont comment when no diff
* apply linting
* fixup boost-json traits
* move comment and render to composite action
* actions/github-script does not leave context in the usual spot
* enabled globstar
* make sure to forward inputs
* try using env normally
* fix typo
* pass in linter name correctly
* debug print
* fix linting issues
* more debug printing
* fix linting issues
* fix typpo + more rebug print
* apply linting
* more debug
* try npm install global to be less intrusive
* wip render traits tests
* Update lint.yml
* global install does not work
* Update action.yml
* Update defaults.h
* remove nodejs action poc
* include jsoncons in main test application (for coverage of new files)
* do not exclude json (since it's used by all the traits)
* exclude bundled json libraries
* apply linting
* add jsoncons for coverage testing
* jsoncons set default to a viable version
* exploring ci failure
* Revert "exploring ci failure" it's overlapping symbols
This reverts commit 3d5b7f9f5d4f393f03b84a59557fecdee833c822.
* add missing specialization
* be explicit with the tests
* Create CMakeLists.txt
* Create danielaparker-jsoncons.cpp
* Update lint.yml
* Update traits.yml
* lint
* better access too decoded claims
* more tests on verify
* tweak test
trying to find minimum
* lets enable linting tests
* using env impl for github script
* fix typo
* apply linting
* add boost to the tests (very hacky)
* Update lint.yml
* ceate light boost installer
there is no cmake install anymore so just a blanket copy should do
* remove path requirement
* outline for commit and push linting on comment
* try different webhook target
* more event types
* fix if for more event types
* just a test commit
* Update lint.yml
* Update lint.yml
* Update lint.yml
* Apply automatic changes
* add token
* screw up formatting
* Update lint.yml
* Update lint.yml
* Apply automatic changes
* fix merge conflicts
* missing errors
* playing with globbing
* lint issues
* matrix on comment should give many pushes
* Apply automatic changes
* Update lint.yml
* Apply automatic changes
* Apply automatic changes
* fix rebase
* apply render tests
* Apply automatic changes
* Apply automatic changes
* Delete package-lock.json
* fail linting
* Update .gitignore
* Update lint.yml
* Update lint.yml
* Update lint.yml
* Apply automatic changes
* Update lint.yml
* Update CMakeLists.txt
* refactor boost.json inclusion
- find paths
- compile library
- code coverage
- traits example
* Apply automatic changes
* debug log
* Update action.yml
* debug output
* Update action.yml
* Delete private-boost-json.cpp.in
* Update private-find-boost-json.cmake
* Update CMakeLists.txt
* Update CMakeLists.txt
* Create CMakeLists.txt
* Update boost-json.cpp
* Update boost-json.cpp
* Update boost-json.cpp
* Update boost-json.cpp
* remove old boost tests
* examples to include traits
* fix compilation
* test nlohmann json traits
* linting
* refactor traits to make badges
* try with less expression syntax
* trying single quotes
* advertise traits support
* Update lint.yml
* Update lint.yml
* Update lint.yml
* sync (prince-chrismc/jwt-cpp#16)
* 🔧 Replace RSA related deprecated functions (#189)
* RSA_size() --> EVP_PKEY_size()
* getting rid of deprecated functions in rsa-pss signature creation
* getting rid of deprecated functions in rsa-pss signature verification
* generate_hash not used in pss
* Update lint.yml
* Update lint.yml
* Update lint.yml
Co-authored-by: Marek Klein <kleinmrk@gmail.com>
* Update lint.yml
* make sure to use install `nlohmann-json`
* make action folder match trait names
* add example + badge for kazuho-picojson
* link to new examples
* revert debug code
* dont mix matrix with uses
* fix bad copy paste
* spec interface library so it's no compiled
* fix installer
* fix to interface
* fix example
* attempt 2
* make sure to avoid circular reference
* attempt 3
* white space
* white space
* Update and rename .github/actions/comment-linting/action.yml to .github/actions/process-linting-results/action.yml
* Update lint.yml
* Update action.yml
* Update action.yml
* Update README.md
Co-authored-by: prince-chrismc <prince-chrismc@users.noreply.github.com>
Co-authored-by: Marek Klein <kleinmrk@gmail.com>
* Update coverage.yml
* adding a fuzz test
* adding more fuzzing
TBA how to handle input requirement of decode
* base64 encoding input to avoid "obvious" exceptions
trying out the EVP_ interface from #89
* fixing decode fuzz
* accepting exceptions are normal
After comparing with https://github.com/nlohmann/json/blob/v3.9.0/test/src/fuzzer-parse_json.cpp I must agree data can be random so it should be accepted
* decoding twice should produce the same result
again based on https://github.com/nlohmann/json/blob/v3.9.0/test/src/fuzzer-parse_json.cpp
* fixing token decode fuzzer
* adding corpus for fuzz tests + adding them to ci
* removing numbers with more meaning descriptions
* Update BaseEncodeFuzz.cpp
* Update coverage.yml
* Update coverage.yml
* shrink interations
* cleaning cmake
* Update and rename coverage.yml to jwt.yml
* Update lint.yml
* Update jwt.yml
* Update jwt.yml
* adding clang-tidy and asan tests
Playing with clang-tidy, we already had the rule removed in #166... running the static analyzer from CMake reproduced the report in many places... I suspect the macro and `new`/`delete` separation clang-tidy is just unable to understand.
Running the problematic examples + tests with the ASAN enabled reported no problems
* Apply suggestions from code review
* Update lint.yml
* applying linting rules
* fix bad rename
* formating
* clang-tidy on jsoncons tests
* and cmake-format to lint
* cmake format improve change detection
* Update lint.yml
* apply linting
* 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