Basic Authentication
Last updated
Last updated
Setup credentials following the instructions on . When you have obtained a client_id
and a client_secret
you can try out OAuth 2.0 resapi/1.0/common/basic
the flow goes as follows to get authorized:
Note
This authentication process supported for Odoo version 15 and later version.
OAuth endpoints:
(Token Credentials Request endpoint)
Fetch an access token from the Odoo using the authorization code obtained during user authorization.
POST /restapi/1.0/common/basic/access_token
Request:
Response:
Query Parameters:
client_id – Odoo consumer key
client_secret – Odoo consumer secret
Request Headers
Response Headers
Status Codes
– the response content type depends on Accept header
– The OAuth protocol parameters to authenticate.
– this depends on Accept header of the request
– no error
– there’s no resource
– authentication failed