
Security News
libxml2 Maintainer Ends Embargoed Vulnerability Reports, Citing Unsustainable Burden
Libxml2’s solo maintainer drops embargoed security fixes, highlighting the burden on unpaid volunteers who keep critical open source software secure.
odoo9-addon-oauth-provider
Advanced tools
.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html :alt: License: AGPL-3
This module allows you to turn Odoo into an OAuth 2 provider.
It's meant to provide the basic authentication feature, and some data access routes. But you are encouraged to create custom routes, in other modules, to give structured data for any specific need.
To install this module, you need to:
#. Install the oauthlib python module #. Install the module like any other in Odoo #. For the token retrieval to work on a multi-database instance, you should add this module in the server_wide_modules list
This module requires you to configure two things :
#. The scopes are used to define restricted data access #. The clients are used to declare applications that will be allowed to request tokens and data
To configure scopes, you need to:
#. Go to Settings > Users > OAuth Provider Scopes #. Create some scopes:
To configure clients, you need to:
#. Go to Settings > Users > OAuth Provider Clients #. Create at least one client:
The name will be displayed to the user on the authorization page.
The client identifier is the value provided by the OAuth clients to request authorizations/tokens.
The application type adapts the process to four pre-defined profiles:
The skip authorization checkbox allows the client to skip the authorization page, and directly deliver a token without prompting the user (useful when the application is trusted).
The allowed scopes list defines which data will be accessible by this client applicaton.
The allowed redirect URIs must match the URI sent by the client, to avoid redirecting users to an unauthorized service. The first value in the list is the default redirect URI.
For example, to configure an Odoo's auth_oauth module compatible client, you will enter these values :
This module will allow OAuth clients to use your Odoo instance as an OAuth provider.
Once configured, you must give these information to your client application :
#. Client identifier : Identifies the application (to be able to check allowed scopes and redirect URIs) #. Allowed scopes : The codes of scopes allowed for this client #. URLs for the requests :
For example, to configure the auth_oauth Odoo module as a client, you will enter these values :
.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas :alt: Try me on Runbot :target: https://runbot.odoo-community.org/runbot/149/9.0
Bugs are tracked on GitHub Issues <https://github.com/OCA/server-tools/issues>
_. In case of trouble, please
check there if your issue has already been reported. If you spotted it first,
help us smashing it by providing a detailed and welcomed feedback.
Icon <https://github.com/OCA/maintainer-tools/blob/master/template/module/static/description/icon.svg>
_... image:: https://odoo-community.org/logo.png :alt: Odoo Community Association :target: https://odoo-community.org
This module is maintained by the OCA.
OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.
To contribute to this module, please visit https://odoo-community.org.
FAQs
Allows to use Odoo as an OAuth2 provider
We found that odoo9-addon-oauth-provider demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Libxml2’s solo maintainer drops embargoed security fixes, highlighting the burden on unpaid volunteers who keep critical open source software secure.
Research
Security News
Socket investigates hidden protestware in npm packages that blocks user interaction and plays the Ukrainian anthem for Russian-language visitors.
Research
Security News
Socket researchers uncover how browser extensions in trusted stores are used to hijack sessions, redirect traffic, and manipulate user behavior.