mirror of
https://github.com/bringout/oca-server-auth.git
synced 2026-04-18 07:52:06 +02:00
10 lines
338 B
ReStructuredText
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
|