comparison bitsyauth/persona.py @ 51:12342551537b

bitsyauth/persona.py
author Jeff Hammel <jhammel@mozilla.com>
date Mon, 30 Dec 2013 23:03:55 -0800
parents 6b53345b9c2e
children
comparison
equal deleted inserted replaced
50:5517ac16c9fb 51:12342551537b
12 # persona javascript file path 12 # persona javascript file path
13 here = os.path.abspath(os.path.dirname(__file__)) 13 here = os.path.abspath(os.path.dirname(__file__))
14 persona_js = None # TODO 14 persona_js = None # TODO
15 15
16 class BitsyauthPersona(object): 16 class BitsyauthPersona(object):
17 def __init__(self, app=None): 17 onload = """persona(%(loggedInUser)s, %(onloginURL)s, %(onlogoutURL)s);"""
18
19 def __init__(self, app=None, path='/auth'):
18 self.app = app 20 self.app = app
21 self.path = path.rstrip('/')
19 def __call__(self, environ, start_response): 22 def __call__(self, environ, start_response):
20 request = Request(environ) 23 request = Request(environ)