add event to openapi, properly implement relay accept event policy and auth with owners set

This commit is contained in:
2025-07-23 23:10:39 +01:00
parent eac5e05e77
commit bfa38822e0
76 changed files with 1058 additions and 358 deletions

View File

@@ -85,7 +85,7 @@ func (a *A) Serve(w http.ResponseWriter, r *http.Request, s server.I) {
},
)
if a.I.AuthRequired() {
log.T.F("requesting auth from client from %s", a.Listener.RealRemote())
log.I.F("requesting auth from client from %s", a.Listener.RealRemote())
a.Listener.RequestAuth()
if err = authenvelope.NewChallengeWith(a.Listener.Challenge()).
Write(a.Listener); chk.E(err) {
@@ -132,6 +132,6 @@ func (a *A) Serve(w http.ResponseWriter, r *http.Request, s server.I) {
}
continue
}
go a.HandleMessage(message)
go a.HandleMessage(message, a.Listener.AuthedPubkey())
}
}