]> projects.mako.cc - twitter-api-cdsw/blobdiff - oauthlib/oauth1/rfc5849/endpoints/access_token.py
added updated version of oauthlib
[twitter-api-cdsw] / oauthlib / oauth1 / rfc5849 / endpoints / access_token.py
index 26db919a342923370381bea746cd542090461468..567965ac73d6218aced1f568776e6a3195b550ce 100644 (file)
@@ -192,6 +192,13 @@ class AccessTokenEndpoint(BaseEndpoint):
 
         valid_signature = self._check_signature(request, is_token_request=True)
 
+        # 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['verifier'] = valid_verifier
+        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?