Why Nostr? What is Njump?
2024-09-29 08:41:30

mleku on Nostr: hzrd149 next.nostrudel.ninja is not responding correctly to a CLOSED "auth-required" ...



next.nostrudel.ninja is not responding correctly to a CLOSED "auth-required" message on these three relays, i am just checking this and coracle now auths every time with the auth flow correctly structured according to nip-42 but nostrudel is not sending back an auth unless you open up the task manager and manually click the auth

my suspicion is that the other two relays there are also running teh same flow, so i think your code is not correctly handling... and the naive assumption is that "always" means it always responds with an auth response every time it receives an auth envelope, which it clearly doesn't even with the CLOSED "auth-required" message

would be great if this was fully working to spec

just a side note, i've set up an "auth requested" flag in my websocket library now, so it only ever sends one per websocket connection... previously it was hammering the client with requests for the multiple req envelopes it was receiving, which i don't think is correct either, one socket, one auth, that is how the protocol is described, so i've made it so... i think that if it's done so that each one makes an auth request and each auth request generates a new auth challenge each time there is race conditions, and it's just unnecessary traffic... right answer or silence, is my philosophy

in any case, please alter nostrudel's auth handling so it takes the CLOSED auth-required message as a prompt to auth, as it is specified in nip-42
Author Public Key
npub1fjqqy4a93z5zsjwsfxqhc2764kvykfdyttvldkkkdera8dr78vhsmmleku