JWT support for Scala. Bonus extensions for Play, Play JSON, Json4s, Circe, uPickle, Spray and Argonaut
APACHE-2.0 License
Bot releases are hidden (Show)
Published by pauldijou over 5 years ago
JwtHeader
and JwtClaim
are no longer case class
so that you can extend them. (thanks @fahman)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.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())
Published by pauldijou over 5 years ago
Published by pauldijou over 5 years ago
Published by pauldijou almost 6 years ago
Published by pauldijou almost 6 years ago
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).
spray-json
(thanks @Slakah)Published by pauldijou about 6 years ago
aud
being a simple string on uPickle (thans @deterdw)parseHeader
and parseClaim
methods public.Published by pauldijou over 6 years ago
kid
in JSON payloadPublished by pauldijou over 6 years ago
Published by pauldijou almost 7 years ago
play.http.session.maxAge
is null
in Play 2.6.x (thanks @austinpernell)Published by pauldijou over 7 years ago
play.http.session.jwtResponseName
to customize response header in Play (thanks @Isammoc)Published by pauldijou over 7 years ago
Published by pauldijou over 7 years ago
Published by pauldijou over 7 years ago
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...
}
Published by pauldijou over 7 years ago
Published by pauldijou over 7 years ago
Published by pauldijou almost 8 years ago
Published by pauldijou almost 8 years ago