Signature Only

class oauthlib.oauth1.SignatureOnlyEndpoint(request_validator, token_generator=None)[source]

An endpoint only responsible for verifying an oauth signature.

validate_request(uri, http_method=u'GET', body=None, headers=None)[source]

Validate a signed OAuth request.

Parameters:
  • uri – The full URI of the token request.
  • http_method – A valid HTTP verb, i.e. GET, POST, PUT, HEAD, etc.
  • body – The request body as a string.
  • 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.