def is_valid_request(self, request, parameters={},<EOL>fake_method=None, handle_error=True):
try:<EOL><INDENT>if not parameters and hasattr(self, '<STR_LIT>'):<EOL><INDENT>parameters = self.params<EOL><DEDENT>method, url, headers, parameters = self.parse_request(<EOL>request, parameters, fake_method)<EOL>oauth_request = oauth2.Request.from_request(<EOL>method,<EOL>url,<EOL>headers=headers,<EOL>parameters=parameters)<EOL>self.oauth_server.verify_request(<EOL>oauth_request, self.oauth_consumer, {})<EOL><DEDENT>except oauth2.MissingSignature as e:<EOL><INDENT>if handle_error:<EOL><INDENT>return False<EOL><DEDENT>else:<EOL><INDENT>raise e<EOL><DEDENT><DEDENT>return True<EOL>
Validates an OAuth request using the python-oauth2 library:
    https://github.com/simplegeo/python-oauth2