Registry / auth / go-fed-httpsig

go-fed-httpsig

JSON →
library1.1.0gogounverified

Implements HTTP request and response signing and verification with support for MAC and asymmetric key algorithms.

go get github.com/go-fed/httpsig
INSTALL
IMPORT
SIG · GO-FED-HTTPSIG
G
go-fed-httpsig
authgov1.1.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

httpsig
github.com/go-fed/httpsig

Sign an HTTP request using HMAC-SHA256.

package main import ( "net/http" "github.com/go-fed/httpsig" ) func main() { key := []byte("secret") signer, _ := httpsig.NewSigner(httpsig.HMAC, httpsig.DigestSha256, nil) req, _ := http.NewRequest("GET", "https://example.com", nil) signer.SignRequest(key, req, nil) }
Debug
Known issues
gotchaOnly 'Authorization' or 'Signature' header is set, not both.
fix
Ensure your server expects the header you are setting.
affects: all
Upgrade
Version history
1.1.0latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
15 hits · last 30 days
node
14
OpenAI (training)
1
Resources
go-fed-httpsig — go get go-fed-httpsig · libregistry