&` bdZddlZddlmZddlmZej eZGddeZ y) z oauthlib.oauth1.rfc5849.endpoints.signature_only ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ This module is an implementation of the signing logic of OAuth 1.0 RFC 5849. N)errors) BaseEndpointceZdZdZ ddZy)SignatureOnlyEndpointz>An endpoint only responsible for verifying an oauth signature.Nc |j||||} |j ||j ||jj|j|j|j|stjdd|fS|jj|j|}|s|jj|_ |j|}||j d<||j d<t#||f} | sAtj dtj d |tj d || |fS#tj$r"}tj d|zYd}~yd}~wwxYw#tj$r&}tj d|zd|fcYd}~Sd}~wwxYw) aValidate a signed OAuth request. :param uri: The full URI of the token request. :param http_method: A valid HTTP verb, i.e. GET, POST, PUT, HEAD, etc. :param body: The request body as a string. :param headers: The request headers as a dict. :returns: A tuple of 2 elements. 1. True if valid, False otherwise. 2. An oauthlib.common.Request object. z.Exception caught while validating request, %s.N)FNFz.[Failure] verification failed: timestamp/nonceclient signaturez&[Failure] request verification failed.zValid client: %szValid signature: %s)_create_requestr OAuth1Errorloginfo_check_transport_security_check_mandatory_parametersrequest_validatorvalidate_timestamp_and_nonce client_key timestampnoncedebugvalidate_client_key dummy_client_check_signature validator_logall) selfuri http_methodbodyheadersrequesterr valid_clientvalid_signaturevs R/usr/lib/python3/dist-packages/oauthlib/oauth1/rfc5849/endpoints/signature_only.pyvalidate_requestz&SignatureOnlyEndpoint.validate_requests **3 T7KG  "  * *7 3  , ,W 5 %%BB""G$5$5w}}gO IIF G'> !--AA   ) !%!7!7!D!DG //8+7h'-<k* / 0 HH= > HH' 6 HH*O <'z_!!  HH@3F H !! " HH@3F H'> ! "s4E"F F 'FF  GG:GG)GETNN)__name__ __module__ __qualname____doc__r(r'rrsH05,0=r/r) r-loggingrbaser getLoggerr*rrr.r/r'r4s5g!ALAr/