oca-server-auth/odoo-bringout-oca-server-auth-auth_api_key/auth_api_key/readme/USAGE.rst
2025-08-29 15:43:06 +02:00

10 lines
338 B
ReStructuredText

To apply this authentication system to your http request you must set 'api_key'
as value for the 'auth' parameter of your route definition into your controller.
.. code-block:: python
class MyController(Controller):
@route('/my_service', auth='api_key', ...)
def my_service(self, *args, **kwargs):
pass