Registry / auth / goji-httpauth

goji-httpauth

JSON →
library0.0.0-20160601135302-2da839ab0f4dgogounverified

HTTP authentication middleware for Goji web framework.

go get github.com/goji/httpauth
INSTALL
IMPORT
SIG · GOJI-HTTPAUTH
G
goji-httpauth
authgov0.0.0-20160601135302-2da839ab0f4d
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.

httpauth
github.com/goji/httpauth

Add basic auth to an HTTP handler.

package main import ( "net/http" "github.com/goji/httpauth" ) func main() { handler := httpauth.SimpleBasicAuth("user", "pass")(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { w.Write([]byte("Hello")) })) http.ListenAndServe(":8080", handler) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.0.0-20160601135302-2da839ab0f4dlatest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
20 hits · last 30 days
node
18
Perplexity
1
Resources
goji-httpauth — go get goji-httpauth · libregistry