Odoo Help

0

0
1 Answer
0
Qiqo
06/09/17, 23:36

i've managed to reconfigure and allow to authenticate using Microsoft Graph with the sign in and read profile but now getting:


2017-09-07 03:18:47,468 12070 INFO theasiaodoo werkzeug: 127.0.0.1 - - [07/Sep/2017 03:18:47] "GET /auth_oauth/signin HTTP/1.1" 200 - 2017-09-07 03:18:48,062 12070 ERROR theasiaodoo odoo.addons.auth_oauth.controllers.main: OAuth2: HTTP Error 401: Unauthorized Traceback (most recent call last):

  File "/usr/lib/python2.7/dist-packages/odoo/addons/auth_oauth/controllers/main.py", line 139, in signin

    credentials = env['res.users'].sudo().auth_oauth(provider, kw)

  File "/usr/lib/python2.7/dist-packages/odoo/addons/auth_oauth/models/res_users.py", line 104, in auth_oauth

    validation = self._auth_oauth_validate(provider, access_token)

  File "/usr/lib/python2.7/dist-packages/odoo/addons/auth_oauth/models/res_users.py", line 42, in _auth_oauth_validate

    validation = self._auth_oauth_rpc(oauth_provider.validation_endpoint, access_token)

  File "/usr/lib/python2.7/dist-packages/odoo/addons/auth_oauth/models/res_users.py", line 34, in _auth_oauth_rpc

    f = urllib2.urlopen(url)

  File "/usr/lib/python2.7/urllib2.py", line 154, in urlopen

    return opener.open(url, data, timeout)

  File "/usr/lib/python2.7/urllib2.py", line 435, in open

    response = meth(req, response)

  File "/usr/lib/python2.7/urllib2.py", line 548, in http_response

    'http', request, response, code, msg, hdrs)

  File "/usr/lib/python2.7/urllib2.py", line 473, in error

    return self._call_chain(*args)

  File "/usr/lib/python2.7/urllib2.py", line 407, in _call_chain

    result = func(*args)

  File "/usr/lib/python2.7/urllib2.py", line 556, in http_error_default

    raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)

HTTPError: HTTP Error 401: Unauthorized 2017-09-07 03:18:48,063 12070 INFO theasiaodoo werkzeug: 127.0.0.1 - - [07/Sep/2017 03:18:48] "GET /auth_oauth/signin?access_token=eyJ0eXAiOiJKV1QiLCJub25jZSI6IkFRQUJBQUFBQUFBOWtUa2xoVnk3U0pUR0F6Ui1$2017-09-07 03:18:48,253 12070 INFO theasiaodoo werkzeug: 127.0.0.1 - - [07/Sep/2017 03:18:48] "GET /web/login?oauth_error=2 HTTP/1.1" 200 - 2017-09-07 03:18:48,552 12070 INFO theasiaodoo werkzeug: 127.0.0.1 - - [07/Sep/2017 03:18:48] "POST /website/translations HTTP/1.1" 200 -

-----

settings are

ODOO:

ClientID: AAD App ID

Authentication URL: https://login.microsoftonline.com/[tenant]/oauth2/authorize?resource=https%3A%2F%2Fgraph.microsoft.com&

Validation URL: https://login.microsoftonline.com/b4ee2b10-c018-4d42-abb0-5754023fc6cc/oauth2/token (also tried https://graph.microsoft.com/v1.0/me but no go)


Any help would be appreciated, thanks


Ask a Question
Writer
Tags
Keep Informed
1 follower(s)
About This Community

This platform 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.

Register
Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now