/libjwt

The C JSON Web Token Library +JWK +JWKS

Primary LanguageCMozilla Public License 2.0MPL-2.0

LibJWT - The C JWT Library

Build Status codecov

maClara

Build Prerequisites

Required

Atleast one of these, you can use both

  • OpenSSL (>= 1.1.0)
  • GnuTLS (>= 3.6.0)

NOTE: OpenSSL >= 3.0 is required for JWK and JWKS support

Optional

Documentation

Pre-built Packages

LibJWT is available in most Linux distributions as well as through Homebrew for Linux, macOS, and Windows.

Build Instructions

With GNU AutoTools:

$ autoreconf -if
...
$ mkdir build
$ cd build
$ ../configure
...
$ make
...

With CMake:

$ mkdir build
$ cd build
$ cmake ..
...
$ make
...

Common

If you have libcheck installed, both targets will compile the test suite which you can run using the check target.

Both build systems will auto detect OpenSSL and GnuTLS and use one or both. Each build system has a way to force-enable (error if not found) or force-disable either library.