From 8f6f6c3fcd734119caba4539da70a9ba798f3cf7 Mon Sep 17 00:00:00 2001 From: Hoylen Sue Date: Tue, 1 Aug 2017 11:45:36 +1000 Subject: Extra logging if verification fails because of timestamp/nonce. --- oauthlib/oauth1/rfc5849/endpoints/signature_only.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'oauthlib') diff --git a/oauthlib/oauth1/rfc5849/endpoints/signature_only.py b/oauthlib/oauth1/rfc5849/endpoints/signature_only.py index 990381f..32b8b74 100644 --- a/oauthlib/oauth1/rfc5849/endpoints/signature_only.py +++ b/oauthlib/oauth1/rfc5849/endpoints/signature_only.py @@ -49,7 +49,7 @@ class SignatureOnlyEndpoint(BaseEndpoint): if not self.request_validator.validate_timestamp_and_nonce( request.client_key, request.timestamp, request.nonce, request): - log.debug("[Failure] verification failed: timestamp/nonce") + log.debug('[Failure] verification failed: timestamp/nonce') return False, request # The server SHOULD return a 401 (Unauthorized) status code when -- cgit v1.2.1