summaryrefslogtreecommitdiff
path: root/internal/gtscontext/context.go
diff options
context:
space:
mode:
authorLibravatar tobi <31960611+tsmethurst@users.noreply.github.com>2024-01-31 15:15:28 +0100
committerLibravatar GitHub <noreply@github.com>2024-01-31 14:15:28 +0000
commitb614d33c408b4910ace29567b7c27b45a528a2b4 (patch)
treed7418dad819ae5b1a5f8a94917ae0c2ee1f9d0f5 /internal/gtscontext/context.go
parentImprove context descendant sorting (#2579) (diff)
downloadgotosocial-b614d33c408b4910ace29567b7c27b45a528a2b4.tar.xz
[feature] Try HTTP signature validation with and without query params for incoming requests (#2591)
* [feature] Verify signatures both with + without query params * Bump to tagged version
Diffstat (limited to 'internal/gtscontext/context.go')
-rw-r--r--internal/gtscontext/context.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/gtscontext/context.go b/internal/gtscontext/context.go
index 46f2899fa..0d5ed5340 100644
--- a/internal/gtscontext/context.go
+++ b/internal/gtscontext/context.go
@@ -21,8 +21,8 @@ import (
"context"
"net/url"
- "github.com/go-fed/httpsig"
"github.com/superseriousbusiness/gotosocial/internal/gtsmodel"
+ "github.com/superseriousbusiness/httpsig"
)
// package private context key type.
@@ -129,8 +129,8 @@ func SetOtherIRIs(ctx context.Context, iris []*url.URL) context.Context {
// HTTPSignatureVerifier returns an http signature verifier for the current ActivityPub
// request chain. This verifier can be called to authenticate the current request.
-func HTTPSignatureVerifier(ctx context.Context) httpsig.Verifier {
- verifier, _ := ctx.Value(httpSigVerifierKey).(httpsig.Verifier)
+func HTTPSignatureVerifier(ctx context.Context) httpsig.VerifierWithOptions {
+ verifier, _ := ctx.Value(httpSigVerifierKey).(httpsig.VerifierWithOptions)
return verifier
}