Configure Velruse’s session factory and backend storage.

The default setup uses Pyramid’s UnencryptedCookieSessionFactoryConfig for storing session data.

Relevant settings:

session.secret controls the secret used when signing the session cookies and will be randomly generated if unspecified.

session.cookie_name is the name of the cookie stored on a client’s browser and will default to ‘velruse.session’.

store.* settings are used by the anykeystore library to construct a storage backend for user credentials. If no storage settings are specified then an in-memory storage backend will be used.

register_velruse_store(config, storage)[source]

Add key/value store for Velruse to the Pyramid application.

This function is registered with Pyramid and can be used via config.register_velruse_store(storage).

storage should be an instance of an anykeystore backend.

make_app(global_conf, **settings)[source]

Construct a complete WSGI app.

This function is compatible with the PasteDeploy WSGI application factory API, which is also used by Pyramid’s pserve script.

Example INI file:

use = egg:Paste#http
host =
port = 80

use = egg:Paste#urlmap
/velruse = velruse

use = egg:velruse

setup = myapp.setup_velruse

endpoint =

store = redis = localhost
store.port = 6379
store.db = 0
store.key_prefix = velruse_ustore

provider.facebook.consumer_key = KMfXjzsA2qVUcnnRn3vpnwWZ2pwPRFZdb
provider.facebook.consumer_secret =
provider.facebook.scope = email = twitter = ULZ6PkJbsqw2GxZWCIbOEBZdkrb9XwgXNjRy = eoCrFwnpBWXjbim5dyG6EP7HzjhQzFsMAcQOEK

use = egg:YOURAPP
full_stack = true
static_files = true

Previous topic


Next topic


This Page