My favorites | Sign in
Project Logo
Project hosting will be READ-ONLY Wednesday at 8am PST due to brief network maintenance.
                
Code license: New BSD License
Labels: python, openid, wsgi
Links:
Blogs:
Feeds:
People details
Project owners:
  wes.chow

Opid is a simple, flexible OpenID consumer WSGI app. You can use it to add OpenID login support to your WSGI application.

Full documentation is in opid.py. A quick example usage:

opid_session_key = 'test.session'
opid_app = opid.App(session_key=opid_session_key)

urls = paste.urlmap.URLMap()

# your app here
urls['/'] = index_app

# opid takes over /opid/verify and /opid/return
urls['/opid'] = opid_app

# you can install the unauthenticate path anywhere you like
urls['/signout'] = opid_app.unauth_app('/logged_out')

# show your logged out page
urls['/logged_out'] = logged_out_app

urls = beaker.middleware.SessionMiddleware(urls, environ_key=opid_session_key)

For a full example, see test.py.









Hosted by Google Code