diff options
author | Kali Kaneko (leap communications) <kali@leap.se> | 2016-12-21 01:53:31 +0100 |
---|---|---|
committer | Kali Kaneko (leap communications) <kali@leap.se> | 2016-12-29 03:10:02 +0100 |
commit | 3461fb49985413bb578af511bf0d13efbc25b5b6 (patch) | |
tree | e565c878940466564456cdeae7f98eb66ab09db2 /docs/core/index.rst | |
parent | d215cedd5efdbedbaaf9e62626b9178b364d55f7 (diff) |
[docs] fix typo in the header name
Diffstat (limited to 'docs/core/index.rst')
-rw-r--r-- | docs/core/index.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/core/index.rst b/docs/core/index.rst index 84ac8fb..d03dd72 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'} |