repoze.who.plugins.beaker_tkt – Store identity information in Beaker session

Author:Domen Kožar <domen[ATNOSPAM]dev.si>
Version:0.1
Source:http://bitbucket.org/iElectric/repozewhopluginsbeaker_tkt/
Bug tracker:http://bitbucket.org/iElectric/repozewhopluginsbeaker_tkt/issues/

Overview

BeakerAuthTktPlugin shares the same idea as CookieAuthTktPlugin from repoze.who.plugins.auth_tkt.

Identifier plugins should call .remember() and .forget() methods, which will force BeakerAuthTktPlugin to save/delete identity dictionary to/from Beaker session.

After .remember() has been called, BeakerAuthTktPlugin will return cached identity (on .identity() call) from configured Beaker session.

Note

You have to configure SessionMiddleware (must be placed AFTER repoze.who middleware) if your framework does not use it already.

API

class repoze.who.plugins.beaker_tkt.BeakerAuthTktPlugin(key_name='repoze.who.tkt', session_name='beaker.session')
forget(environ, identity)

Does not return any headers, just deletes the session entry.

identify(environ)

Return identity from Beaker session

remember(environ, identity)

Does not return any headers, just saves identity to Beaker session

repoze.who.plugins.beaker_tkt.make_plugin(key_name='repoze.who.tkt', session_name='beaker.session')

Changes

0.1 (12.04.2009)

  • initial release

Indices and tables