working http SSE subscribe

and fixed non-authed public readable subscriptions
This commit is contained in:
2025-03-29 09:11:31 -01:06
parent f890bb71e0
commit dc86c9b297
10 changed files with 107 additions and 102 deletions

View File

@@ -2,7 +2,6 @@ package httpauth
import (
"encoding/base64"
"errors"
"fmt"
"net/http"
"strings"
@@ -13,8 +12,8 @@ import (
"realy.lol/tag"
)
var ErrMissingKey = errors.New(fmt.Sprintf(
"'%s' key missing from request header", HeaderKey))
var ErrMissingKey = fmt.Errorf(
"'%s' key missing from request header", HeaderKey)
// CheckAuth verifies a received http.Request has got a valid
// authentication event or token in it, and provides the public key that should be