diff options
| author | Pierre Dulac | 2013-03-01 12:08:28 +0100 |
|---|---|---|
| committer | Pierre Dulac | 2013-03-01 12:08:28 +0100 |
| commit | d4c2267187128c60927931c685a5c41a95c300bd (patch) | |
| tree | d1b10f1e7f129d8a353cc82fc9c9de3a2ad80e02 /rest_framework/authentication.py | |
| parent | 653fcf7e3315f9aefba8474591909e564492ecfe (diff) | |
| download | django-rest-framework-d4c2267187128c60927931c685a5c41a95c300bd.tar.bz2 | |
Clean up some print and comments
Diffstat (limited to 'rest_framework/authentication.py')
| -rw-r--r-- | rest_framework/authentication.py | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/rest_framework/authentication.py b/rest_framework/authentication.py index c94af405..c74078fc 100644 --- a/rest_framework/authentication.py +++ b/rest_framework/authentication.py @@ -175,7 +175,6 @@ class OAuth2Authentication(BaseAuthentication): http://tools.ietf.org/html/rfc6749#section-7.1 """ auth = request.META.get('HTTP_AUTHORIZATION', '').split() - print auth if not auth or auth[0].lower() != "bearer": return None @@ -202,11 +201,6 @@ class OAuth2Authentication(BaseAuthentication): raise exceptions.AuthenticationFailed("Invalid token") # does not exist or is expired # TODO check scope - # try: - # self.validate_token(request, consumer, token) - # except oauth2_provider.Error, e: - # print "got e" - # raise exceptions.AuthenticationFailed(e.message) if not self.check_active(token.user): raise exceptions.AuthenticationFailed('User not active: %s' % token.user.username) |
