mirror of
https://github.com/allankoechke/jwt-cpp.git
synced 2026-11-30 10:18:40 +00:00
0ab9469c7d908034dd7119ddb0ea7518ca8d2027
6 Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
0ab9469c7d |
Update workflows for new GitHub Action Runner Images (#382)
* use ubuntu-latest + update actions/cache * performance-avoid-endl https://clang.llvm.org/extra/clang-tidy/checks/performance/avoid-endl.html * misc-const-correctness https://clang.llvm.org/extra/clang-tidy/checks/misc/const-correctness.html * misc-const-correctness https://clang.llvm.org/extra/clang-tidy/checks/misc/const-correctness.html * formatting * clang format and tidy and already installed https://github.com/actions/runner-images/blob/main/images/ubuntu/Ubuntu2404-Readme.md#language-and-runtime * explict clang-format-14 * disable include cleaner * format * format * install lcov to get patching geninfo for gcc 13 * revert "install lcov to get patching geninfo for gcc 13" |
||
|
|
3ddac0c776 |
Documentation Refresh (#323)
* Create getting-started.md * Update getting-started.md * Create header-only.yml * Create package-managers.yml * Update package-managers.yml * Update getting-started.md * Update getting-started.md * Update header-only.yml * Update header-only.yml * Update header-only.yml * Update header-only.yml * use `jwt::algorithm::hs256` to link against openssl * add crypto * switch to ssl * Update header-only.yml * tidy * lets install conan * tidying * Adding a CMake target to make the docs * cleaning up repo root folder * fix typo * set docs flag as on * update awesome doxy theme to latest * Updated overrides for new version * output folder and target name are changed * add a few more docs * white space * cmake format * playing with settings * move algorithms - magically fixed missing structs * playing with the idea of more refactoring * more testing * moved evp_handle def to special namespace for doxygen * split evp class by it's self * fix doc links * playing with evp class to fix error -- no luck * revert testing changes * clang format * cache should be container specific * clean up includes * combined class definition * split algos but running in ci with older version * trying slightly newer version of doxygen * doxygen 196 * doxygen 197 * doxygen 198 * avoid regression in 198 * more docs * playing with adding examples * playing around with example support to see if I like * docs include all the example files to be referenced in the code * bump version to 0.7.0 * missing header * devcontainer for testing openssl 3 * add test explorer * add clang helpers * there's a lot of package managers in 2023 * fixup colors with doxygen 1.10 * bump doxygen version since my bug has been fixed * move everything to one file (too many changes) * update doxyfile to 1.10 * minimize diff * fix extra line * fix whitespace * clean up dev container * min changes * cleanup * better checking + warnings for doxygen * whitespace * adding in more docs * fix spelling * make sure traits appear * trying to add snippets from examples cant figure it out https://github.com/doxygen/doxygen/issues/10517 * Update faqs.md * Delete .github/workflows/header-only.yml * Delete .github/workflows/package-managers.yml * Delete example/conan/CMakeLists.txt * Delete example/conan/conanfile.txt * Delete example/conan/main.cpp * Delete example/conan/README.md * Update nlohmann-json.cpp * add updated getting started docs first pass towards https://github.com/Thalhammer/jwt-cpp/issues/319 * touch ups * linking deprecated messages * improve cmake with find_package examples * fix code link color * be more clear about turning off examples good suggestion https://github.com/Thalhammer/jwt-cpp/pull/321#issuecomment-1870488941 * clarify openssl install and fixup fetch tag * apply workaround from https://github.com/doxygen/doxygen/issues/10517#issuecomment-1870509240 * fix renamed types * linting * cross reference new docs * trying new alert syntax https://docs.github.com/en/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax#alerts * move sections out of readme trying to make it shorter and more approachable * improve "getting started" readme section with a more through example * sort out doubled "getting started" second one in docs/ is just installation * linter * fixup english * formatting * whitespace * tie in more examples with snippets * minor touch ups * Update signing.md * JWT_BUILD_DOCS * better cache string for new option * word crafting * word crafting * add missing open-source-parsers/jsoncpp to traits list * better github alert * fixup new shields io start style * improve docs cmake target name * linter --------- Co-authored-by: Christopher McArthur <christopherm@jfrog.com> |
||
|
|
953aab6fe4 |
Add helper for making RSA key from exponent and modulus (#307)
* - Added creation of public key from its components - Split verify function to signature and claims - Added handling of claims set in json while creating a verifier * - Added creation of public key from its components - Split verify function to signature and claims - Added handling of claims set in json while creating a verifier * Fixed missing lines * Added unit tests * Additional changes * delete * refactor free * remove testing * align white space * Update tests/PubKeyTest.cpp Yes I should have removed it. Used it in testing Co-authored-by: Chris Mc <prince.chrismc@gmail.com> * Add support for 1.0.2 * refactor a bit * user jwt define for SSL API that is cross-library * add support for no base64 from jwt * refactor a bit more * fixup wolfssl + linters * missing include for openssl 3 * quick draft of openssl 3 implementation * linter * add in a health layer of error handling and memory management * flip function order * fix typo * error tests for openssl * more all helper tests to one file * update cmake * update tests * more negative test cases * fixup old api calls depending on version * linter * fixup return types * disable failing tests * fixup copy passed * disable more tests * fixup broke tests * better error code handling * test asan with more openssl versions * fix template render path * fix cache conflict running different ubuntu docker images for with different GLIB c and cxx ABIs * add missing lib to tests * run both openssl versions with asan * openssl code always calls new and returns an adress in most cases so always save the pointer to call free? * go back to old raw2bn implementation * Revert "openssl code always calls new and returns an adress in most cases" This reverts commit 45e85b8c667587236ac3dd255d1450bcf22f5723. * remove add new tests (needs to be a seperate pr) * fix jwks verify example + run with asan+lsan * some extra backwards compat for ssl1.1 * compat rsa keygen * fixup copy paste * fix typo * linter * wolfssl compat * compat 1.1.0i * more compat since they changed the API with ever version * linter * fix 1.1.0 * more compat * more compat working on the matrix of wolfssl and libress and 1.1.0 * updated example with hardcoded values * action to install openssl now sets ENV vars for CMake https://gitlab.kitware.com/cmake/cmake/-/blob/master/Modules/FindOpenSSL.cmake#L233 https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#setting-an-environment-variable https://gitlab.kitware.com/cmake/cmake/-/issues/24236 * update example to create a valid token * update asan to latest compiler * clang tidy * fix memory leak in openssl 1.1.1 this is theoretically only because of the test code but better safe then sorry * clang format * improve docs * enable one more test * fix test impl signature * more test for bio to std::string * DRY up code with new helper for write_bio_to_string * fix copy paste + spell checking * linter * fix typo * fix return type * BIO_get_mem_data is just a define so fixup error implementation to match * put extra tests in too many places its only for certs not just pubkeys --------- Co-authored-by: ZOHARGO <zohargo@amdocs.com> Co-authored-by: zgofer1 <zgofer@gmail.com> |
||
|
|
5c9787ebca |
🚢 Provide trait implementation for supported JSON libraries (#193)
* 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> |
||
|
|
3d501217a3 |
🧰 Adding clang-tidy, cmake-format, and ASAN tests (#168)
* 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 |
||
|
|
ae8d1ef632 |
Add JWKS parsing (#146)
* Add JWKS parsing * Add more unit-tests, modify get_x5c to return an array per review-comments * Add accessors for remaining jwk fields * Apply suggestions from code review Co-authored-by: Chris Mc <prince.chrismc@gmail.com> Co-authored-by: Dominik Thalhammer <dominik@thalhammer.it> |