Skip to content

Releases: skelpo/JWTVapor

v0.14.0

16 Jul 12:14
Compare
Choose a tag to compare

Dependencies updated

v0.13.0

14 Feb 17:21
Compare
Choose a tag to compare

Small adjustments to support Vapor 3.2.1

v0.12.0

31 Oct 15:45
0c40976
Compare
Choose a tag to compare

Debug JWT Tokens

Added a NewJWTCommand console command, so you can get debug JWT's from the command-line:

// In `configure.swift`
var commands = CommandConfig()
commands.use(NewJWTCommand(payload: Token()), as: "jwt")
services.register(commands)
$ vapor run jwt
Running MyApp ...
[ INFO ] Migrating 'mysql' database (/Users/myself/dev/MyApp/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Migration/MigrationConfig.swift:69)
[ INFO ] Migrations complete (/Users/myself/dev/MyApp/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Migration/MigrationConfig.swift:73)
Auth Token: eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImNyaXQiOlsiZXhwIiwiYXVkIl19.eyJleHAiOjY0MDkyMjExMjAwLCJpYXQiOjE1NDA5MDQ3OTEuMzc2NTI4LCJlbWFpbCI6Imd1ZXN0RUI4QThGQ0ItNDNDMi00OEExLThGMzktQkQyNDg3REE5MEI4QG9yZGVyc3lzdGVtLmV4YW1wbGUuY29tIn0.JN82Ws9r1gfJeWhoqwWaSsLNSBTUXFSXOVkk53IE-HPRcYgs1PLtqmrXcuiJ3RN7ZFLSz1_KhjmznA39kP-2VjybTNkq87jWlY2cj59B_31p28uMcNDoP1qN5N4PjgdcLEvhi7hDPGTKHPQJZ8A5Iwa3bJFoSF4UeQKIr3IoYxi5PTqOZ7gkUvB7ghZuLlr5gV2GO2lF0Jjv-n16i5O5oRVrZmeA5te-A0OuTvnvX5uJ_TMoqI9xMpq2E82bmtXKaZ1ObrjGy5ar6AqXC7cAhIsVkhb8OfIU4U6Px6A3nMw3kuixBd1z1tFnkXW5CtdGmM_n2etUSoeF91Fwfc7HRQ

JWKS Tokens

Adds support for JWKS authentication with a new JWKSService:

services.register(JWKSConfig(jwks: "https://somedomain.com/v2.0/.well-known/openid-configuration", following: "jwks_uri"))
services.register(JWKSService.self)

v0.11.2

16 Aug 12:07
41c81ce
Compare
Choose a tag to compare

JWT 3.0

Updated vapor/jwt dependency version to 3.0. 🎉

v0.11.1

13 Jul 12:52
e9bcc3a
Compare
Choose a tag to compare

The Secret wasn't a Secret

The JWT_SECRET was used to store the signer's public key, which more then one person thought sounded like a name conflict.

The public key now gets registered in the JWT_PUBLIC env var and the secret key (if the signer format supports it) gets stored in the JWT_SECRET env var.