Registry / auth / gobuffalo-mw-tokenauth

gobuffalo-mw-tokenauth

JSON →
library1.0.2gogounverified

Provides JWT token authorization middleware for Buffalo web applications, supporting HMAC, RSA, ECDSA, RSAPSS, and EdDSA algorithms.

go get github.com/gobuffalo/mw-tokenauth
INSTALL
IMPORT
SIG · GOBUFFALO-MW-TOKEN
G
gobuffalo-mw-tokenauth
authgov1.0.2
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.

tokenauth
github.com/gobuffalo/mw-tokenauth

Add JWT token authentication middleware to a Buffalo app.

package main import ( "github.com/gobuffalo/buffalo" "github.com/gobuffalo/mw-tokenauth" ) func main() { app := buffalo.New(buffalo.Options{}) app.Use(tokenauth.New("secret")) }
Debug
Known issues
gotchaThe default key source uses environment variables JWT_SECRET or JWT_PUBLIC_KEY; ensure these are set correctly.
fix
Set JWT_SECRET for HMAC or JWT_PUBLIC_KEY for asymmetric algorithms.
affects: all
Upgrade
Version history
1.0.2latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
13 hits · last 30 days
node
12
OpenAI (training)
1
Resources
gobuffalo-mw-tokenauth — go get gobuffalo-mw-tokenauth · libregistry