Projet

Général

Profil

0001-add-hobo-rest_authentication-class-to-service-9974.patch

Josué Kouka, 16 février 2016 09:57

Télécharger (1,12 ko)

Voir les différences:

Subject: [PATCH] add hobo rest_authentication class to service (#9974)

 debian/debian_config_common.py | 13 +++++++++++++
 1 file changed, 13 insertions(+)
debian/debian_config_common.py
196 196
BROKER_TASK_EXPIRES = 120
197 197

  
198 198
STATICS_HASH_COUNTER = '/var/lib/publik/statics-counter'
199

  
200

  
201
if 'rest_framework' in INSTALLED_APPS:
202
    if 'REST_FRAMEWORK' not in globals():
203
        REST_FRAMEWORK = {}
204

  
205
    if 'DEFAULT_AUTHENTICATION_CLASSES' in REST_FRAMEWORK:
206
        REST_FRAMEWORK['DEFAULT_AUTHENTICATION_CLASSES'] += ('hobo.rest_authentication.PublikAuthentication',)
207
    else:
208
        REST_FRAMEWORK['DEFAULT_AUTHENTICATION_CLASSES'] = ('hobo.rest_authentication.PublikAuthentication',)
209

  
210
HOBO_ANONYMOUS_SERVICE_USER_CLASS = 'hobo.rest_authentication.AnonymousAdminServiceUser'
211

  
199
-