Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | 03-May-2022 | - | ||||
cmake/ | H | 23-Apr-2021 | - | 57 | 50 | |
dist/ | H | 03-May-2022 | - | 100 | 74 | |
examples/ | H | 03-May-2022 | - | 342 | 270 | |
images/ | H | 03-May-2022 | - | |||
include/ | H | 03-May-2022 | - | 967 | 115 | |
libjwt/ | H | 03-May-2022 | - | 3,708 | 2,686 | |
m4/ | H | 23-Apr-2021 | - | 852 | 767 | |
tests/ | H | 03-May-2022 | - | 3,354 | 2,504 | |
.gitignore | H A D | 23-Apr-2021 | 641 | 51 | 47 | |
.travis.yml | H A D | 23-Apr-2021 | 341 | 24 | 21 | |
LICENSE | H A D | 23-Apr-2021 | 16.3 KiB | 374 | 293 | |
Makefile.am | H A D | 03-May-2022 | 289 | 15 | 10 | |
README.cmake.md | H A D | 23-Apr-2021 | 1.2 KiB | 45 | 26 | |
README.md | H A D | 23-Apr-2021 | 1 KiB | 29 | 17 | |
configure.ac | H A D | 23-Apr-2021 | 1.3 KiB | 61 | 48 | |
doxygen.cfg | H A D | 23-Apr-2021 | 104.1 KiB | 2,430 | 1,879 | |
doxygen.mk | H A D | 23-Apr-2021 | 4.6 KiB | 189 | 81 |
README.cmake.md
1Build Instructions for CMake 2============================ 3 41. Generate build tree. 5 6 mkdir out 7 cd out 8 cmake -G "Ninja" -DBUILD_TESTS=1 .. 9 10 NOTE: If you prefer, substitute "Unix Makefiles" or other cmake build generator. 11 122. Build all. 13 14 ninja 15 16 NOTE: If using different build tool, `cmake --build .` will work. 17 183. Run tests. 19 20 ninja check 21 22 NOTE: If using different build tool, `cmake --build . --target check` will work. 23 24Examples 25-------- 26 27Two example utilities are provided to demonstrate generating JWT and for 28authenticating JWT, jwtgen and jwtauth. 29 301. Generate a token using RS256 signature with the sample private key. 31 32 cd out/examples 33 ./jwtgen -k ../../tests/keys/rsa_key_2048.pem -a RS256 -c iss=example.com -c sub=user0 > user0.jwt 34 352. Authenticate a token using RS256 signature with the sample public key. 36 37 cd out/examples 38 ./jwtauth -k ../../tests/keys/rsa_key_2048-pub.pem --alg RS256 user0.jwt 39 403. Authenticate a token using RS256 signature with the sample public key, verifying user is user1. 41 42 cd out/examples 43 ./jwtauth -k ../../tests/keys/rsa_key_2048-pub.pem --alg RS256 -c sub=user1 user0.jwt 44 45
README.md
1![LibJWT Logo](https://user-images.githubusercontent.com/320303/33439880-82406da4-d5bc-11e7-8959-6d53553c1984.png) 2 3# JWT C Library 4 5[![Build Status](https://travis-ci.org/benmcollins/libjwt.svg?branch=master)](https://travis-ci.org/benmcollins/libjwt) [![codecov.io](http://codecov.io/github/benmcollins/libjwt/coverage.svg?branch=master)](http://codecov.io/github/benmcollins/libjwt?branch=master) 6 7[![View on JWT.IO](http://jwt.io/img/badge.svg)](https://jwt.io) 8 9## Build Requirements 10 11- https://github.com/akheron/jansson 12- OpenSSL or GnuTLS 13 14## Documentation 15 16[GitHub Pages](http://benmcollins.github.io/libjwt/) 17 18## Pre-built Ubuntu Packages (PPA) 19 20`sudo add-apt-repository ppa:ben-collins/libjwt` 21 22## Build Instructions 23 24**With GNU Make:** Use ``autoreconf -i`` to create project files and run ``./configure``. 25- ``make all``: build library. 26- ``make check``: build and run test suite. 27- See INSTALL file for more details on GNU Auto tools and GNU Make. 28- Use the ``--without-openssl`` with ``./configure`` to use GnuTLS. 29