mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-14 06:42:16 +00:00
Enable authentication
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user