Search code examples
authenticationoauth-2.0odooodoo-10

Does Odoo implement oauth2 for its API?


I am trying to implement an Odoo API to provide a web service to another system. I am using RESTFUL API For Odoo to expose a rest API instead of XML-RPC API. This module generates a token for authentication, but I don't know if this token is enough to secure for authentication. I would like to know how to implement OAuth 2 to improve security in this module or to know if Odoo already includes OAuth 2.


Solution

  • OAuth2 is implemented already as an official module, see https://github.com/odoo/odoo/blob/10.0/addons/auth_oauth/manifest.py