-
Notifications
You must be signed in to change notification settings - Fork 30
Description
This is a nice little Pyramid extension that works very well to provide access to a Pyramid server for a fixed time.
However, contrary to the cookie-based "auth ticket" solution in Pyramid, it does not support "sliding sessions" out of the box, i.e. sessions that automatically extend their duration as long as the user is active. To achieve this goal with web tokens, you could either issue short-living access tokens that renew automatically on every request or use special "refresh tokens" to obtain the actual acess tokens. I think pyramid_jwt should provide special support for one of these mechanisms. Maybe also some support for explicitly invalidating web tokens on log out using a blacklist as a kind of replacement for the "forget" method for cookies.