~mariusor/fedbox

c41ba1fa077dd1b20cddfa1758cbfaf9c67f2ecc — Marius Orcsik 2 months ago d0cef4b
Updated auth module with improved actor loading from Authorize header
2 files changed, 3 insertions(+), 3 deletions(-)

M app.go
M go.mod
M app.go => app.go +1 -1
@@ 147,7 147,7 @@ func (f *FedBOX) reload() (err error) {
}

func (f *FedBOX) actorFromRequest(r *http.Request) vocab.Actor {
	act, err := f.auth.LoadActorFromAuthHeader(r)
	act, err := f.auth.LoadActorFromRequest(r)
	if err != nil {
		f.logger.Errorf("unable to load an authorized Actor from request: %+s", err)
	}

M go.mod => go.mod +2 -2
@@ 6,7 6,7 @@ require (
	git.sr.ht/~mariusor/lw v0.0.0-20240323171419-d538df4af052
	git.sr.ht/~mariusor/wrapper v0.0.0-20240519120935-f877e4d97def
	github.com/go-ap/activitypub v0.0.0-20240408091739-ba76b44c2594
	github.com/go-ap/auth v0.0.0-20240801112629-eb3107c4bf2e
	github.com/go-ap/auth v0.0.0-20240803120634-74fe1bcc062c
	github.com/go-ap/cache v0.0.0-20240408093337-846e6272444d
	github.com/go-ap/client v0.0.0-20240801112518-4c25c5a0156a
	github.com/go-ap/errors v0.0.0-20240304112515-6077fa9c17b0


@@ 68,7 68,7 @@ require (
	golang.org/x/text v0.16.0 // indirect
	google.golang.org/protobuf v1.34.2 // indirect
	modernc.org/gc/v3 v3.0.0-20240801135723-a856999a2e4a // indirect
	modernc.org/libc v1.55.7 // indirect
	modernc.org/libc v1.55.8 // indirect
	modernc.org/mathutil v1.6.0 // indirect
	modernc.org/memory v1.8.0 // indirect
	modernc.org/sqlite v1.31.1 // indirect