mirror of
https://github.com/nostr-protocol/nips.git
synced 2024-11-09 22:09:06 -05:00
NIP-86: improve Authorization section, link to NIP-98
This commit is contained in:
parent
383adc2b95
commit
58c61ed745
4
86.md
4
86.md
|
@ -85,4 +85,6 @@ This is the list of **methods** that may be supported:
|
||||||
|
|
||||||
### Authorization
|
### Authorization
|
||||||
|
|
||||||
The request must contain an `Authorization` header with the value set to `Nostr <base64(auth-event)>` in which `<auth-event>` is an event of kind `27235` with a tag `["host", <hostname-of-target-relay>]`, a tag `["payload", <sha256-hash-of-the-request-body-as-lowercase-hex>]` and `created_at` set to the current timestamp.
|
The request must contain an `Authorization` header with a valid [NIP-98](./98.md) event, except the `payload` tag is required. The `u` tag is the relay URL.
|
||||||
|
|
||||||
|
If `Authorization` is not provided or is invalid, the endpoint should return a 401 response.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user