jwt-scala

JWT support for Scala. Bonus extensions for Play, Play JSON, Json4s, Circe, uPickle, Spray and Argonaut

APACHE-2.0 License

Stars
663

Bot releases are hidden (Show)

jwt-scala - 3.0.0

Published by pauldijou over 5 years ago

  • Allow override of the system clock, remove jmockit from tests. (thanks @Ophirr33)
  • JwtHeader and JwtClaim are no longer case class so that you can extend them. (thanks @fahman)
  • Fix Play demo app. (thanks @ma3574)
  • Remove dependency on Bouncycastle. (thanks @brakthehack)
  • Deprecate (but also improved) the pure Scala implementation of JwtCore. It's very limited, non-performant and should not be used. I will keep it around for tests and if some people need it.

Migration

If you want to keep using the BouncyCastle implementation, you will have to add it manually. You can see how it's done in the tests. Don't forget to also add "org.bouncycastle" % "bcpkix-jdk15on" % "1.60" as a dependency of your project.

Security.addProvider(new BouncyCastleProvider())
jwt-scala - 2.1.0

Published by pauldijou over 5 years ago

  • Upgrade to play-json 2.7.1 (thanks @etspaceman)
  • Add Scala 2.13.0-M5 to cross compilation for projects supporting it (thanks @2m and @ennru)
  • Move JwtHeader and JwtClaim to basic classes (thanks @fahman)
jwt-scala - 2.0.0

Published by pauldijou over 5 years ago

  • Upgrade to Play 2.7.0 (thanks @prakhunov)
  • Upgrade to play-json 2.7.0 (thanks @etspaceman)
  • Drop support for Java 6 and 7
jwt-scala - 1.1.0

Published by pauldijou almost 6 years ago

  • Upgrade to uPickle 0.7.1 (thanks @edombowsky)
  • Add support for Argonaut (thanks @isbodand)
jwt-scala - 1.0.0

Published by pauldijou almost 6 years ago

  • Bump bouncyCastle version to fix CVE-2018-1000613 (thanks @djamelz)
  • Also 1.0.0 for no reason except no feature was needed over the last months.
jwt-scala - 0.19.0

Published by pauldijou about 6 years ago

Breaking change

This is actually a simple one but still... fixed a typo at asymmetric missing one m, just need to rename a few types to fix your code (thanks @DrPhil).

  • Add support to spray-json (thanks @Slakah)
  • Bump some versions (thanks @vhiairrassary)
jwt-scala - 0.18.0

Published by pauldijou about 6 years ago

  • Add support to aud being a simple string on uPickle (thans @deterdw)
  • Make all parseHeader and parseClaim methods public.
jwt-scala - 0.17.0

Published by pauldijou about 6 years ago

After consideration, release #84 , which mostly allow users to write custom parsers by extending jwt-scala ones. Doc page can be found here.

jwt-scala - 0.16.0

Published by pauldijou over 6 years ago

  • Adding Key ID property to JwtHeader as kid in JSON payload
jwt-scala - 0.15.0

Published by pauldijou over 6 years ago

  • Upgrade to uPickle 0.5.1
  • Upgrade to Circe 0.9.1 (thanks @jan0sch)
jwt-scala - 0.14.1

Published by pauldijou almost 7 years ago

  • Fix exception when play.http.session.maxAge is null in Play 2.6.x (thanks @austinpernell)
jwt-scala - 0.14.0

Published by pauldijou over 7 years ago

  • Add play.http.session.jwtResponseName to customize response header in Play (thanks @Isammoc)
  • Fix code snippet style in docs
jwt-scala - 0.13.0

Published by pauldijou over 7 years ago

  • Upgrade to Circe 0.8.0 (thanks @dvic)
  • Play 2.6 support (thanks @perotom)
  • Bouncy Castle 1.57 (thanks @rwhitworth)
jwt-scala - 0.12.1

Published by pauldijou over 7 years ago

  • Support spaces in JSON for pure Scala JWT
jwt-scala - 0.12.0

Published by pauldijou over 7 years ago

  • Breaking changes I liked having all implicits directly inside the package object but it started to create problems. When generating the documentation, which depends on all projects, we had runtime errors while all tests were green, but they are ran on project at a time. Also, it means all implicits where always present on the scope which might not be the best option. So the idea is to move them from the package object to the JwtXXX object. For example, for Play Json:
// Before
// JwtJson.scala.
package pdi.jwt

object JwtJson extends JwtJsonCommon[JsObject] {
  // stuff...
}

// package.scala
package pdi

package object jwt extends JwtJsonImplicits {}

// --------------------------------------------------------
// After
// JwtJson.scala.
package pdi.jwt

object JwtJson extends JwtJsonCommon[JsObject] with JwtJsonImplicits {
  // stuff...
}
jwt-scala - 0.11.0

Published by pauldijou over 7 years ago

  • Drop Scala 2.10
  • Play support is back
jwt-scala - 0.10.0

Published by pauldijou over 7 years ago

  • Support Scala 2.12.0
  • Drop Play Framework support until it supports Scala 2.12
  • Add uPickle support (thanks @alonsodomin )
  • Update Play Json to 2.6.0-M1 for Scala 2.12 support
  • Update Circe to 0.7.0
jwt-scala - 0.9.2

Published by pauldijou almost 8 years ago

  • Support Circe 0.6.0 (thanks @TimothyKlim )
jwt-scala - 0.9.1

Published by pauldijou almost 8 years ago

  • Support Json4s 3.5.0 (thanks @sanllanta )
jwt-scala - 0.9.0

Published by pauldijou about 8 years ago

  • Transformation of Signature to ASN.1 DER for ECDSA Algorithms (thanks @bestehle )
  • Remove algorithm aliases to align with JWA spec