Silhouette is an authentication library for Play Framework applications that supports several authentication methods, including OAuth1, OAuth2, OpenID, Credentials or custom authentication schemes.
akkie on gh-pages
updated site (compare)
akkie on gh-pages
updated site (compare)
akkie on gh-pages
updated site (compare)
akkie on master
Fixed Auth0ProfileParser to get… (compare)
akkie on gh-pages
updated site (compare)
akkie on gh-pages
updated site (compare)
akkie on 7.0.0
akkie on master
Release version 7.0.0 (compare)
akkie on 7.0.0-RC1
web: target/universal/stage/bin/myapp -Dhttp.port=${PORT} -Dconfig.file=${PLAY_CONF_FILE} -Dplay.evolutions.db.default.autoApply=true
PLAY_CONF_FILE
is set to application.prod.conf
as part of the conf vars settings in Heroku
-Dconfig.resource
Dconfig.file
The same with `Accept-Encoding`. But in Chromium/Blink based browser the content of this header may
be changed during requests. @see https://github.com/mohiva/play-silhouette/issues/277
Hello guys.
We are trying to decode a Play JWT token on our other app in order to allow access on some specific resources and we are using https://github.com/jpadilla/pyjwt library. We are using the following code but we get Signature verification failed. Any suggestions?
jwt_payload = jwt.decode(token, 'changem', algorithms=['HS256'])
print(jwt_payload)
jwt.exceptions.InvalidSignatureError: Signature verification failed
Hi guys I'm having a bit of an issue any help would be appreciated. Thought I would ask before filling a bug. Im using Play 2.7.3 play-silhouette 6.1.1 Guice and JWT. Im unable to to change authenticatorIdleTimeout to implement rememberMe. This code worked on play-silhouette 5.
case Some(user) => silhouette.env.authenticatorService.create(loginInfo).map {
case authenticator if data.rememberMe =>
val c = configuration.underlying
authenticator.copy(
expirationDateTime = clock.now + c.as[FiniteDuration]("silhouette.authenticator.rememberMe.authenticatorExpiry"),
idleTimeout = c.getAs[FiniteDuration]("silhouette.authenticator.rememberMe.authenticatorIdleTimeout"))
case authenticator => authenticator
}.flatMap { authenticator =>
silhouette.env.eventBus.publish(LoginEvent(user, request))
silhouette.env.authenticatorService.init(authenticator).map { token =>
Ok(Json.obj("token" -> token))
}
}
Am I doing something wrong?
serialize
function uses the dates from the authenticator when creating the token. So if you change the dates in the authenticator, then the token should also contain these dates. Have you double checked your new updated values and the exp
and iat
claims in your token? Are they not the same?