]> projects.mako.cc - twitter-api-cdsw/blobdiff - oauthlib/oauth1/rfc5849/endpoints/resource.py
Handle content-type header charset value for streaming API
[twitter-api-cdsw] / oauthlib / oauth1 / rfc5849 / endpoints / resource.py
index 651a87cf3f30ca65c10d533b86f83dedb73cbec5..60216276001169b9a59f5c9ae1b3d14ebec0beba 100644 (file)
@@ -142,6 +142,13 @@ class ResourceEndpoint(BaseEndpoint):
 
         valid_signature = self._check_signature(request)
 
 
         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['resource_owner'] = valid_resource_owner
+        request.validator_log['realm'] = valid_realm
+        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
         # 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?