mirror of
https://github.com/YunoHost/moulinette.git
synced 2024-09-03 20:06:31 +02:00
[fix] Temporarily hard fix non-authentication to 'default' in the api
This commit is contained in:
parent
b501e186be
commit
d40055cbda
1 changed files with 4 additions and 1 deletions
|
@ -399,7 +399,10 @@ class ActionsMapParser(BaseActionsMapParser):
|
||||||
|
|
||||||
# Perform authentication if needed
|
# Perform authentication if needed
|
||||||
if self.get_conf(tid, 'authenticate'):
|
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
|
# TODO: Catch errors
|
||||||
auth = msignals.authenticate(klass(), **auth_conf)
|
auth = msignals.authenticate(klass(), **auth_conf)
|
||||||
|
|
Loading…
Add table
Reference in a new issue