By adding import pdi.jwt._
, you will implicitely add this method to RequestHeader
allowing you to easily retrieve
the JwtSession inside your Play application.
By adding import pdi.jwt._
, you will implicitely add this method to RequestHeader
allowing you to easily retrieve
the JwtSession inside your Play application.
package controllers import play.api._ import play.api.mvc._ import pdi.jwt._ object Application extends Controller { def index = Action { request => val session: JwtSession = request.jwtSession } }
By adding import pdi.jwt._
, you will implicitely add all those methods to Result
allowing you to easily manipulate
the JwtSession inside your Play application.
By adding import pdi.jwt._
, you will implicitely add all those methods to Result
allowing you to easily manipulate
the JwtSession inside your Play application.
package controllers import play.api._ import play.api.mvc._ import pdi.jwt._ object Application extends Controller { def login = Action { implicit request => Ok.addingToJwtSession(("logged", true)) } def logout = Action { implicit request => Ok.withoutJwtSession } }