X-Git-Url: https://projects.mako.cc/source/twitter-api-cdsw/blobdiff_plain/043b63c67557591f1e85b53d17fc8a1a797f48ca..HEAD:/oauthlib/oauth1/rfc5849/endpoints/request_token.py diff --git a/oauthlib/oauth1/rfc5849/endpoints/request_token.py b/oauthlib/oauth1/rfc5849/endpoints/request_token.py index e97c34b..4a76abc 100644 --- a/oauthlib/oauth1/rfc5849/endpoints/request_token.py +++ b/oauthlib/oauth1/rfc5849/endpoints/request_token.py @@ -187,6 +187,13 @@ class RequestTokenEndpoint(BaseEndpoint): valid_signature = self._check_signature(request) + # log the results to the validator_log + # this lets us handle internal reporting and analysis + request.validator_log['client'] = valid_client + request.validator_log['realm'] = valid_realm + request.validator_log['callback'] = valid_redirect + request.validator_log['signature'] = valid_signature + # We delay checking validity until the very end, using dummy values for # calculations and fetching secrets/keys to ensure the flow of every # request remains almost identical regardless of whether valid values