From 3461fb49985413bb578af511bf0d13efbc25b5b6 Mon Sep 17 00:00:00 2001 From: "Kali Kaneko (leap communications)" Date: Wed, 21 Dec 2016 01:53:31 +0100 Subject: [docs] fix typo in the header name --- docs/core/index.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'docs') diff --git a/docs/core/index.rst b/docs/core/index.rst index 84ac8fb4..d03dd727 100644 --- a/docs/core/index.rst +++ b/docs/core/index.rst @@ -48,7 +48,7 @@ provider fails (or with no network connectivity), the backend **should** signal the error but equally return a local authentication token (this is not implemented yet, but needs to be done to support an offline mode of operation). -To authenticate any request to the API, the ``Authentication`` header has to be +To authenticate any request to the API, the ``Authorization`` header has to be added to it. You need to pass a ``Token`` field, with a value equal to the concatenation of the username and the local session token , base64-encoded:: @@ -60,7 +60,7 @@ concatenation of the username and the local session token , base64-encoded:: >>> base64.b64encode('user@provider.org:52dac27fcf633b1dba58') 'dXNlckBwcm92aWRlci5vcmc6NTJkYWMyN2ZjZjYzM2IxZGJhNTg=' - $ curl -X POST localhost:7070/API/core/stop -H 'Authentication: Token dXNlckBwcm92aWRlci5vcmc6NTJkYWMyN2ZjZjYzM2IxZGJhNTg=' + $ curl -X POST localhost:7070/API/core/stop -H 'Authorization: Token dXNlckBwcm92aWRlci5vcmc6NTJkYWMyN2ZjZjYzM2IxZGJhNTg=' $ {'shutdown': 'ok'} -- cgit v1.2.3