Bugfix, cppcheck fixes, picojson update

* Updated picojson to current master
* Fixed a bug where wrong variable was used
* Fixed some style issues detected by cppcheck
* Added explicit modifier to jwt::claim. Enable them by defining JWT_CLAIM_EXPLICIT to 1. This is default off for compatibility, but will be default on at a later time.
This commit is contained in:
Dominik Thalhammer
2018-12-05 13:01:32 +01:00
parent c232c6ae7b
commit 6c91034b17
4 changed files with 91 additions and 73 deletions

View File

@@ -248,7 +248,7 @@ TEST(TokenTest, VerifyFail) {
auto verify = jwt::verify()
.allow_algorithm(jwt::algorithm::none{})
.with_issuer("auth0")
.with_claim("myclaim", std::string("test"));
.with_claim("myclaim", jwt::claim(std::string("test")));
ASSERT_THROW(verify.verify(decoded_token), jwt::token_verification_exception);
}
}