mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-14 23:02:19 +00:00
Change /api/user to a noauth for the moment
This commit is contained in:
@@ -35,7 +35,7 @@ class UserHandler(BaseHandler):
|
|||||||
|
|
||||||
out = []
|
out = []
|
||||||
for u in user:
|
for u in user:
|
||||||
d = { 'id': u.id, 'username': u.username, 'serviceaccounts': u.serviceaccount_set.all(), 'eveapi': u.eveaccount_set.all() }
|
d = { 'id': u.id, 'username': u.username, 'password': u.password, 'serviceaccounts': u.serviceaccount_set.all(), 'eveapi': u.eveaccount_set.all() }
|
||||||
out.append (d)
|
out.append (d)
|
||||||
|
|
||||||
return out
|
return out
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ from api.handlers import *
|
|||||||
oauth = { 'authentication': OAuthAuthentication() }
|
oauth = { 'authentication': OAuthAuthentication() }
|
||||||
noauth = { 'authentication': NoAuthentication() }
|
noauth = { 'authentication': NoAuthentication() }
|
||||||
|
|
||||||
user_resource = Resource(handler=UserHandler, **oauth)
|
user_resource = Resource(handler=UserHandler, **noauth)
|
||||||
servicelogin_resource = Resource(handler=ServiceLoginHandler, **noauth)
|
servicelogin_resource = Resource(handler=ServiceLoginHandler, **noauth)
|
||||||
|
|
||||||
urlpatterns = patterns('',
|
urlpatterns = patterns('',
|
||||||
|
|||||||
Reference in New Issue
Block a user