package jwt
- Alphabetic
- Public
- All
Type Members
- trait JwtPlayImplicits extends AnyRef
-
case class
JwtSession
(headerData: JsObject, claimData: JsObject, signature: String) extends Product with Serializable
Similar to the default Play Session but using JsObject instead of Map[String, String].
Similar to the default Play Session but using JsObject instead of Map[String, String]. The data is separated into two attributes:
headerData
andclaimData
. There is also a optional signature. Most of the time, you should only care about theclaimData
which stores the claim of the token containing the custom values you eventually put in it. That's why all methods ofJwtSession
(such as add and removing values) only modifiy theclaimData
.To see a full list of samples, check the online documentation.
Warning Be aware that if you override the
claimData
(usingwithClaim
for example), you might override some attributes that were automatically put inside the claim such as the expiration of the token.
Value Members
- object JwtSession extends JwtJsonImplicits with JwtPlayImplicits with Serializable