Commit graph

171 commits

Author SHA1 Message Date
Carlos Gomes Martinho
fd403e3df6 ci: also run on pull requests 2020-05-08 02:48:06 +02:00
Carlos Gomes Martinho
52bd9d5bb8 docs: add cmake usage instructions 2020-05-08 02:45:52 +02:00
Carlos Gomes Martinho
af21c2e26f build: install cmakes find package files 2020-05-08 02:35:53 +02:00
Arun Muralidharan
b6845543ed
Merge pull request #62 from gocarlos/patch-1
build: add add_library alias to cmake
2020-03-21 10:23:24 +05:30
Carlos Gomes Martinho
79d2c49b32
build: add add_library alias to cmake
this makes it possible to do:

```cmake
find_package(cpp-jwt REQUIRED)
add_executable(main main.cpp)
target_link_libraries(main cpp-jwt::cpp-jwt)
```
2020-03-18 19:48:52 +01:00
Arun Muralidharan
4b6ed54e2e
Merge pull request #60 from gocarlos/fix--compilation-with-visual-studio-14
fix: compilation with visual studio 14
2020-02-27 11:44:04 +05:30
Carlos Gomes Martinho
67f3dad16a fix: compilation with visual studio 14 2020-02-24 19:54:37 +01:00
Arun Muralidharan
8a066c9823
Merge pull request #59 from gocarlos/master
build: improve cmake scripts
2020-02-24 19:42:22 +05:30
Carlos Gomes Martinho
4dd70e5935 test: add ctest 2020-02-24 15:07:29 +01:00
Carlos Gomes Martinho
f7ffc00a29 chore: use w4 for msvc 2020-02-24 14:58:03 +01:00
Carlos Gomes Martinho
ac31850cdc chore: use cpp 11 by default 2020-02-24 13:38:11 +01:00
Carlos Gomes Martinho
9920f88379 chore: define vendor macro if needed 2020-02-24 13:33:43 +01:00
Carlos Gomes Martinho
f43b6e93fa chore: use both options for gtest include dir variable 2020-02-24 13:26:13 +01:00
Carlos Gomes Martinho
72c26dda67 ci: fix windows build 2020-02-24 13:18:06 +01:00
Carlos Gomes Martinho
d4b5525eb9 chore: use old lib variables for cmake 2020-02-24 13:16:44 +01:00
Carlos Gomes Martinho
92818726b5 chore: use env variable for git workspace 2020-02-24 13:04:36 +01:00
Carlos Gomes Martinho
7df9127c00 chore: initialize conan profile 2020-02-24 12:55:12 +01:00
Carlos Gomes Martinho
a4dc07112c ci: install setup tools 2020-02-24 12:49:36 +01:00
Carlos Gomes Martinho
6cc8790055 ci: use pip3 for python 2020-02-24 12:40:05 +01:00
Carlos Gomes Martinho
3b4ccc006d install conan before pipeline 2020-02-24 12:36:47 +01:00
Carlos Gomes Martinho
bc98be0883 test: add github pipelines 2020-02-24 11:21:17 +01:00
Carlos Gomes Martinho
564e9f8d23 build: add support for conan and make vendored json optional 2020-02-24 10:29:57 +01:00
Carlos Gomes Martinho
de69fd2133 build: improve cmake scripts 2020-02-24 09:21:52 +01:00
Arun Muralidharan
ce85f791ba
Merge pull request #58 from andrewwiik/rfc7515_4_1_1_fix
Fix parsing of alg claim to be RFC compliant
2020-01-16 15:42:15 +05:30
Andrew Wiik
92cac1ecbd Updated tests and README for RFC Fixes 2020-01-16 00:56:41 -05:00
Andrew Wiik
9624da5e59 Fix parsing of alg claim to be RFC compliant
The alg claim should always be treated as a case-sensitive value
according to the RFC spec which you can find here:

https://tools.ietf.org/html/rfc7515#section-4.1.1.

The same RFC spec also says it must be present, if it is empty
it is not present so it should not be converted to the "none"
algo as the "none" algo is an algorithm and not the absence of
one.

Finally the "none" algorithm as a string should be "none" not
"NONE" according to the IANA register for JWS Signature and
Encryption Algorithms which can be found here:

https://www.iana.org/assignments/jose/jose.xhtml#web-signature-encryption-algorithms
2020-01-16 00:42:50 -05:00
Arun Muralidharan
534e72b326
Merge pull request #57 from LanderN/fix-windows-clang
fix clang-cl build on windows
2019-12-09 15:39:01 +05:30
Lander Noterman
8841837fe4
fix clang-cl build on windows 2019-12-09 09:23:37 +01:00
Arun Muralidharan
d8197361fe
Merge pull request #56 from cstratopoulos/patch-1
Make C++17 string_view detection work with MSVC
2019-11-23 22:48:45 +05:30
Christos Stratopoulos
b607c4da9e
Make C++ string_view detection work with MSVC
The existing method to check for support of C++17 `string_view` does not work on MSVC, see [here](https://docs.microsoft.com/en-us/cpp/build/reference/zc-cplusplus?view=vs-2019)

Instead we replace with the [feature test macro](https://en.cppreference.com/w/User:D41D8CD98F/feature_testing_macros) for `string_view`, which is `__cpp_lib_string_view`. This should work on all platforms and is arguably more precise.
2019-10-31 14:44:19 -04:00
Arun Muralidharan
42fcc915e4
Merge pull request #49 from zxey/cpp17-string-view
Use std::string_view if c+17 is available
2019-10-08 14:24:19 +05:30
Arun Muralidharan
d02a544f1c
Merge pull request #50 from dashprint/fix-char-signedness
Fix char signedness in DMap
2019-10-08 14:23:32 +05:30
Lubos Dolezel
4392f4b538 Fix char signedness in DMap 2019-07-13 20:10:20 +02:00
zxey
a5e5a233b7 Use std::string_view if c+17 is available 2019-06-17 17:31:06 +02:00
Arun M
af3fef94f1 merge 2019-05-31 00:46:41 +05:30
Arun M
1e9667ae0d update nlohmann json library 2019-05-31 00:45:35 +05:30
Arun Muralidharan
efc5732513
Merge pull request #47 from olcydvt/master
Fix for error setw is not defined
2019-05-03 12:40:03 +05:30
Olcay Cabbas
602ec562e0 Fix for error setw is not defined 2019-05-03 09:08:21 +03:00
Arun Muralidharan
10337fcefc
Merge pull request #42 from leoTlr/master
prevent gcc warnings
2019-04-04 11:58:16 +05:30
leoTlr
4234eea1bf prevent -Wimplicit-fallthrough= warning with gcc 8.2.1 2019-04-04 00:27:39 +02:00
leoTlr
a3a0d9c0ec prevent -Wunused-parameter warning with gcc 8.2.1 2019-04-04 00:26:54 +02:00
leoTlr
31df3b8bd4 compile with -Wextra 2019-04-04 00:24:25 +02:00
Arun Muralidharan
742ef512a4
Merge pull request #41 from MatthewPowley/WindowsFix
'__builtin_unreachable' is not available on Windows
2019-03-22 14:41:07 +05:30
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
Arun Muralidharan
cdcc26134e
Merge pull request #40 from huangminghuang/lambda_secret
Add api to supply secret based on decoded payload
2019-02-17 16:51:34 +05:30
Huang-Ming Huang
74b7b344c6 Add api to supply secret based on decoded payload 2019-02-16 15:36:12 -06:00
Arun Muralidharan
2d2c093652
Merge pull request #39 from huangminghuang/master
Some cmake improvements
2019-02-12 22:39:50 +05:30
Huang-Ming Huang
0b68fd46fb Some cmake improvements 2019-02-11 14:10:38 -06:00
Arun M
1cbc5eb5a5 compile error with master #37 2018-11-20 19:08:08 +05:30
Arun Muralidharan
fe2e06141f
Merge pull request #35 from mhfrantz/issue-33/move-semantics.v1
issue-33: Add test showing how to invoke move ctor
2018-11-02 22:34:22 +05:30