Remove VC response signing and update api-token in Lighthouse Book (#6288)

* update api-token

* Update book/src/api-vc-auth-header.md

Co-authored-by: Michael Sproul <micsproul@gmail.com>

* Update book/src/api-vc-auth-header.md

Co-authored-by: Michael Sproul <micsproul@gmail.com>

* Update book/src/api-vc-endpoints.md

Co-authored-by: Michael Sproul <micsproul@gmail.com>

* Update book/src/api-vc-endpoints.md

Co-authored-by: Michael Sproul <micsproul@gmail.com>

* Remove 33 characeter
This commit is contained in:
chonghe
2024-08-22 14:51:59 +08:00
committed by GitHub
parent 9a295d09b4
commit 3c1266e41c
4 changed files with 8 additions and 116 deletions

View File

@@ -9,10 +9,10 @@ HTTP header:
- Value: `Bearer <api-token>`
Where `<api-token>` is a string that can be obtained from the validator client
host. Here is an example `Authorization` header:
host. Here is an example of the `Authorization` header:
```text
Authorization: Bearer api-token-0x03eace4c98e8f77477bb99efb74f9af10d800bd3318f92c33b719a4644254d4123
Authorization: Bearer hGut6B8uEujufDXSmZsT0thnxvdvKFBvh
```
## Obtaining the API token
@@ -24,7 +24,7 @@ text editor will suffice:
```bash
cat api-token.txt
api-token-0x03eace4c98e8f77477bb99efb74f9af10d800bd3318f92c33b719a4644254d4123
hGut6B8uEujufDXSmZsT0thnxvdvKFBvh
```
When starting the validator client it will output a log message containing the path
@@ -54,7 +54,7 @@ Response:
Here is an example `curl` command using the API token in the `Authorization` header:
```bash
curl localhost:5062/lighthouse/version -H "Authorization: Bearer api-token-0x03eace4c98e8f77477bb99efb74f9af10d800bd3318f92c33b719a4644254d4123"
curl localhost:5062/lighthouse/version -H "Authorization: Bearer hGut6B8uEujufDXSmZsT0thnxvdvKFBvh"
```
The server should respond with its version: