Skip to content

Support for sliding sessions #14

@Cito

Description

@Cito

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions