Hello,
I try to connect odoo to my own oauth provider.
My settings seems to work I am redirect to oauth server, i can authenticate my user and it will redirect to odoo but whith an error :
2015-11-06 15:53:50,052 28010 ERROR odoo openerp.addons.auth_oauth.controllers.main: OAuth2: Expecting value: line 3 column 1 (char 2)
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/openerp/addons/auth_oauth/controllers/main.py", line 144, in signin
credentials = u.auth_oauth(cr, SUPERUSER_ID, provider, kw, context=context)
File "/usr/lib/python2.7/dist-packages/openerp/api.py", line 250, in wrapper
return old_api(self, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/openerp/addons/auth_oauth/res_users.py", line 101, in auth_oauth
validation = self._auth_oauth_validate(cr, uid, provider, access_token)
File "/usr/lib/python2.7/dist-packages/openerp/api.py", line 250, in wrapper
return old_api(self, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/openerp/addons/auth_oauth/res_users.py", line 41, in _auth_oauth_validate
validation = self._auth_oauth_rpc(cr, uid, p.validation_endpoint, access_token)
File "/usr/lib/python2.7/dist-packages/openerp/api.py", line 250, in wrapper
return old_api(self, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/openerp/addons/auth_oauth/res_users.py", line 36, in _auth_oauth_rpc
return simplejson.loads(response)
File "/usr/lib/python2.7/dist-packages/simplejson/__init__.py", line 505, in loads
return _default_decoder.decode(s)
File "/usr/lib/python2.7/dist-packages/simplejson/decoder.py", line 370, in decode
obj, end = self.raw_decode(s)
File "/usr/lib/python2.7/dist-packages/simplejson/decoder.py", line 400, in raw_decode
return self.scan_once(s, idx=_w(s, idx).end())
JSONDecodeError: Expecting value: line 3 column 1 (char 2)
2015-11-06 15:53:50,054 28010 INFO odoo werkzeug: 109.190.152.47 - - [06/Nov/2015 15:53:50] "GET /auth_oauth/signin?code=ST-6-CHI2IEtYESQ99Jc4Z1jb-cas.domaine.com&state={%22p%22%3A+4%2C+%22r%22%3A+%22http%253A%252F%252Fcas.domaine.com%253A8069%252Fweb%253F%22%2C+%22d%22%3A+%22odoo%22} HTTP/1.1" 303 -
2015-11-06 15:53:50,160 28010 INFO odoo werkzeug: 109.190.152.47 - - [06/Nov/2015 15:53:50] "GET /web/login?oauth_error=2 HTTP/1.1" 200 -
Can someone help me ?
Thanks