Commit graph

51 commits

Author SHA1 Message Date
Dennis Hezel
735d77cdcf Mark jwt_set::case_compare and std::hash<jwt::string_view> noexcept 2022-05-13 19:21:04 +02:00
Dennis Hezel
6c22d941a0 Fix out-of-bounds access in three_parts. Fix mishandling of non-null terminated string_views in jwt_set::case_compare. Address several conversion and unreachability warnings 2022-05-13 19:13:38 +02:00
Carlos Gomes Martinho
564e9f8d23 build: add support for conan and make vendored json optional 2020-02-24 10:29:57 +01:00
zxey
a5e5a233b7 Use std::string_view if c+17 is available 2019-06-17 17:31:06 +02:00
Matt Powley
ff21be2947 '__builtin_unreachable' is not available on Windows
Replaced with macro that inserts Windows equivalent
2019-03-21 12:31:02 +00:00
Huang-Ming Huang
74b7b344c6 Add api to supply secret based on decoded payload 2019-02-16 15:36:12 -06:00
Arun M
1cbc5eb5a5 compile error with master #37 2018-11-20 19:08:08 +05:30
Matt Frantz
1b105f4772 SFINAE guard on jwt_object's universal reference constructor
This allows the move constructor to be preferred in some cases.
2018-11-01 13:28:49 -07:00
Arun M
64de7b6f1d Ptential Fix for VS2015 compile fail #27 2018-10-03 22:07:08 +05:30
Arun M
e5ecca4f38 'str_to_type' has a non-throwing exception specification but can still throw #31 2018-09-29 00:24:08 +05:30
Arun M
129731da56 Add option to remove type fromt he jwt_header #26 2018-08-05 15:10:53 +05:30
Samer Afach
00343347b2 Fixed many warnings that appear due to assert not being executed in
release mode.
2018-05-30 22:44:38 +02:00
Samer Afach
a9562500a0 More inline definitions to for header files to avoid double definition
problems.
2018-05-20 02:57:13 +02:00
Arun M
aefef6dce2 Compilation issue in VS2017 #12 2018-05-02 21:51:33 +05:30
Arun M
9487758b8c Compilation works with g++ 6.4 2018-01-03 10:59:35 +05:30
Arun M
a5728dd397 use find instead of count on std::set. libc++ has a bug in that count is not cont member function. 2018-01-02 12:04:45 +05:30
Arun M
161e5d8753 Add support for additional headers 2017-12-29 14:44:17 +05:30
Arun M
7ddf7ec3e9 Added checks and tests for iat/jti/sub 2017-12-29 01:10:41 +05:30
Arun M
e813a75e27 Remove case insensitive compare for has_claim API 2017-12-28 16:39:49 +05:30
Arun M
98979a55d1 string_view to jwt::string_view 2017-12-27 21:10:43 +05:30
Arun M
27e73646ae Fixed the copyright permission on all source 2017-12-27 15:56:23 +05:30
Arun M
e5eb28716a Added copyright header 2017-12-27 15:39:38 +05:30
Arun M
5771f97c1c Added more verification tests and fixes 2017-12-27 15:25:53 +05:30
Arun M
e662b445dd Added tests for expiration 2017-12-27 14:34:23 +05:30
Arun M
e42720a446 Added more documentation and some bug fixes in verification process 2017-12-27 12:18:44 +05:30
Arun M
3d9e15b5c8 Added documentation comments to jwt.hpp 2017-12-27 11:25:33 +05:30
Arun M
99f3c1db86 Make secret an optional argument for decode 2017-12-26 20:20:53 +05:30
Arun M
d7e4add937 Change signature for has_claim_with_value API 2017-12-26 14:16:35 +05:30
Arun M
c62a9498d9 Handle exception for header and payload decode into error code 2017-12-26 13:11:48 +05:30
Arun M
f8eebbede0 Fix string view overload for claim value 2017-12-25 12:42:38 +05:30
Arun M
b5088a6d9c Added nbf check and more exception and error code handling 2017-12-20 18:07:08 +05:30
Arun M
c484ced63d Exception and non exception based decoding 2017-12-16 18:50:44 +05:30
Arun M
7a511c46fe Put verify under different function. Added new error codes for verification failures. 2017-12-16 16:39:52 +05:30
Arun M
912e4b5ff9 Populate claims set back when decoding 2017-12-14 21:20:04 +05:30
Arun M
6f495c2c16 JWT veririfcation APIs 2017-12-13 23:57:25 +05:30
Arun M
a4a4bd5dff Changed decode function signature 2017-12-05 16:02:54 +05:30
Arun M
09bc72c9f7 Added new parameters for decode API 2017-12-04 19:01:45 +05:30
Arun M
9e69389caf Added decode error codes and exceptions 2017-12-04 13:17:48 +05:30
Arun M
aaf5c9bb46 PEM signing now works...silly double pointergit add -A Test code still needs to be removed 2017-11-25 22:44:16 +05:30
Arun M
9abac3c5d7 More APIs added to jwt_object 2017-11-23 18:14:32 +05:30
Arun M
fc294cbc8a jwt_object API fixes 2017-11-23 17:24:56 +05:30
Arun M
da6d4932c3 Add algorithm parameter 2017-11-21 16:43:46 +05:30
Arun M
ffd6280026 Code cleanup around jwt_object creation in decode step 2017-11-21 16:16:03 +05:30
Arun M
cb925fee3a jwt_object design 2017-11-21 13:47:26 +05:30
Arun M
81e6b2392e Verification 2017-11-20 00:38:55 +05:30
Arun M
796abd6e65 Implement verify. Part 1 2017-11-09 23:42:04 +05:30
Arun M
8277e2cbd3 JWT encoding 2017-11-05 12:31:32 +05:30
Arun M
e7d52450d6 Payload data type addded 2017-11-04 19:21:46 +05:30
Arun M
87e27ec31d HMAC algo added 2017-11-03 09:57:12 +05:30
Arun M
3e867d77f1 JWT header impl 2017-11-01 17:04:09 +05:30