Comments (7)
I think maxAge
also accepts Duration
syntax. But in case of a number, it converts it to seconds. I don't assume anything and I'm using getConfigMillis
which will read a duration as milliseconds from the config file. Did the session expired way later than planned in your project?
from jwt-scala.
What happened for me was that I set the maxAge = 300
, which is supposed to be 300 seconds, or 5 minutes. However, due to the _ / 1000
part, the MAX_AGE
is zero from 300 / 1000
. This makes the JWT expire instantly. I will try out the duration format later. 😄
from jwt-scala.
Please, take a look at https://www.playframework.com/documentation/2.5.x/Migration23#Session-timeouts
You should either use a duration or multiply by 1000. Are you still using Play 2.3 or lower?
from jwt-scala.
No, I am using Play 2.5.1
On Apr 15, 2016, at 10:23 PM, Paul Dijou [email protected] wrote:
Please, take a look at https://www.playframework.com/documentation/2.5.x/Migration23#Session-timeouts https://www.playframework.com/documentation/2.5.x/Migration23#Session-timeouts
You should either use a duration or multiply by 1000. If you are using Play 2.3 or lower, that's problematic. Are you still using Play 2.3 or lower?—
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub #21 (comment)
from jwt-scala.
The comments might be legacy. You could test if the session cookie expiration is 300ms or 300s later. It should be 300ms, just like the JWT token. If that the case, are you okay with using the new syntax or a bigger number?
from jwt-scala.
I will. Once I do that, I will feedback on this thread :). I am being stuck with some other tasks at the moment. I appreciate your work here ;)
On Apr 16, 2016, at 4:05 PM, Paul Dijou [email protected] wrote:
The comments might be legacy. You could test if the cookie session expiration is 300ms or 300s later. It should be 300ms, just like the JWT token. If that the case, are you okay with using the news syntax or a bigger number?
—
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub #21 (comment)
from jwt-scala.
Ok, closing for now but feel free to update.
from jwt-scala.
Related Issues (20)
- Add zio-json usage documentation
- com.fasterxml.jackson.databind.JsonMappingException: Scala module 2.11.4 requires Jackson Databind version >= 2.11.0 and < 2.12.0 HOT 10
- 9.1.1 changelog? HOT 2
- zio-json partially missing in the docs
- com.fasterxml.jackson.databind.JsonMappingException: Scala module 2.11.4 requires Jackson Databind version >= 2.11.0 and < 2.12.0 HOT 2
- Why does JwtCirce.decode lead to java.time.Clock validating the expiration? HOT 3
- [Question] Support for Base64 url encoded keys HOT 1
- [Question] Lookup the algorithm from the token
- fix scala-js build HOT 5
- Ed25519 is not the correct JSON Web Algorithm name
- parseKey does not work with keys stored in AWS secrets manager
- Version 9.4.0 is not compatible with Scala 3.2.2 HOT 6
- New release? HOT 3
- scala.js compatibility
- Incorrect Regex for JTI and ISS
- Play 3.x support for `jwt-play` HOT 2
- Scala3 Support for jwt-play HOT 1
- scala-jwt 9.4.5 contains a major breaking change HOT 1
- com.fasterxml.jackson.databind.JsonMappingException: Scala module 2.14.3 requires Jackson Databind version >= 2.14.0 and < 2.15.0 - Found jackson-databind version 2.15.0 HOT 1
- JWKS? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jwt-scala.