]> projects.mako.cc - twitter-api-cdsw/blobdiff - oauthlib/oauth1/rfc5849/endpoints/request_token.py
added updated version of oauthlib
[twitter-api-cdsw] / oauthlib / oauth1 / rfc5849 / endpoints / request_token.py
index e97c34bfd188fed5bd0ab27dc2b1d29313ac212d..4a76abc083d636d681448ccc352a4797b714cdcf 100644 (file)
@@ -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

Benjamin Mako Hill || Want to submit a patch?