summaryrefslogtreecommitdiff
path: root/coip
diff options
context:
space:
mode:
authorLeif Johansson <leifj@sunet.se>2011-11-08 14:32:54 +0100
committerLeif Johansson <leifj@sunet.se>2011-11-08 14:32:54 +0100
commit1f089e2862ed6e9c66ac98bb3a09fb51ef442bf7 (patch)
tree4804e551f3bf69d0724e29265d4e1975fcd94fbf /coip
parentf207f05394c026da8b125e1c4b8a669a4848d1a8 (diff)
temporarily turn off autn in tastypie
Diffstat (limited to 'coip')
-rw-r--r--coip/apps/opensocial/people.py13
1 files changed, 6 insertions, 7 deletions
diff --git a/coip/apps/opensocial/people.py b/coip/apps/opensocial/people.py
index 613ef68..a52fb9d 100644
--- a/coip/apps/opensocial/people.py
+++ b/coip/apps/opensocial/people.py
@@ -17,7 +17,6 @@ from django.shortcuts import get_object_or_404
import logging
from pprint import pformat
from coip.apps.opensocial.common import OpenSocialResource
-from tastypie.authentication import OAuthAuthentication
from tastypie.authorization import DjangoAuthorization
class GroupResource(OpenSocialResource):
@@ -27,8 +26,8 @@ class GroupResource(OpenSocialResource):
serializer = OpenSocialSerializer()
resource_name = 'groups'
fields = ['short','description','id']
- authentication = OAuthAuthentication()
- authorization = DjangoAuthorization()
+ #authentication = OAuthAuthentication()
+ #authorization = DjangoAuthorization()
def override_urls(self):
return [
@@ -72,8 +71,8 @@ class MembershipResource(OpenSocialResource):
class Meta:
queryset = Membership.objects.all()
serializer = OpenSocialSerializer()
- authentication = OAuthAuthentication()
- authorization = DjangoAuthorization()
+ #authentication = OAuthAuthentication()
+ #authorization = DjangoAuthorization()
resource_name = 'membership'
fields = ['user','name']
filtering = {
@@ -92,8 +91,8 @@ class PersonResource(OpenSocialResource):
class Meta:
queryset = User.objects.all()
- authentication = OAuthAuthentication()
- authorization = DjangoAuthorization()
+ #authentication = OAuthAuthentication()
+ #authorization = DjangoAuthorization()
fields = ['username']
resource_name = 'people'
serializer = OpenSocialSerializer()