Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

0.5.3 #80

Merged
merged 4 commits into from

2 participants

@maxcountryman
Collaborator

No description provided.

@maxcountryman
Collaborator

Force pushed updates.

@joeshaw
Owner

FYI: Travis build failed

@joeshaw
Owner

Is the only code change the in 8bcbc04?

@maxcountryman
Collaborator

Yes, I think so.

@maxcountryman
Collaborator

Okay 066adff should pass Travis.

@joeshaw
Owner

:+1:

@maxcountryman maxcountryman merged commit 0cc0ad5 into from
@maxcountryman maxcountryman deleted the branch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 10 additions and 5 deletions.
  1. +3 −0  CHANGELOG
  2. +1 −1  rauth/__init__.py
  3. +5 −3 rauth/session.py
  4. +1 −1  setup.py
View
3  CHANGELOG
@@ -3,6 +3,9 @@ Rauth Changelog
This provides a list of changes to rauth by release.
+Changes in Version 0.5.3
+
+ * Added an ad hoc check against double signing in OAuth 1.0/a
Changes in Version 0.5.2
------------------------
View
2  rauth/__init__.py
@@ -17,7 +17,7 @@
'''
__title__ = 'rauth'
-__version_info__ = ('0', '5', '2')
+__version_info__ = ('0', '5', '3')
__version__ = '.'.join(__version_info__)
__author__ = 'Max Countryman'
__license__ = 'MIT'
View
8 rauth/session.py
@@ -164,10 +164,12 @@ def request(self,
oauth_params,
req_kwargs)
- if header_auth:
+ if header_auth and not 'oauth_signature' in \
+ req_kwargs['headers'].get('Authorization', ''):
header = self._get_auth_header(oauth_params, realm)
req_kwargs['headers'].update({'Authorization': header})
- elif entity_method:
+ elif entity_method and not 'oauth_signature' in \
+ (req_kwargs.get('data') or {}):
req_kwargs['data'] = req_kwargs.get('data') or {}
# If we have a urlencoded entity-body we should pass the OAuth
@@ -186,7 +188,7 @@ def request(self,
else:
req_kwargs.setdefault('params', {})
req_kwargs['params'].update(oauth_params)
- else:
+ elif not 'oauth_signature' in url:
req_kwargs.setdefault('params', {})
req_kwargs['params'].update(oauth_params)
View
2  setup.py
@@ -10,7 +10,7 @@
status >>= 8
sys.exit(status)
-install_requires = ['requests>=1.1.0']
+install_requires = ['requests==1.1.0']
if sys.version_info[0] == 2 and sys.version_info[1] < 7:
install_requires.append('unittest2>=0.5.1')
Something went wrong with that request. Please try again.