Skip to Content
Menu
This question has been flagged

Hello to all,


I would like to set up a SSO system via Oauth and more specifically with Auth0. I already had a lot of trouble configuring Auth0, but now I have a problem with Odoo.

When I log in via Auth0 SSO, no problem, it identifies me well, only after I receive an "Access Denied" error in Odoo.


I have searched a lot on forums and others but I can't find any solution.


I went to the logs and I see this error: 


2021-03-23 10:02:53,584 77 INFO dagoma-galicea-openid-2252570 werkzeug: 134.206.229.86 - - [23/Mar/2021 10:02:53] "GET /auth_oauth/signin HTTP/1.0" 200 - 1 0.000 0.002
2021-03-23 10:02:53,685 77 ERROR dagoma-galicea-openid-2252570 odoo.addons.auth_oauth.controllers.main: #--------- 1 ---------#
NoneType: None
2021-03-23 10:02:53,810 77 ERROR dagoma-galicea-openid-2252570 odoo.addons.auth_oauth.controllers.main: OAuth2: Expecting value: line 1 column 1 (char 0)
Traceback (most recent call last):
File "/home/odoo/src/odoo/addons/auth_oauth/controllers/main.py", line 135, in signin
credentials = env['res.users'].sudo().auth_oauth(provider, kw)
File "/home/odoo/src/odoo/addons/auth_oauth/models/res_users.py", line 97, in auth_oauth
validation = self._auth_oauth_validate(provider, access_token)
File "/home/odoo/src/odoo/addons/auth_oauth/models/res_users.py", line 35, in _auth_oauth_validate
validation = self._auth_oauth_rpc(oauth_provider.validation_endpoint, access_token)
File "/home/odoo/src/odoo/addons/auth_oauth/models/res_users.py", line 29, in _auth_oauth_rpc
return requests.get(endpoint, params={'access_token': access_token}).json()
File "/usr/local/lib/python3.6/dist-packages/requests/models.py", line 897, in json
return complexjson.loads(self.text, **kwargs)
File "/usr/lib/python3/dist-packages/simplejson/__init__.py", line 518, in loads
return _default_decoder.decode(s)
File "/usr/lib/python3/dist-packages/simplejson/decoder.py", line 370, in decode
obj, end = self.raw_decode(s)
File "/usr/lib/python3/dist-packages/simplejson/decoder.py", line 400, in raw_decode
return self.scan_once(s, idx=_w(s, idx).end())
simplejson.errors.JSONDecodeError: Expecting value: line 1 column 1 (char 0)


Could you please help me 

Avatar
Discard
Related Posts Replies Views Activity
0
Oct 21
1996
4
Sep 20
10775
0
Aug 19
3042
0
May 21
909
1
Aug 19
5432