Open clobotorre opened 1 year ago
/usr/local/include/boost/json/
What version of boost are you using? And How did you install it into your system?
I use boost version 1_76, and to compile it in my system I use:
./#{build_tool} --build-dir=/tmp/#{node.boost.filename} --build-type=complete --layout=versioned --with-date_time --with-filesystem --with-iostreams --with-program_options --with-regex --with-random --with-serialization --with-system --with-thread --with-test threading=multi link=shared install || exit 1
Note: build_tool is b2
The Boost.JSON support was introduced with 1.77 in https://github.com/Thalhammer/jwt-cpp/commit/4c2ea57d7c87e63505462e769a66f0636994495c and was only tested with the C++17 standalone mode not with a whole Boost installation.
My suspicious is this might be an untested configuration which is why we are seeing this. Boost also removed this mode so newer version do not work either sadly :(
Are you able to test this with a newer version of boost?
I'm afraid, we are currently using boost version 1_76 for a lot of components, and cannot use a newer version.
Maybe there is a way to use a non hole boost to compile this library?
I see in the README.md: "There is no hard dependency on a JSON library" and "or your convience there are serval traits implementation which provide some popular JSON libraries"
I installed nlohmann: apt-get install nlohmann-json3-dev
After that I tried to build this library: cmake ..
And I got same warning: -- Could NOT find nlohmann_json (missing: nlohmann_json_DIR)
What can I do to use, for example, nlohmann json instead boost json to compile this library?
Sorry its hard to help since this is so system dependent. I don't use apt so I don't know what files that would be installed. I work on Conan which is a c++ package manager :)
You can check the CI for the installation https://github.com/Thalhammer/jwt-cpp/blob/c2b43e67c171cae332f7bc87b8e2a3fed7dc8e5a/.github/actions/install/nlohmann-json/action.yml#L1
What happened?
Trying to solve Exception 'jwt::error::signature_verification_exception' while running examples jwks-verify and private-claims
This is on Ubuntu 18.04 OpenSSL 1.1.1
How To Reproduce?
Version
0.6.0
What OS are you seeing the problem on?
Linux
What compiler are you seeing the problem on?
GCC
Relevant log output
Code of Conduct