JSON Object Signing and Encryption Library
|Version on this page:||0.4.2@rev:2|
|LTS Haskell 20.23:||0.9.5|
|Stackage Nightly 2023-05-31:||0.9.5|
|Latest on Hackage:||0.9.5|
Depends on 20 packages(full list with versions):
Intended to provide support for the JOSE suite of IETF (draft) standards and the closely related JWT (JSON web token) spec (http://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32/).
Both signed and encrypted JWTs are supported, as well as simple JWK format keys.
The library is currently intended to support work on an OpenID Connect implementation and the APIs should not be considered complete, stable or secure for all use cases.
- Fix in the code for finding suitable JWKs for encoding/decoding.
doctestflag to cabal file to allow doctests to be disabled.
- Add cprng-aes dependency to doctests to stop test failure on travis and nixos hydra builds.
- Changed use of
Jwttype to represent an encoded JWT.
Payloadtype to allow setting the
ctyheader value correctly for nested JWTs.
- Added an explicit
Unsecuredtype for a decoded JWT, to make it obvious when the content is not signed or encrypted.
- Fixed some bugs in JSON encoding and decoding of EC JWKs.
Changed the signature of
Jwt.encode to take a list of
Jwk rather than a single key. The key will be selected from
the list based on the specified algorithms.
- New support for JWS validation using elliptic curve algorithms.
Jwt.encodefunction which takes a JWK argument, allowing key data (currently the key ID) to be encoded in the token header.