Commit Graph

216 Commits

Author SHA1 Message Date
Chris Mc
b93bdcf60b correcting decoded_jwt + builder api breaks
- decoded_jwt to expose get_payload_claims() and get_header_claims()
- builder set expires, not_before and issued correctly pass date as an arg
2020-07-01 17:33:42 -04:00
Chris Mc
6a41dbaf31 adding link to RSA examples 2020-07-01 15:39:49 -04:00
Chris Mc
0e6d47277a improve rsa verify with output 2020-07-01 15:34:39 -04:00
Chris Mc
309ff66826 adding verification example
addess issue flagged in #41
2020-07-01 15:26:00 -04:00
Chris Mc
071abc5f81 make sure to use sudo for make install 2020-07-01 15:14:40 -04:00
Chris Mc
2af994251a compiling example with travis 2020-07-01 15:12:56 -04:00
Dominik Thalhammer
9efa1c90c3 Use C++17 void_t if available
See #73
2020-06-27 14:10:28 +02:00
Dominik Thalhammer
8f4660e19c Merge pull request #74 from prince-chrismc/patch-1
Correcting spelling in test code
2020-06-27 13:34:01 +02:00
Chris Mc
8eaf1a8a37 Correcting spelling
Of nlohmamm, some sloppy copy paste
2020-06-26 16:24:43 -04:00
Dominik Thalhammer
c2d4c08184 Merge pull request #71 from prince-chrismc/traits
A generic basic_claim to allow support for other libraries
2020-06-26 14:47:20 +02:00
Dominik Thalhammer
2d362fddbe Move json types into json trait 2020-06-26 14:40:49 +02:00
Christopher McArthur
0505ac8bc4 adding overview to readme
explaining macros/configurations
2020-06-10 21:23:30 -04:00
Christopher McArthur
8e909521eb install files base on options 2020-06-10 21:00:58 -04:00
Christopher McArthur
10361407f8 adding option to remove picojson dep 2020-06-10 20:38:22 -04:00
Chris Mc
83aae8990a Update tests/CMakeLists.txt
fixing typo
2020-06-10 13:59:51 -04:00
Chris Mc
cb8af09d10 adding option to disable the base64 support 2020-06-07 16:35:19 -04:00
Christopher McArthur
fea7c9feeb minor improvement to docs 2020-06-06 21:55:26 -04:00
Christopher McArthur
09797d2123 compressing static insertions
moved to two more generic type trait validation
2020-06-06 21:44:54 -04:00
Christopher McArthur
8426dc3e14 running cmake format 2020-06-06 21:22:06 -04:00
Christopher McArthur
8aa7a59663 enabling more clang-tidy checks 2020-06-06 21:15:01 -04:00
Christopher McArthur
a080fbe0c0 proper adding clang-tidy config 2020-06-06 21:09:01 -04:00
Christopher McArthur
7b4d65dd2e clang-tidy fixes
- google-readability-namespace-comments
- hicpp-uppercase-literal-suffix
- llvm-include-order
- llvm-header-guard
- readability-const-return-type
- readability-else-after-return
- hicpp-special-member-functions
- google-readability-casting
2020-06-06 20:35:51 -04:00
Christopher McArthur
af43faaaa6 applying clang-tidy fixes
running clang-diagnostic-*,clang-analyzer-*,-*,bugprone*,modernize*,performance*,-modernize-pass-by-value,-modernize-use-auto,-modernize-use-using
2020-06-06 19:45:18 -04:00
Chris Mc
2fdcdfd8cb Merge branch 'master' into traits 2020-06-05 21:22:13 -04:00
Christopher McArthur
5fc1a6af50 removing decode assert + improved docs 2020-06-05 20:41:31 -04:00
Christopher McArthur
4993fc96a8 more type checking 2020-06-03 20:58:19 -04:00
Dominik Thalhammer
72553b24e4 Merge pull request #70 from faustocarva/put_gtest_on_cmake
Adds a find_package to GTest when tests are ON.
2020-06-04 00:42:48 +02:00
Chris Mc
cdbc1168d7 removing as_set from traits 2020-05-31 10:16:32 -04:00
Chris Mc
739b7cdb90 improver traits + consistent order for tpl params 2020-05-30 23:32:46 -04:00
Fausto Carvalho
602868558a Adds a find_package to GTest when tests are ON. 2020-05-30 21:54:01 -03:00
Chris Mc
44076a8ab1 some clang tidy fixes 2020-05-30 17:33:54 -04:00
Chris Mc
5d3624b8bb removing attempt at support for wide strings 2020-05-30 17:28:03 -04:00
Dominik
c9ef90d143 Add cmake option to disable picojson install.
see #68
2020-05-30 22:13:02 +02:00
Chris Mc
fd6cec9a8d not an easy fix. has an overhead cost 2020-05-30 15:58:21 -04:00
Chris Mc
ddf09881e7 nholmann json dump does not support wchar_t =? 2020-05-30 13:54:48 -04:00
Chris Mc
ceb6e176eb trying to support a std::wstring bacis_claim 2020-05-30 10:43:15 -04:00
Chris Mc
c0128d1771 modernize with clang-tidy 2020-05-30 10:21:02 -04:00
Chris Mc
9f4a217fff [skip ci] fixing clang warnings 2020-05-30 08:50:16 -04:00
Christopher McArthur
76aac93d4d [skip ci] adding std::wstring test 2020-05-28 23:14:29 -04:00
Christopher McArthur
1cfcad26f1 removing std::string from decode 2020-05-28 22:18:01 -04:00
Christopher McArthur
07af20d83e templating decode function 2020-05-28 22:15:03 -04:00
Christopher McArthur
b0161d8c2d fixing test 2020-05-27 23:08:35 -04:00
Christopher McArthur
f271133a4c option for generic encoder on token signing 2020-05-27 22:50:06 -04:00
Christopher McArthur
b6e1d4dece find package for GTest 2020-05-27 21:58:39 -04:00
Christopher McArthur
041fd12b0f Revert "[skip ci] attempting to decay func args..."
This reverts commit 5177c86d1f.
2020-05-26 09:40:15 -04:00
Christopher McArthur
5177c86d1f [skip ci] attempting to decay func args... 2020-05-26 09:40:00 -04:00
Christopher McArthur
860e56e851 remove extra header 2020-05-26 08:40:13 -04:00
Christopher McArthur
59f7b87587 sanity check for type 2020-05-26 08:36:27 -04:00
Christopher McArthur
089d9011f6 adding the rest of that static assert for functions 2020-05-26 08:21:51 -04:00
Christopher McArthur
88c4886e84 using a fwd decl 2020-05-25 22:51:26 -04:00