diff options
author | jonathan vanasco <jonathan@2xlp.com> | 2015-08-12 12:37:21 -0400 |
---|---|---|
committer | jonathan vanasco <jonathan@2xlp.com> | 2015-08-12 12:37:21 -0400 |
commit | 58a2a735ac329f890c5dd4a042b35ee544084db0 (patch) | |
tree | e93782efdfe6e38be6cb513a2620bbcc40a21c01 /oauthlib/oauth1/rfc5849/endpoints/access_token.py | |
parent | db40f9989545fc170960f692bedd3c8ba2cf0642 (diff) | |
download | oauthlib-58a2a735ac329f890c5dd4a042b35ee544084db0.tar.gz |
adding validator_log to store what the endpoint computed
Diffstat (limited to 'oauthlib/oauth1/rfc5849/endpoints/access_token.py')
-rw-r--r-- | oauthlib/oauth1/rfc5849/endpoints/access_token.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/oauthlib/oauth1/rfc5849/endpoints/access_token.py b/oauthlib/oauth1/rfc5849/endpoints/access_token.py index 26db919..567965a 100644 --- a/oauthlib/oauth1/rfc5849/endpoints/access_token.py +++ b/oauthlib/oauth1/rfc5849/endpoints/access_token.py @@ -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 |