From 40504f4a370558402a8f45003ac04626f14a5f39 Mon Sep 17 00:00:00 2001 From: Josue Kouka Date: Mon, 15 Feb 2016 18:17:15 +0100 Subject: [PATCH] add hobo rest_authentication class to service (#9974) --- debian/debian_config_common.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/debian/debian_config_common.py b/debian/debian_config_common.py index 19baf00..9649506 100644 --- a/debian/debian_config_common.py +++ b/debian/debian_config_common.py @@ -196,3 +196,12 @@ BROKER_URL = 'amqp://' BROKER_TASK_EXPIRES = 120 STATICS_HASH_COUNTER = '/var/lib/publik/statics-counter' + +if 'rest_framework' in INSTALLED_APPS: + REST_FRAMEWORK = { + 'DEFAULT_AUTHENTICATION_CLASSES': ( + 'rest_framework.authentication.SessionAuthentication', + 'rest_framework.authentication.BasicAuthentication', + 'hobo.rest_authentication.PublikAuthentication' + ) + } -- 2.7.0