Commit Graph

38 Commits

Author SHA1 Message Date
Victoria Mo 5296b8be90 Fix infinite loop on wrong Digest Authentication (Issue #547)
Modified code to use the current fix versus the old fix, which was broken.

Co-Authored By: Timnit Gebru <tgebru@gmail.com>
Co-Authored By: Sarah Gonzalez <smar.gonz@gmail.com>
Co-Authored By: Leila Muhtasib <muhtasib@gmail.com>
2012-07-14 16:09:13 -04:00
Kenneth Reitz a1fd038d2c vendored oauthlib 2012-06-28 17:20:26 -07:00
Marty Alchin 4e568c1899 Sign querystring parameters in OAuth 1.0
Existing usage doesn't pass GET querystring parameters along to oauthlib,
so it wasn't signing those properly, which causes problems with APIs that
rely heavily on GET parameters. By passing in r.full_url instead of r.url,
oauthlib can parse out the correct parameters and sign them properly.
2012-06-18 21:02:51 -07:00
Marty Alchin 9a30e02962 Make sure OAuth doesn't fall off, which happens in particular when encountering redirects 2012-06-13 20:54:54 -07:00
Shivaram Lingamneni f25827c5b6 replace utils.randombytes with os.urandom 2012-05-15 15:42:03 -07:00
Ib Lundgren 6a9d59ea97 Unicode fix for py3 2012-05-15 17:37:15 +02:00
Ib Lundgren c24665b593 Better content-type detection and unicode fix 2012-05-15 17:20:01 +02:00
Shivaram Lingamneni bcc4125a18 quiet spurious pyflakes errors 2012-05-03 19:59:15 -07:00
Kenneth Reitz a9963e3841 upper case automatically 2012-05-02 18:57:06 -04:00
Kenneth Reitz e6cce7a5bd syntax errors 2012-05-01 07:06:55 -04:00
Kenneth Reitz bf1744eea2 hax 2012-05-01 06:57:25 -04:00
Kenneth Reitz 9427e1efe8 missed an import 2012-05-01 06:55:19 -04:00
Kenneth Reitz 661af1dc1a only import oauthlib in python2 2012-05-01 06:54:09 -04:00
Idan Gazit 2fc9f6bbc9 Trim down OAuth1 callable logic
Moved much of the validation out of requests and into oauthlib
2012-05-01 06:20:53 -04:00
Idan Gazit 906fcd7328 Fix order of return values from OAuth Client.sign() 2012-05-01 06:20:52 -04:00
Idan Gazit 7b819852b9 Fix Content-Type validation in OAuth1 callable 2012-05-01 06:20:52 -04:00
Idan Gazit 798dc4ae1d Initial implementation of OAuth1 request signing with OAuthLib 2012-05-01 06:20:52 -04:00
Pierre Chapuis c3e6c41fc1 Fix infinite loop on wrong Digest Authentication 2012-04-12 16:33:15 +02:00
Idan Gazit c89a3e207e Clarify digest hash method names 2012-04-11 14:02:59 +03:00
Idan Gazit eae641485b Remove unused import 2012-03-13 17:04:26 -07:00
Kenneth Reitz 75b0c4be1b latin1, remove unicode_literals
Fixes #407
2012-02-15 02:01:36 -05:00
Kenneth Reitz e7bcc3b332 oh snap 2012-01-23 01:32:09 -05:00
Kenneth Reitz 9cae98c167 blah 2012-01-23 00:25:48 -05:00
Kenneth Reitz b0e2e4f284 blah 2012-01-23 00:15:25 -05:00
Kenneth Reitz 5f44d79729 move digest to new register_hook
#372
2012-01-21 07:14:26 -05:00
Tom Moertel 79f5d532c6 Fix bug in HTTP-digest auth w/ URI having query string 2012-01-10 18:18:54 -05:00
Kenneth Reitz c910b958f0 quotes 2011-12-18 19:18:16 -05:00
Kenneth Reitz 8207ed074e keep auth DRY 2011-12-18 19:14:50 -05:00
Christopher Davis 814e0520ad Add Proxy Authorization support 2011-12-17 13:40:04 -06:00
Idan Gazit 7fdb09b766 Converted auth to use callable objects instead of tuples.
My attempt to address #275 on kennethreitz/requests.
2011-11-17 13:44:13 +02:00
Kenneth Reitz 12fa108ede add query data to digest path 2011-11-07 14:18:05 -05:00
Kenneth Reitz be69529dca oops, debugging prints 2011-10-23 16:53:21 -04:00
Kenneth Reitz 60b37e54b5 Digest authentication support!
Ripped from urllib2
2011-10-23 14:44:20 -04:00
Kenneth Reitz 12db1576e9 auth tuple fix 2011-10-23 12:26:46 -04:00
Kenneth Reitz 4892a305d9 more advanced authentication mechanism 2011-10-23 11:33:03 -04:00
Kenneth Reitz 0dae52220b fix base64 encoding for httpbasic 2011-10-23 11:14:59 -04:00
Kenneth Reitz d23c4b94c1 httpbasic authentication cleanup 2011-10-23 11:00:36 -04:00
Kenneth Reitz 340f7a0733 initial auth module w/ httpbasic auth 2011-10-23 10:56:04 -04:00