Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

Oauth error with my own oauth provider

By
CHERAMY Guillaume
on 11/6/15, 10:55 AM 547 views

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

0
app
On 11/6/15, 12:17 PM

Check if the Validation URL is well configured (in the OAuth module). Odoo is calling it, but getting a non-valid response.

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 11/6/15, 10:55 AM
Seen: 547 times
Last updated: 11/6/15, 12:17 PM