Added API tests

This commit is contained in:
Joar Wandborg
2012-12-23 00:34:27 +01:00
parent 05501c5742
commit 57c6473aa2
3 changed files with 107 additions and 1 deletions

View File

@@ -135,8 +135,8 @@ def api_auth(controller):
auth_candidates = []
for auth in PluginManager().get_hook_callables('auth'):
_log.debug('Plugin auth: {0}'.format(auth))
if auth.trigger(request):
_log.debug('{0} believes it is capable of authenticating this request.'.format(auth))
auth_candidates.append(auth)
# If we can't find any authentication methods, we should not let them