Skip to content

Releases: vapor/jwt

JWT 3.0.0 RC 2.1

25 Mar 23:12
Compare
Choose a tag to compare
JWT 3.0.0 RC 2.1 Pre-release
Pre-release

Fixed:

  • Updated to latest crypto digest methods.

API Docs:
https://api.vapor.codes/jwt/3.0.0-rc.2.1/JWT/

Milestone:
3.0.0-rc.2.1

JWT 3.0.0 RC 2

21 Mar 22:32
Compare
Choose a tag to compare
JWT 3.0.0 RC 2 Pre-release
Pre-release

New:

  • Vapor is now running on Swift NIO!

Milestone

JWT 3.0.0 RC 1

28 Feb 03:39
f912bda
Compare
Choose a tag to compare
JWT 3.0.0 RC 1 Pre-release
Pre-release

New:

  • Added RS256, RS384, and RS512 signature support
import Crypto
import JWT

// create public and private key (only public required for verification)
let privateKey: Data = ...
let publicKey: Data = ...
let privateSigner = JWTSigner.rs256(key: .private2048(privateKey))
let publicSigner = JWTSigner.rs256(key: .public2048(publicKey))

// serialize jwt (requires private key)
let payload: TestPayload = ...
var jwt = JWT(payload: payload)
_ = try jwt.sign(using: publicSigner) // throws, can't sign w/ public signer
let data = try jwt.sign(using: privateSigner)

// parse jwt (public and private key work)
let parsed = try JWT<TestPayload>(from: data, verifiedUsing: publicSigner)
let parsed2 = try JWT<TestPayload>(from: data, verifiedUsing: privateSigner) // also works
print(parsed.payload)
print(parsed2.payload)

Milestone

JWT 3.0.0 Beta 1.1

15 Feb 02:46
Compare
Choose a tag to compare
JWT 3.0.0 Beta 1.1 Pre-release
Pre-release
3.0.0-beta.1.1

prerelease version deps

JWT 3.0.0 Beta 1

12 Feb 17:29
829ed11
Compare
Choose a tag to compare
JWT 3.0.0 Beta 1 Pre-release
Pre-release
Merge pull request #82 from Cellane/patch-1

Updated dependencies

JWT 2.3.0

13 Sep 20:49
Compare
Choose a tag to compare

New:

  • Swift 4 support.

Milestone

JWT 2.2.1

20 Jul 00:04
Compare
Choose a tag to compare

Fixed:

  • Publicize required KeyIDHeader initializer.

JWT 2.2.0

19 Jul 23:55
Compare
Choose a tag to compare

New:

  • JWK support for RSA Keys
  • StringBacked is now public
  • Key ID header

Milestone

JWT 2.1.1

05 Jun 15:52
Compare
Choose a tag to compare

Fixed:

  • Expose internal API to prevent compiler crash related to SR-2925.

Milestone

JWT 2.1

25 May 13:43
Compare
Choose a tag to compare

New:

  • X509 certificate support.

Fixed:

  • Worked around Swift Foundation date bug.
  • Playgrounds file works again.