What is repoze.who-use_beaker
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.
Metadata
Release files for repoze.who-use_beaker 0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distributions (sdists)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| repoze.who-use_beaker-0.3.zip | 8.3 kB | Without provenance | Details for repoze.who-use_beaker-0.3.zip | |
| repoze.who-use_beaker-0.3.tar.gz | 3.4 kB | Without provenance | Details for repoze.who-use_beaker-0.3.tar.gz |
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| repoze.who_use_beaker-0.3-py2.6.egg | Legacy Egg format | - | - | Details for repoze.who_use_beaker-0.3-py2.6.egg |
| repoze.who_use_beaker-0.3-py2.5.egg | Legacy Egg format | - | - | Details for repoze.who_use_beaker-0.3-py2.5.egg |
Total release size: 24.9 kB
Release files / repoze.who-use_beaker-0.3.zip
| Download URL | repoze.who-use_beaker-0.3.zip |
|---|---|
| Size | 8.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b88b86fab145025247768aa1fa05c76855ad439366b569d083f99ce3a01815d6
|
|
BLAKE2b-256 checksum How to use checksums |
b14ab04b34fd29ec21a63e07951e152f57b77da875b0c28ca39e6feaa1be07e6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / repoze.who-use_beaker-0.3.tar.gz
| Download URL | repoze.who-use_beaker-0.3.tar.gz |
|---|---|
| Size | 3.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
368474bac3728f30a960cf067a73fe9424f4ced9aec47038b17db13c544d8bb0
|
|
BLAKE2b-256 checksum How to use checksums |
635bee3f3503be6378e722f9b2d74b867a04c4f39571c4ca4bd1904233cc3919
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / repoze.who_use_beaker-0.3-py2.6.egg
| Download URL | repoze.who_use_beaker-0.3-py2.6.egg |
|---|---|
| Size | 6.6 kB |
| Tags | Egg |
|
SHA-256 checksum How to use checksums |
bc77a6777375653b3b8e40a8ff8666a6e4f6dd09081507d34d469a7f107b057c
|
|
BLAKE2b-256 checksum How to use checksums |
986703b7d6ceb7a2b156a25e0f771f6d16faec37e6cc483edbb2878a066cf3bb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / repoze.who_use_beaker-0.3-py2.5.egg
| Download URL | repoze.who_use_beaker-0.3-py2.5.egg |
|---|---|
| Size | 6.6 kB |
| Tags | Egg |
|
SHA-256 checksum How to use checksums |
bbbf72eb12ecb17c194f2268005c37f05818944dc0b11e815baa007715301d8c
|
|
BLAKE2b-256 checksum How to use checksums |
f06b9dbfd6e1bc850fd4e4d2cc92ba1181b15f3efb9d1a4de1a17babf900a436
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for repoze.who-use_beaker 0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.