[fix] Temporarily hard fix non-authentication to 'default' in the api

This commit is contained in:
Jérôme Lebleu 2014-05-16 12:34:09 +02:00
parent b501e186be
commit d40055cbda

View file

@ -399,7 +399,10 @@ class ActionsMapParser(BaseActionsMapParser):
# Perform authentication if needed
if self.get_conf(tid, 'authenticate'):
auth_conf, klass = self.get_conf(tid, 'authenticator')
# TODO: Clean this hard fix and find a way to set an authenticator
# to use for the api only
# auth_conf, klass = self.get_conf(tid, 'authenticator')
auth_conf, klass = self.get_global_conf('authenticator', 'default')
# TODO: Catch errors
auth = msignals.authenticate(klass(), **auth_conf)