diff options
| author | Vitor Pamplona <vitor@vitorpamplona.com> | 2025-09-06 08:52:22 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-09-06 09:52:22 -0300 |
| commit | 4c5d5fff99993c5334c81475ab149895af884d04 (patch) | |
| tree | 633a8d16d49c8bb6e7c46869858556c0d3b738bb /42.md | |
| parent | d6fe55a6ad4a3625a3c05f6e581890264d780fa7 (diff) | |
Allow multi-user AUTH (#1881)
Co-authored-by: Leo Wandersleb <leo@leowandersleb.de>
Diffstat (limited to '42.md')
| -rw-r--r-- | 42.md | 4 |
1 files changed, 4 insertions, 0 deletions
| @@ -32,6 +32,8 @@ And, when sent by clients, the following form: | |||
| 32 | ["AUTH", <signed-event-json>] | 32 | ["AUTH", <signed-event-json>] |
| 33 | ``` | 33 | ``` |
| 34 | 34 | ||
| 35 | Clients MAY provide signed events from multiple pubkeys in a sequence of `AUTH` messages. Relays MUST treat all pubkeys as authenticated accordingly. | ||
| 36 | |||
| 35 | `AUTH` messages sent by clients MUST be answered with an `OK` message, like any `EVENT` message. | 37 | `AUTH` messages sent by clients MUST be answered with an `OK` message, like any `EVENT` message. |
| 36 | 38 | ||
| 37 | ### Canonical authentication event | 39 | ### Canonical authentication event |
| @@ -69,7 +71,9 @@ relay: ["AUTH", "<challenge>"] | |||
| 69 | client: ["REQ", "sub_1", {"kinds": [4]}] | 71 | client: ["REQ", "sub_1", {"kinds": [4]}] |
| 70 | relay: ["CLOSED", "sub_1", "auth-required: we can't serve DMs to unauthenticated users"] | 72 | relay: ["CLOSED", "sub_1", "auth-required: we can't serve DMs to unauthenticated users"] |
| 71 | client: ["AUTH", {"id": "abcdef...", ...}] | 73 | client: ["AUTH", {"id": "abcdef...", ...}] |
| 74 | client: ["AUTH", {"id": "abcde2...", ...}] | ||
| 72 | relay: ["OK", "abcdef...", true, ""] | 75 | relay: ["OK", "abcdef...", true, ""] |
| 76 | relay: ["OK", "abcde2...", true, ""] | ||
| 73 | client: ["REQ", "sub_1", {"kinds": [4]}] | 77 | client: ["REQ", "sub_1", {"kinds": [4]}] |
| 74 | relay: ["EVENT", "sub_1", {...}] | 78 | relay: ["EVENT", "sub_1", {...}] |
| 75 | relay: ["EVENT", "sub_1", {...}] | 79 | relay: ["EVENT", "sub_1", {...}] |