diff options
author | Ib Lundgren <ib.lundgren@gmail.com> | 2013-09-12 19:19:51 +0100 |
---|---|---|
committer | Ib Lundgren <ib.lundgren@gmail.com> | 2013-09-12 19:19:51 +0100 |
commit | 03fcc49e15e40412fe4951df0195e8b739fd24f0 (patch) | |
tree | 53c33e25c3fc53d33bd69a18e4bbba46a1e70d39 /oauthlib | |
parent | d128ab21bac98b12790bf566b5d482591e1ce169 (diff) | |
download | oauthlib-03fcc49e15e40412fe4951df0195e8b739fd24f0.tar.gz |
Remove dead code for plaintext signature in Client.
Diffstat (limited to 'oauthlib')
-rw-r--r-- | oauthlib/oauth1/rfc5849/__init__.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/oauthlib/oauth1/rfc5849/__init__.py b/oauthlib/oauth1/rfc5849/__init__.py index 42683c7..2f0509f 100644 --- a/oauthlib/oauth1/rfc5849/__init__.py +++ b/oauthlib/oauth1/rfc5849/__init__.py @@ -134,8 +134,7 @@ class Client(object): elif self.signature_method == SIGNATURE_RSA: sig = signature.sign_rsa_sha1(base_string, self.rsa_key) else: - sig = signature.sign_plaintext(self.client_secret, - self.resource_owner_secret) + raise ValueError('Invalid signature method.') log.debug("Signature: {0}".format(sig)) return sig |