mirror of
https://github.com/nikdoof/test-auth.git
synced 2026-01-30 16:08:14 +00:00
Enable authentication
This commit is contained in:
@@ -4,9 +4,9 @@ from piston.authentication import HttpBasicAuthentication
|
|||||||
|
|
||||||
from api.handlers import *
|
from api.handlers import *
|
||||||
|
|
||||||
auth = HttpBasicAuthentication(realm="My Realm")
|
auth = HttpBasicAuthentication(realm="Auth API")
|
||||||
#ad = { 'authentication': auth }
|
ad = { 'authentication': auth }
|
||||||
ad = {}
|
#ad = {}
|
||||||
|
|
||||||
user_resource = Resource(handler=UserHandler, **ad)
|
user_resource = Resource(handler=UserHandler, **ad)
|
||||||
login_resource = Resource(handler=LoginHandler, **ad)
|
login_resource = Resource(handler=LoginHandler, **ad)
|
||||||
|
|||||||
Reference in New Issue
Block a user