Mercurial > hg > bitsyauth
view bitsyauth/persona.py @ 49:8358634e3d75
bitsyauth/js/persona.js example/persona.html
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Mon, 30 Dec 2013 20:00:02 -0800 |
parents | 6b53345b9c2e |
children | 12342551537b |
line wrap: on
line source
""" bitsyauth Mozilla persona implementation https://login.persona.org/ """ import os from webob import Request, Response, exc __all__ = ['BitsyauthPersona', 'persona_js'] # persona javascript file path here = os.path.abspath(os.path.dirname(__file__)) persona_js = None # TODO class BitsyauthPersona(object): def __init__(self, app=None): self.app = app def __call__(self, environ, start_response): request = Request(environ)