summaryrefslogtreecommitdiff
path: root/addons/auth_oauth
diff options
context:
space:
mode:
Diffstat (limited to 'addons/auth_oauth')
-rw-r--r--addons/auth_oauth/res_users.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/addons/auth_oauth/res_users.py b/addons/auth_oauth/res_users.py
index 4d6dcd356c1..f277a6c5fc0 100644
--- a/addons/auth_oauth/res_users.py
+++ b/addons/auth_oauth/res_users.py
@@ -38,11 +38,11 @@ class res_users(osv.Model):
def _auth_oauth_validate(self, cr, uid, provider, access_token, context=None):
""" return the validation data corresponding to the access token """
p = self.pool.get('auth.oauth.provider').browse(cr, uid, provider, context=context)
- validation = self._auth_oauth_rpc(cr, uid, p.validation_endpoint, access_token)
+ validation = self._auth_oauth_rpc(cr, uid, p.validation_endpoint, access_token, context=context)
if validation.get("error"):
raise Exception(validation['error'])
if p.data_endpoint:
- data = self._auth_oauth_rpc(cr, uid, p.data_endpoint, access_token)
+ data = self._auth_oauth_rpc(cr, uid, p.data_endpoint, access_token, context=context)
validation.update(data)
return validation
@@ -98,7 +98,7 @@ class res_users(osv.Model):
# else:
# continue with the process
access_token = params.get('access_token')
- validation = self._auth_oauth_validate(cr, uid, provider, access_token)
+ validation = self._auth_oauth_validate(cr, uid, provider, access_token, context=context)
# required check
if not validation.get('user_id'):
# Workaround: facebook does not send 'user_id' in Open Graph Api