Skip to content

Commit

Permalink
add api key authentication
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Caldwell committed Nov 19, 2013
1 parent 1094055 commit 78c6d25
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions requirements.txt
@@ -1,2 +1,3 @@
django>=1.4.5
django-tastypie==0.9.14
requests==2.0.1
4 changes: 2 additions & 2 deletions sigmund/api.py
@@ -1,13 +1,13 @@
from models import LogEntry
from tastypie.authentication import Authentication
from tastypie.authentication import ApiKeyAuthentication
from tastypie.authorization import Authorization
from tastypie.resources import ModelResource
from tastypie.serializers import Serializer

class SigmundResource(ModelResource):
class Meta:
queryset = LogEntry.objects.all()
authentication = Authentication()
authentication = ApiKeyAuthentication()
authorization = Authorization()
serializer = Serializer(formats=['json', 'jsonp'])

Expand Down

0 comments on commit 78c6d25

Please sign in to comment.