From d4578f9711c84478fa58a12456c9d1a346f210dc Mon Sep 17 00:00:00 2001 From: flyingeek Date: Sat, 25 Jan 2014 13:36:12 +0100 Subject: [PATCH] oauth validate_token fix The difference seems to be that verify_oauth_request apply a fix, the comment in the code is: # Ensure the passed keys and secrets are ascii, or HMAC will complain. --- rest_framework/authentication.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rest_framework/authentication.py b/rest_framework/authentication.py index e491ce5f9..5529aad15 100644 --- a/rest_framework/authentication.py +++ b/rest_framework/authentication.py @@ -275,7 +275,7 @@ class OAuthAuthentication(BaseAuthentication): Check the token and raise an `oauth.Error` exception if invalid. """ oauth_server, oauth_request = oauth_provider.utils.initialize_server_request(request) - oauth_server.verify_request(oauth_request, consumer, token) + oauth_provider.utils.verify_oauth_request(request, oauth_request, consumer, token) def check_nonce(self, request, oauth_request): """