From 8b66bd63b44fc3af85026d3072657e3137cdc431 Mon Sep 17 00:00:00 2001 From: Andrew Williams Date: Wed, 14 Apr 2010 13:04:00 +0100 Subject: [PATCH] Enable authentication --- api/urls.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/api/urls.py b/api/urls.py index b8a225e..36e061f 100644 --- a/api/urls.py +++ b/api/urls.py @@ -4,9 +4,9 @@ from piston.authentication import HttpBasicAuthentication from api.handlers import * -auth = HttpBasicAuthentication(realm="My Realm") -#ad = { 'authentication': auth } -ad = {} +auth = HttpBasicAuthentication(realm="Auth API") +ad = { 'authentication': auth } +#ad = {} user_resource = Resource(handler=UserHandler, **ad) login_resource = Resource(handler=LoginHandler, **ad)