Fixed plugin detection
This commit is contained in:
parent
5f408bfd3c
commit
bbee163954
|
@ -38,7 +38,7 @@ def create_app():
|
||||||
logger.debug('Found authentification plugin: %s', entry_point.name)
|
logger.debug('Found authentification plugin: %s', entry_point.name)
|
||||||
if entry_point.name == config['FLASCHENGEIST']['AUTH']:
|
if entry_point.name == config['FLASCHENGEIST']['AUTH']:
|
||||||
app.config['FG_AUTH_BACKEND'] = entry_point.load()()
|
app.config['FG_AUTH_BACKEND'] = entry_point.load()()
|
||||||
app.config['FG_AUTH_BACKEND'].configure(config[entry_point.name] if config.has_section(entry_point.name) else None)
|
app.config['FG_AUTH_BACKEND'].configure(config[entry_point.name] if config.has_section(entry_point.name) else {})
|
||||||
logger.info('Loaded authentification plugin > %s <', entry_point.name)
|
logger.info('Loaded authentification plugin > %s <', entry_point.name)
|
||||||
break
|
break
|
||||||
if not app.config['FG_AUTH_BACKEND']:
|
if not app.config['FG_AUTH_BACKEND']:
|
||||||
|
|
|
@ -1,7 +1,4 @@
|
||||||
class Auth():
|
class Auth():
|
||||||
def defaultConfig(self):
|
|
||||||
return None
|
|
||||||
|
|
||||||
def configure(self, config):
|
def configure(self, config):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue