Commit Graph

87 Commits

Author SHA1 Message Date
Chris Mc
0a503e7508 ⬆️ Upgrade boost json to v1.90.0 (#425)
replace deprecated standalone with full release with one component
2026-04-02 10:58:46 -07:00
Chris Mc
3e037df3e6 🧹 Improve linters for traits (#424)
* quick poc at using cmake to generate the defaults.h traits files

* add test preset to dev

* self review

* poc moving logic to actions

* Remove stale defaults.h generation configuration

* Fix file path in lint workflow configuration

* chmod +x

* linter

* linter

* clean up action and lint workflow

* rm source_dir cli arg from cmake script

now just assume the current directory is correct

* linter

* fix order

* add workflow preset for running unit test

sadly then is less reusable than i wanted
2026-03-24 18:11:15 -07:00
Chris Mc
a751ea2272 🌱 Utilize gtest's TypeParam to change traits implementation during testing (#423)
* utilize TypeParam to change traits implementation

explains why coverage hits were so slow

* fixup danielaparker-jsoncons locally

* fixup open_source_parsers_jsoncpp

tested locally

* cleanup lcov args

* add install script for osp/jsoncpp

* linting

* install script for boost

* boost outputs json in different order

this si allowed so the tests are now more relaxed when matching tokens

* update gtest to install gmock as well

* update gtest

* add default version for gtest

* lower gtest for min cmake compat test

* fix typo

* find gtest package is now config

* add back install for lcov

* try forcing install on

* debug print cmake cache file from gtest

* try install with make directly

* workaround for gtest 1.16 cmake install

* lower gtest to match cmake_min_versions

* enable picojson lint tests generation

* move negative decode tests

* linter

* explicit trait test for picojson

* lint
2026-03-17 19:48:25 -07:00
Chris Mc
df914eba76 🪞 Add support for reflect-cpp's JSON (#421)
* add reflect json traits

* jwt-cpp defaults

* fix clang tidy warnings

* fix clang tidy warnings

* rename directory

* add tests

* add tests

* add tests

* replace unnecessary copy with move

* gate reflect cpp tests behind flag

* reflect cpp CI work

* reflect-cpp example

* reflect-cpp CI

* reflect-cpp CI

* match naming + update ci

* first pass code review

* linter

* linter

* align naming

* make file +x

* align target name

fix order or targets in tests

* fix typo

* Fix target_link_libraries syntax for jwt-cpp

* cleanup example code

* add reflect-json to coverage tests

---------

Co-authored-by: Ali Girayhan Ozbay <aligirayhan.ozbay@abex.capital>
Co-authored-by: Ali Girayhan Özbay <aligirayhan@ozbay.org>
2026-03-09 22:19:31 -07:00
Chris Mc
75dd7aa5c1 📈 Expanding testing coverage to all JSON trait implementations (#419)
* typed tests for all the various json implementation

more coverage of all the various traits

* Configure LCOV_OPTS for coverage reporting

Add LCOV_OPTS to ignore errors in coverage report

* linter

* Update LCOV_OPTS to ignore multiple mismatch errors

* Configure LCOV to ignore mismatches

Added configuration for LCOV to ignore mismatches in coverage reports.

* try to pass lcov args + cleanup excludes

* directly pass lcov args

* fix min cmake req

prepend is 3.15, seems overkill
2026-03-06 20:44:55 -08:00
Chris Mc
5ee8567d4a Add Glaze Support (#417)
* feat: add glaze traits

* fix: format

* name glaze_json, add to ci, add example

* code review

* linter

* disable linter for glaze tests

* add badge to docs for new library

---------

Co-authored-by: Curve <fynnbwdt@gmail.com>
2026-03-02 20:25:31 -08:00
Chris Mc
58622a3f01 🏷️ Set version to 0.7.2 + Document release steps (#414)
updated doxygen to 1.14.0 and doxygen-awesome-css to 2.4.1
2026-02-25 17:55:44 -08:00
Chris Mc
6a0a9a2e5a ⬆️ Update tests to the latest versions of OpenSSL (#413)
asan and matrix for latest releases across all versions. Add back badges for older paid support releases and cleanup docs
2026-02-20 21:14:53 -08:00
Chris Mc
2e16efe5da 💾 Fix CMake cache key to support both runner and container based jobs (#411)
* Fix CMake cache key to use container image fallback

* fix cache key for containers

* pass cache key in one level higher

* store info one level higher

again

* try $env:ImageOS

* capture it from a step

maybe

* steal cache key logic from setup-go  action

* cleanup + comment explanation

* spelling
2026-02-18 14:18:58 -08:00
Chris Mc
c5a1fb5e7a 📜 Separated install scripts for jsonsonc. libressl, and wolfssl (#412)
* Extra install scripts for jsonconc. libressl, and wolfssl

this make it easier to run locally when testing

* make script exe

plus cleanup
2026-02-18 11:37:04 -08:00
Chris Mc
179beb3627 ⬆️ Update LibreSSL version up to 4.2.1 (#410)
* Update LibreSSL version to 4.2.1 in CI configuration and documentation

* update OpenSSLErrorTest for LibreSSL 4.2.0+

Add Linux LibreSSL support in CMake presets

* add debug output to failure for all ssl libraries

* fix type in libressl version check

* chore: lint
2026-02-16 20:03:33 -08:00
JurgenLB
91848add8f Additional Appveyor warnings (#408)
* Fix lcov line number mismatch for ClaimTest::AudienceAsString (#1)

* Add blank line before TEST macro to fix coverage line mismatch

* Verify tests pass after fix

* Remove CodeQL build artifacts and update .gitignore

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: JurgenLB <77586573+JurgenLB@users.noreply.github.com>

* Remove blank line

* Add concurrency to traits job

Add concurrency settings to traits job in workflow

* Additional spacing added to prevent geninfo line mismatch errors

* Fix concurrency group in traits workflow to prevent job cancellations

* fix-msvc-type-trait-warnings

* Apply clang-format

* Fix formatting issues

* Fix formatting issues in jwt.h

* format

* Update jwt.h

* Remove unwanted reference

---------

Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com>
2026-02-16 10:47:27 -08:00
Chris Mc
ca96081348 Bump OpenSSL versions in CI configuration and documentation (#406) 2026-02-16 09:24:48 -08:00
Chris Mc
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"
2025-05-13 17:35:46 -04:00
Damiano Mazzella
d3b93ef1e3 update trait dependencies to support CMake v4 (#379)
* update nlohmann-json to 3.12.0 (fix cmake min version)

* Bump fetch ver

Needs new md5

* 3.12 md5

* Limit hunter cmake version

* bump jsoncpp version to v1.9.6 as well

* bump workflow as well as default

---------

Co-authored-by: Chris Mc <prince.chrismc@gmail.com>
2025-05-13 10:44:51 -04:00
Damiano Mazzella
82e5dae762 Update jsoncons trait to support v1 release (#375)
* Update traits.h

* fix actions fails

* update version of jsoncons warkflow traits and install action

* update example/traits/danielaparker-jsoncons.cpp

* Drop support of the 0.x release of jsoncons

* Update jsoncons to 1.3.2 and nlohmann-json to 3.12.0

* revert the changes for nlohmann-json

---------

Co-authored-by: Chris Mc <prince.chrismc@gmail.com>
2025-05-13 10:16:48 -04:00
Chris Mc
e71e0c2d58 Update version to 0.7.1 (#373) 2025-03-09 22:00:21 -07:00
Dominik Thalhammer
482f4f1c05 ⬆️ Update Thalhammer/patch-generator-action (#370) 2025-02-25 11:15:40 +01:00
Chris Mc
83703d718a Add testing with RSA keys encrypted with a passphrase (#360)
* add testing with rsa and a passphrase

* fix name and disable 1.0.2

* enable ctest output on failure

* re-enable test for 1.0.2

* try keys generated with older openssl

* drop 1.0.2 and older since they used a non-standard format for encrypt private keys
2024-09-01 17:23:05 -07:00
Juliusz Sosinowicz
a968dfe4f7 Fix build and tests for wolfSSL (#352)
* Fix build and tests for wolfSSL

Signed-off-by: Juliusz Sosinowicz <juliusz@wolfssl.com>

* Remove unnecessary symbols

* Don't fail fast on wolfSSL actions

* Include wolfssl/options.h explicitly

* Fix old wolfSSL failures

* remove unused EVP_PKEY_get1_RSA

this is deprecated with 3.0

* code review comments

* Apply suggestions from code review

* rm extra headers?

* fix cmake test

use the new macro that was required

* linter

* fix unused warning fail_HMAC

* reenable fail fast

* fix spelling

---------

Signed-off-by: Juliusz Sosinowicz <juliusz@wolfssl.com>
Co-authored-by: Chris Mc <prince.chrismc@gmail.com>
2024-07-29 08:14:34 -07:00
Chris Mc
3376880740 Disable gcc-4.8 since node20 is now required (#356) 2024-07-18 07:09:35 -07:00
Chris Mc
a6927cb814 Add support for CMake Presets (#348)
* 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
2024-06-15 07:52:23 -07:00
Chris Mc
0d03bc5bc8 Support new Action macOS Runners (#347)
* trying to grab a macos14 arm with different openssl install

* lets see if last weeks works

* test is older macos still needs workaround

* just use latest
2024-04-27 16:48:23 -07:00
Chris Mc
f698216008 Add addition CMake "run" targets to simplify calling exes (#344)
* Add addition CMake "run" targets to simplify calling exes

* fix bad replace
2024-04-22 08:08:35 -07:00
Chris Mc
59cb1e633f Upload archives with source code on release (#324)
* upload tar.gz for new releases

* revert name to manually trigger it

* write to separate path

* Update and rename nuget.yml to release.yml

* disable nuget for testing

* add a zip as well

* error handling

* Update release.yml

* simple conditional

trying https://unix.stackexchange.com/a/344207

* Update release.yml

* back to basics

* exclude .git folder

* fix order for args

* protect glob

* fix order

* remove remove testing code
2024-01-23 11:02:21 -08:00
Chris Mc
8ed685e5f7 Bump GitHub Actions to latest versions (#326)
* 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
2024-01-23 10:56:48 -08:00
Chris Mc
3f178ce899 Use built-in openssl from action's on windows (#325)
3.2.0 was added to chocolatey pulling from shinning light products which it's kinda annoying since that's been out for months

it should be in the 2022 runner image

f046bcaec3/images/windows/toolsets/toolset-2022.json (L433)
2024-01-16 21:34:03 -05:00
Chris Mc
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>
2024-01-10 09:29:46 -05:00
Chris Mc
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>
2023-12-26 12:23:21 -05:00
Chris Mc
ed98dc13af Update tests to include jsoncpp trait (#320)
* 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>
2023-12-21 11:53:53 -05:00
cjserio
65cda08210 Implemented JsonCPP Traits (#317)
* 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>
2023-12-16 12:27:13 -08:00
Chris Mc
08bcf77a68 Set version to 0.7.0 (#299) 2023-12-10 17:50:22 -05:00
Chris Mc
61de6855b4 Add a test for ubsan with C++20 (#315)
* add test to ubsan with cxx 20

* Add hard error + more checks

https://gcc.gnu.org/onlinedocs/gcc-6.3.0/gcc/Instrumentation-Options.html

https://developers.redhat.com/blog/2021/05/05/memory-error-checking-in-c-and-c-comparing-sanitizers-and-valgrind

https://interrupt.memfault.com/blog/ubsan-trap

---------

Co-authored-by: Christopher McArthur <prince.chrismc+commit@gmail.com>
2023-12-01 12:06:11 -05:00
Stéphane Janel
0e3d6a142c Fix gcc-12 compilation error (#312)
* Fix gcc 12 compiling error

* add test for gcc-12

* replace array with vector

this is to avoid breaking the API down the line

* pin down ubuntu base images 

these do get updated with with under active development and there are changes which could affect us

* skip gtest + set cxx_std to 20

---------

Co-authored-by: Chris Mc <prince.chrismc@gmail.com>
2023-11-25 22:32:03 -08:00
Alejandro Criado-Pérez
6fed66d0d5 Corrected a few typos (#297)
Co-authored-by: Chris Mc <prince.chrismc@gmail.com>
2023-07-25 18:45:15 +02:00
Chris Mc
ad08c684a2 Move gcc 4.8 tests to docker image (#292)
Co-authored-by: Dominik Thalhammer <thalhammer.d@googlemail.com>
2023-05-26 21:40:20 +02:00
Dominik Thalhammer
649530a6f0 ⬆️ Upgrade various ci packages being deprecated soon (#268) 2022-10-31 20:25:38 +01:00
Chris Mc
03ad09b996 ⬆️ Update tested JSON libraries (#260)
* bump the json libraries being used

* bost json dropped the standalone mode in 1.79 d20a814685

Co-authored-by: Dominik Thalhammer <dominik@thalhammer.it>
2022-10-23 17:16:24 -07:00
Dominik Thalhammer
24953a6e82 👷 Cache cmake for min-req CI (#267)
The CMake min-req CI action takes ages to complete which is really annoying if you have to wait for it to finish in addition to wasting compute ressources. Turns out the vast majority of its time is spent building cmake every time, which is clearly not necessary. This change updates the workflow to cache the built cmake version and restore it if needed cutting ~7.5 minutes of the build.
2022-10-23 19:03:33 +02:00
Dominik Thalhammer
02e94cafcb ⏫ Update clang-format to 14.0, pin version (#266) 2022-10-23 11:57:38 +02:00
Chris Mc
8e0fb8e438 Fix Nuget workflow (#264) 2022-10-19 21:56:05 +02:00
Diogo Strube (Exp1nt)
74abd24078 NuGet Pkg using GitHub Actions (#262)
This PR is related to discussion https://github.com/Thalhammer/jwt-cpp/issues/243 and is a 3 file contribution:

- `nuget\jwt-cpp.nuspec` contains all the descriptions of the NuGet package, including authors, and the path of files to be copied.
- `nuget\jwt-cpp.targets` automatically set up the "additional include directories" when the package is installed.
- `.github\workflows\nuget.yml` contains the GitHub Action to pack and pub the NuGet package.

Co-authored-by: Diogo Strube de Lima <diogo.strube.lima@gmail.com>
Co-authored-by: Chris Mc <prince.chrismc@gmail.com>
Co-authored-by: Dominik Thalhammer <dominik@thalhammer.it>
2022-10-19 08:24:58 +02:00
Chris Mc
95b3dbf0cd 🔒 Bump OpenSSL to latest releases (#255) 2022-10-03 16:16:51 +02:00
Stéphane Janel
07a2f64b0d 📤 Do not embed nlohmann::json directly, use find_package / FetchContent instead (#254)
* Do not embed nlohmann::json directly, use find_package / FetchContent instead

* Clea up traits workflow

Headers are no longer vendored

Co-authored-by: Chris Mc <prince.chrismc@gmail.com>
2022-10-03 11:01:42 +02:00
Chris Mc
484bdb086a ⚙️ Restore support for GCC-4.8 (#246)
* Create workflow for targeting specific platforms/compilers

starts with a GCC-4.8 CentOS base

* make sure to install dev tools

* Update targets.yml

* Update targets.yml

* Update targets.yml

* Update targets.yml

* install CMake by hand

* try ubuntu with gcc 4.8

* fix action

* actions/checkout@v3

* latest cmake + set compiler for CMake

* install g++

* fix compiler passed to cmake

* try to run in docker container

* in container we are root

* try an update

* assume yes

* revert to using gh runner image

* permissions

* replace `codecvt` when required

* pass locale

* fix linter

* linter

* revert changes to actions (min for pr)
2022-09-17 21:04:40 -07:00
Chris Mc
c9a511f436 🔒 Update SSL libraries to latest versions (#235)
* Bump test SSL libraries

* Fix copy paste error

* fix bad spacing

* Update README.md

* bump again

* remove libressl 3.5.3

* Update ssl.yml

* put back 3.5.x for failing badge

* Update action.yml

* point URLs back to main since testing worked

* Only publish badge on push

leftover from me testing on my fork 25 days ago 😭

* Trying using 1.1 apis with libressl

https://github.com/libressl-portable/portable/issues/764#issuecomment-1153548504

Co-Authored-By: Theo Buehler <botovq@users.noreply.github.com>

* Limit new APIs to required version

limit change to older supported versions

* Update tests for new libressl APIs

Co-authored-by: Theo Buehler <botovq@users.noreply.github.com>
2022-06-14 09:02:34 -07:00
Jan Blome
d7e0936d84 🔧 Fix build with OPENSSL_NO_DEPRECATED (#228)
* Add missing include to fix build with OPENSSL_NO_DEPRECATED

Creating and verifying RSA signatures requires some OpenSSL functions
declared in the `openssl/rsa.h` header. When `OPENSSL_NO_DEPRECATED` is
not defined this header gets indirectly included. But with this define
set the function declarations are missing. This commit adds an explicit
include for the file to fix this.

* Remove unused functions in OpenSSLErrorTest

Some functions from OpenSSL redefined in `OpenSSLErrorTest.cpp` use
types that are not available when `OPENSSL_NO_DEPRECATED` is defined.
Since they do not seem to be actually used this commit simply removes
them.

* Test with OPENSSL_NO_DEPRECATED

Co-authored-by: Chris Mc <prince.chrismc@gmail.com>
2022-05-12 16:43:47 -07:00
Chris Mc
0c810e2faa 🧪 Add test for default cmake options (#227) 2022-05-12 11:17:14 -07:00
Chris Mc
af50274c8a Improved issue templates with security policy (#217)
* Update bug-report.yml
* Update support-question.yml
* Create feature-request.yml
* Create security.md
2022-03-14 14:57:17 +01:00
Dominik Thalhammer
9d1a010fea Remove source files from INTERFACE add_library (#210)
* Remove source files from add_library
* Enable examples and tests for CMake min-req check.
closes #209
2022-02-11 13:32:50 +01:00