Enable authentication

This commit is contained in:
2010-04-14 13:04:00 +01:00
parent 4e842f4a9f
commit 8b66bd63b4

View File

@@ -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)