cpp-jwt
cpp-jwt copied to clipboard
JSON Web Token library for C++
With this patch I've made a few minor changes to CMake configuration: - CMake config files are now installed to `share/` (`CMAKE_INSTALL_DATADIR`) instead of `lib/`, as cpp-jwt is header-only, thus...
I'm currently trying to use `jwt::params::payload()` in making a jwt_object, but my "payload" is a string (json string). I'm not sure how to get it into `payload()`.
Currently needed: ``` c++ const auto obj = jwt::decode(enc_str, jwt::params::algorithms({jwt::alg_to_str(jwt::algorithm::HS256), jwt::alg_to_str(jwt::algorithm::HS512)}), jwt::params::secret(key)); ``` Expected: ``` c++ const auto obj = jwt::decode(enc_str, jwt::params::algorithms({jwt::algorithm::HS256, jwt::algorithm::HS512}), jwt::params::secret(key)); ```
`jwt_object::three_parts` tries to read part three with negative length. Expected: Some kind of invalid_format error. Reproduction: ``` c++ jwt::decode("eyJ0eXAiOiJKV1QiLCJhbGciOiJub25lIn0.eyJtdl9jbGFpbSI6WyJmaXJzdCIsInNlY29uZCJdfQ.", jwt::params::algorithms({alg_to_str(jwt::algorithm::NONE)}), jwt::params::verify(false)); ```
Hello, I built the code: ``` cd cpp-jwt mkdir build cd build cmake .. ``` and then opened cpp-jwt.sln and built ALL_BUILD project in vs studio project. But I did...
add a necessary space to split two concatenated words
There's a `cpp11` tag in the About window of the repo, yet it doesn't actually support c++11. Can you please remove it. 
I am using version 1.3 of the library with MSVC 2019 with cmake. I have a function that reads a token and that function compiles, links, and runs correctly. I...