- def __init__(self, app):
- super(DummyAuthenticate, self).__init__(app, {
- 'authkit.authenticate': True})
+ def __init__(self, app, app_conf):
+ newenv = {}
+ newenv['authkit.authenticate'] = True
+ newenv['authkit.config'] = {'setup.enable': True}
+ if 'fake_username' in app_conf:
+ newenv['REMOTE_USER'] = app_conf['fake_username']
+ super(DummyAuthenticate, self).__init__(app, newenv)