Availability |
Odoo Online
Odoo.sh
On Premise
|
Lines of code | 354 |
Technical Name |
odoo_auth2 |
License | AGPL-3 |
Website | https://wangoes.com/ |
Availability |
Odoo Online
Odoo.sh
On Premise
|
Lines of code | 354 |
Technical Name |
odoo_auth2 |
License | AGPL-3 |
Website | https://wangoes.com/ |
Overview
This module provides standard API for authentication2.The Authorization Code grant type is used by confidential and public clients to exchange an authorization code for an access token.After the user returns to the client via the redirect URL, the application will get the authorization code from the URL and use it to request an access token.
Configuration
API Request Oauth2:
Token Name :- Auth2 Token
Redirect URI:- https://www.getpostman.com/oauth2/callback
Auth URL :- http://localhost:8069/oauth2/auth
Access Token URL :- http://localhost:8069/oauth2/access_token
Client ID:- Paste Consumer key ex.(v7oOYPhqnagqGod5X2fY4qPi4JdHsL)
Client Secrat:- Paste Consumer Secrat ex(p80Gd595gpjJKSxfum2yDqCDnseFXD)
Grant Type:- Authorization Code
Generate Consumer Key and Secret for Auth2
Log in your Odoo instance with an administrator account
Go to Settings ⣠Users ⣠Users
Click on the user you want to use for REST API access
Click the OAuth applications button
Register an Application you want to interact with your Odoo instance
Click on Save button to generate Consumer Key and Secret.

Request Token
You have to Request Token for Auth2 Authorization

Get Access Token
Get Access Token using Authentication

Redirect URI Get Access Token Odoo
Copy Access Token and paste Haeder Request
Fetch an access token from the Odoo using the authorization code obtained during user authorization.

Call API and Get Response
When your API Call after that You will get response with status code 200

Please log in to comment on this module
Report comment
Any abuse of this reporting system will be penalizedThere are no ratings yet!
Hi, Do you have this module for Odoo v14 CE. Thanks.