This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description

repoze.who-use_beaker is a repoze.who identifier plugin. It is aimed at replacing repoze.who.plugins.auth_tkt in order to store the user data in beaker session.

The plugin stores a dictionary containing at least {'repoze.who.userid': userid} under key repoze.who.tkt.

UseBeakerPlugin takes the following parameters:

  • key_name (default: repoze.who.tkt) - the key name to store the userid under:

    >>> userid = session['repoze.who.tkt']
    
  • session_name (default: beaker.session) - the key name of the beaker session in the WSGI environment:

    >>> session = environ['beaker.session']
    
  • delete_on_logout (default: false) - if false then on logout session['repoze.who.tkt'] is erased but the other session data stays and will be reused during the next session. If you want the session to be invalidated pass delete_on_logout = True

  • alsopersist (default: ['userdata']) - a sequence of item keys that are persisted along to repoze.who.userid

Usually you should use make_plugin method instead of instantiating UseBeakerPlugin directly:

>>> from repoze.who.plugins.use_beaker import make_plugin
>>> plugin = make_plugin(**kw)

In order to properly use the beaker.session repoze.who (with repoze.who-use_beaker) has to be placed lower in the WSGI stack. Usually this means that you have to define repoze.who in your framework’s middleware configuration higher than beaker session. E.g. (using the factory from repoze.what-quickstart):

>>> from beaker.middleware import SessionMiddleware
>>> from repoze.what.plugins.quickstart import setup_sql_auth
>>> from repoze.who.plugins.use_beaker import make_plugin as make_beaker_plugin

... # app definition here

>>> app = setup_sql_auth(app,
...     User, Group, Permission, DBSession,
...     # HERE we provide the beaker plugin to be used as the primary identifier
...     identifiers=[('use_beaker', make_beaker_plugin())],
...     form_plugin=... # The rest of repoze configuration

... # more middlewares here

>>> app = SessionMiddleware(app, config)

Git repository is located at GitHub.com.

Release History

Release History

0.3

This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

0.2

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
repoze.who_use_beaker-0.3-py2.5.egg (6.6 kB) Copy SHA256 Checksum SHA256 2.5 Egg Dec 8, 2009
repoze.who_use_beaker-0.3-py2.6.egg (6.6 kB) Copy SHA256 Checksum SHA256 2.6 Egg Dec 8, 2009
repoze.who-use_beaker-0.3.tar.gz (3.4 kB) Copy SHA256 Checksum SHA256 Source Dec 8, 2009
repoze.who-use_beaker-0.3.zip (8.3 kB) Copy SHA256 Checksum SHA256 Source Dec 8, 2009

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting