Skip to content

A Redis storage backend for the python-openid package

License

Notifications You must be signed in to change notification settings

gcarothers/openid-redis

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

openid-redis

openid-redis is a Redis back-end storage for use with the python-openid package made by JanRain. It implements the OpenIDStore interface and can be plugged directly in.

To ensure proper operation, this back-end utilizes the entire python-openid Store test suite and has 100% unit test coverage.

IRC

I'm usually on Freenode on the #pylons channel, or #pythonpaste as benbangert.

Requirements

python-openid: http://pypi.python.org/pypi/python-openid/
Python redis library: http://github.com/andymccurdy/redis-py

Installation

Install python-openid and the redis library, then install openid-redis.

easy_install openid-redis

Usage

When using python-openid, use the Redis store:

from openidredis import RedisStore
from openid.server import server

openid_store = RedisStore()
openid_server = server.Server(openid_store, 'base_url_here')

RedisStore takes several parameters, host, port, db, and a key_prefix to use for storing the keys.

openid_store(RedisStore(host='localhost', port=4823, db=0, key_prefix='oid'))

About

A Redis storage backend for the python-openid package

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%