code: def is_valid_request(self, request, parameters={},
                           fake_method=None, handle_error=True):
          '''
          Validates an OAuth request using the python-oauth2 library:
              https://github.com/simplegeo/python-oauth2
  
          '''
          try:
              # Set the parameters to be what we were passed earlier
              # if we didn't get any passed to us now
              if not parameters and hasattr(self, 'params'):
                  parameters = self.params
  
              method, url, headers, parameters = self.parse_request(
                  request, parameters, fake_method)
  
              oauth_request = oauth2.Request.from_request(
                  method,
                  url,
                  headers=headers,
                  parameters=parameters)
  
              self.oauth_server.verify_request(
                  oauth_request, self.oauth_consumer, {})
  
          except oauth2.MissingSignature, e:
              if handle_error:
                  return False
              else:
                  raise e
          # Signature was valid
          return Truf is_valid_request(self, request, parameters={},
                           fake_method=None, handle_error=True):
          '''
          Validates an OAuth request using the python-oauth2 library:
              https://github.com/simplegeo/python-oauth2
  
          '''
          try:
              # Set the parameters to be what we were passed earlier
              # if we didn't get any passed to us now
              if not parameters and hasattr(self, 'params'):
                  parameters = self.params
  
              method, url, headers, parameters = self.parse_request(
                  request, parameters, fake_method)
  
              oauth_request = oauth2.Request.from_request(
                  method,
                  url,
                  headers=headers,
                  parameters=parameters)
  
              self.oauth_server.verify_request(
                  oauth_request, self.oauth_consumer, {})
  
          except oauth2.MissingSignature, e:
              if handle_error:
                  return False
              else:
                  raise e
          # Signature was valid
          return True
docs: Validates an OAuth request using the python-oauth2 library:
              https://github.com/simplegeo/python-oauth2