Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

 

Info

Supported authorization headers


Table of Contents



1) Bearer

Info

To perform operations like search an access_token is needed as per https://tools.ietf.org/html/rfc6749#section-7.1

Warning

There must a space between "Bearer" and the access token

cURL sample

Info

Sample header using curl


Code Block
languagebash
themeEmacs
titleSample cURL sample request
linenumberstrue
curl -v -i -k -H "Authorization: Bearer YIqxCuzgTlGjjENoa4cA25Ey8CF7gtfi" -X GET https://odoo.dev.oregional.hu/orestapi/application/status
Postman sample





2) Basic

Info

Basic http authorization as per https://tools.ietf.org/html/rfc7617

Read more: https://en.wikipedia.org/wiki/Basic_access_authentication

cURL sample

Info

Sample header using curl


Code Block
languagebash
themeEmacs
titleSample cURL sample request
linenumberstrue
curl -v -i -k -H "Authorization: Basic bWtkcnFEVWJQQUZXUHpUQkhNbVZlQkpqUmM5dE1NdnY6ZHNmZWY0NTQzNDN0d2xldHNnbzQ5ZXJz" -X GET https://odoo.dev.oregional.hu/orestapi/application/status
Postman sample