upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVitor Pamplona <vitor@vitorpamplona.com>2025-09-06 08:52:22 -0400
committerGitHub <noreply@github.com>2025-09-06 09:52:22 -0300
commit4c5d5fff99993c5334c81475ab149895af884d04 (patch)
tree633a8d16d49c8bb6e7c46869858556c0d3b738bb
parentd6fe55a6ad4a3625a3c05f6e581890264d780fa7 (diff)
Allow multi-user AUTH (#1881)
Co-authored-by: Leo Wandersleb <leo@leowandersleb.de>
-rw-r--r--42.md4
1 files changed, 4 insertions, 0 deletions
diff --git a/42.md b/42.md
index fdc5d10..24f7f5d 100644
--- a/42.md
+++ b/42.md
@@ -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
35Clients 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>"]
69client: ["REQ", "sub_1", {"kinds": [4]}] 71client: ["REQ", "sub_1", {"kinds": [4]}]
70relay: ["CLOSED", "sub_1", "auth-required: we can't serve DMs to unauthenticated users"] 72relay: ["CLOSED", "sub_1", "auth-required: we can't serve DMs to unauthenticated users"]
71client: ["AUTH", {"id": "abcdef...", ...}] 73client: ["AUTH", {"id": "abcdef...", ...}]
74client: ["AUTH", {"id": "abcde2...", ...}]
72relay: ["OK", "abcdef...", true, ""] 75relay: ["OK", "abcdef...", true, ""]
76relay: ["OK", "abcde2...", true, ""]
73client: ["REQ", "sub_1", {"kinds": [4]}] 77client: ["REQ", "sub_1", {"kinds": [4]}]
74relay: ["EVENT", "sub_1", {...}] 78relay: ["EVENT", "sub_1", {...}]
75relay: ["EVENT", "sub_1", {...}] 79relay: ["EVENT", "sub_1", {...}]