You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Depending on the deploiement, the ``Host`` and/or ``X-Odoo-Database`` request headers might be
92
+
required. The ``Host`` header is required on servers where Odoo is installed next to other web
93
+
applications, so a web-server/reverse-proxy is able to route the request to the Odoo server. The
94
+
``X-Odoo-Database`` header is required when a single Odoo server hosts multiple databases, and that
95
+
:ref:`dbfilter` wasn't configured to use the ``Host`` header.
104
96
105
-
Authentication & Access Control
106
-
===============================
97
+
Most HTTP client libraries automatically set the ``Host`` header using the connection url.
107
98
108
-
The JSON-2 API uses the access rights of the current user for all operations, and the user is
109
-
selected using an API key.
110
99
111
100
API Key
112
-
-------
101
+
=======
102
+
103
+
An API key must be set in the ``Authorization`` request header, as a bearer token.
113
104
114
105
Create a new API key for a user via :guilabel:`Preferences`, :guilabel:`Account Security`, and
115
106
:guilabel:`New API Key`.
@@ -134,10 +125,38 @@ for interactive usage. It is not possible to create keys that last for more than
134
125
that long lasting keys must be rotated at least once every 3 months.
135
126
136
127
The :guilabel:`Generate Key` creates a 20 bytes (160 bits) strong random key. Its value appears on
137
-
screen, this is the only time and place the key is visible on screen, it must be copied and stored
138
-
somewhere safe. If it ever gets compromized or lost, then it must be removed.
128
+
screen, this is the only time and place the key is visible on screen, it must be copied, kept secret and stored somewhere secure. If it ever gets compromized or lost, then it must be removed.
139
129
140
-
The `Secrets Management Cheat Sheet`_ is a document published by the OWASP foundation on how to
141
-
safely manage and store secrets such as API keys, with additionnal resources linked at the end.
130
+
Please refer to OWASP's `Secrets Management Cheat Sheet`_ for further guidance on the management of
0 commit comments