diff options
| author | Tom Christie | 2013-01-21 21:29:49 +0000 | 
|---|---|---|
| committer | Tom Christie | 2013-01-21 21:29:49 +0000 | 
| commit | 65b62d64ec54b528b62a1500b8f6ffe216d45c09 (patch) | |
| tree | eb30f11fdb82a7940070cd9dca2d276c00cfb2ee /rest_framework/authentication.py | |
| parent | 36fa722ebb1b438b710b90fe470fbdbf82fd676e (diff) | |
| download | django-rest-framework-65b62d64ec54b528b62a1500b8f6ffe216d45c09.tar.bz2 | |
WWW-Authenticate responses
Diffstat (limited to 'rest_framework/authentication.py')
| -rw-r--r-- | rest_framework/authentication.py | 4 | 
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' | 
