diff options
| author | Christophe Simonis <chs@odoo.com> | 2016-01-12 18:48:49 +0100 |
|---|---|---|
| committer | Christophe Simonis <chs@odoo.com> | 2016-01-12 18:48:49 +0100 |
| commit | 740a6eadd379cc3fa26aefb9350f1c95b3e05ebd (patch) | |
| tree | 57467b1da563962e02dd9f2ba17e805c5cc5fdce /addons/auth_oauth/res_users.py | |
| parent | 63c7488926394a8d5bd44b991c881957e0405c8b (diff) | |
| parent | 3c7b08c030daf84323279b3d87361214e4f1b729 (diff) | |
[MERGE] forward port of branch saas-8 up to 3c7b08c
Diffstat (limited to 'addons/auth_oauth/res_users.py')
| -rw-r--r-- | addons/auth_oauth/res_users.py | 6 |
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 |
