mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-22 22:34:45 +00:00
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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user