mirror of
https://github.com/arun11299/cpp-jwt.git
synced 2025-05-14 16:58:34 +00:00
Remove case insensitive compare for has_claim API
This commit is contained in:
parent
4a4217a9f4
commit
e813a75e27
5 changed files with 8 additions and 6 deletions
|
@ -93,7 +93,9 @@ TEST (DecodeTest, DecodeHS256)
|
|||
|
||||
EXPECT_TRUE (obj.has_claim("iss"));
|
||||
EXPECT_TRUE (obj.payload().has_claim_with_value("iss", "arun.muralidharan"));
|
||||
EXPECT_TRUE (obj.has_claim("IAT"));
|
||||
|
||||
//Case sensitive search
|
||||
EXPECT_FALSE (obj.has_claim("IAT"));
|
||||
EXPECT_TRUE (obj.payload().has_claim_with_value(jwt::registered_claims::issued_at, 1513862371));
|
||||
|
||||
EXPECT_FALSE (obj.payload().has_claim_with_value(jwt::registered_claims::issued_at, 1513862372));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue