mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-08-03 12:00:12 +03:00
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.
This commit is contained in:
parent
e3c5a13451
commit
d4578f9711
|
@ -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):
|
||||
"""
|
||||
|
|
Loading…
Reference in New Issue
Block a user