aboutsummaryrefslogtreecommitdiffstats
path: root/rest_framework/authentication.py
diff options
context:
space:
mode:
authorTom Christie2013-01-21 21:29:49 +0000
committerTom Christie2013-01-21 21:29:49 +0000
commit65b62d64ec54b528b62a1500b8f6ffe216d45c09 (patch)
treeeb30f11fdb82a7940070cd9dca2d276c00cfb2ee /rest_framework/authentication.py
parent36fa722ebb1b438b710b90fe470fbdbf82fd676e (diff)
downloaddjango-rest-framework-65b62d64ec54b528b62a1500b8f6ffe216d45c09.tar.bz2
WWW-Authenticate responses
Diffstat (limited to 'rest_framework/authentication.py')
-rw-r--r--rest_framework/authentication.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/rest_framework/authentication.py b/rest_framework/authentication.py
index 6dc80498..fc169189 100644
--- a/rest_framework/authentication.py
+++ b/rest_framework/authentication.py
@@ -71,7 +71,7 @@ class BasicAuthentication(BaseAuthentication):
return (user, None)
raise exceptions.AuthenticationFailed('Invalid username/password')
- def authenticate_header(self):
+ def authenticate_header(self, request):
return 'Basic realm="%s"' % self.www_authenticate_realm
@@ -148,7 +148,7 @@ class TokenAuthentication(BaseAuthentication):
return (token.user, token)
raise exceptions.AuthenticationFailed('User inactive or deleted')
- def authenticate_header(self):
+ def authenticate_header(self, request):
return 'Token'