websauna.system.auth.tweens module

Authentication tweens.

class websauna.system.auth.tweens.SessionInvalidationTweenFactory(handler, registry)[source]

Bases: object

Tween to detect invalidated sessions and redirect user back to home.

This tween checks if the current session is logged in user and there has been authentication sensitive changes to this user. In this case all user sessions should be logged out.