Skip to content

Releases: vapor/jwt-kit

Update BoringSSL to 80df7398ce52574801821ce7a76c031c35d6b882

20 Aug 11:11
7a9a04d
Compare
Choose a tag to compare
This patch was authored and released by @0xTim.
  • Update vendor script
  • Update BoringSSL to 80df7398ce52574801821ce7a76c031c35d6b882

Add `is_private_email` claim to `AppleIdentityToken`

21 Jul 12:43
df79553
Compare
Choose a tag to compare
This patch was authored by @gargs and released by @0xTim.

This adds the missing is_private_email claim to AppleIdentityToken. This is helpful to determine whether the user is using a proxy email address.

Unify Vendor Claim Verification Failure Message

18 Feb 15:52
b50b30b
Compare
Choose a tag to compare
This patch was authored by @hiimtmac and released by @0xTim.

Unify messaging for issuer JWTError.claimVerificationFailure for Apple, Microsoft and Google to read Token not provided by INSERT_VENDOR. Also fixes a typo in the Microsoft error. (#49)

Make CJWTKitBoringSSL implementation only

18 Feb 12:42
7339965
Compare
Choose a tag to compare
This patch was authored and released by @0xTim.

Makes CJWTKitBoringSSL implementation only to avoid leaking C types from BoringSSL. Resolves #51

Also updates BoringSSL to f6bd54efbcafcf4625ce99b5f702dc4850b0ca50

Add `ECDSAKey` support to `JWKS`

08 Sep 21:13
6055fe8
Compare
Choose a tag to compare
This patch was authored and released by @JaapWijnen.
  • Allows to create JWK's using ECDSAKeys
  • Allows use of ECDSAKeys with JWTSigner.
  • Prevents a crash when using the .es384 curve for ECDSAKeys
let key = ECDSAKey.generate(curve: .p384)
let jwks = JWKS(keys: [
   JWK.ecdsa(.es384, identifier: JWKIdentifier(string: "token-kid"), x: key.parameters!.x, y: key.parameters!.y, curve: .p384)
])
let key = ECDSAKey.generate(curve: .p384)
let signer = JWTSigner.es384(key: key)

Add RSAKey support for x509 certificate

20 Aug 18:34
50a46ba
Compare
Choose a tag to compare
This patch was authored and released by @tanner0101.

Adds support for initializing RSAKey from X.509 certificate pem files (#42).

// Create signer from X.509 certificate
let signer = try JWTSigner.rs256(key: .certificate(pem: ...))

Set default signer when using JWKs

30 Jul 15:16
3e631a2
Compare
Choose a tag to compare
This patch was authored and released by @tanner0101.

Fixes an issue causing no default signer to be set when configuring only JWKs (#39).

JWTKit 4.0.0

29 Jul 21:02
484cb74
Compare
Choose a tag to compare
This patch was authored and released by @tanner0101.

Docs:
https://github.com/vapor/jwt-kit

More information on Vapor 4 official release:
https://forums.swift.org/t/vapor-4-official-release-begins/34802

Add support for Microsoft JWTs

29 Jul 18:17
ba28866
Compare
Choose a tag to compare
Pre-release
This patch was authored and released by @tanner0101.

Adds new MicrosoftIdentityToken that supports Microsoft's JWT format (#36).

Support JWKs with no algorithm

29 Jul 18:06
ee44e77
Compare
Choose a tag to compare
Pre-release
This patch was authored and released by @tanner0101.

Adds support for JSON Web Keys that do not specify an algorithm (#34).

JWKs are now stored directly in JWTSigners via the use(jwk:) method. When a request to verify a JWT is received that matches a JWK, both the JWT and the JWK's algorithm header is checked. A signer is then created on the fly to handle the request.