Top 0.9% dependent packages on proxy.golang.org
Top 0.3% dependent repos on proxy.golang.org
Top 9.0% forks on proxy.golang.org
proxy.golang.org : github.com/gobuffalo/mw-tokenauth
Package tokenauth provides jwt token authorisation middleware supports HMAC, RSA, ECDSA, RSAPSS EdDSA algorithms uses github.com/golang-jwt/jwt/v4 for jwt implementation Using tokenauth with defaults Specifying Signing method for JWT By default the Key used is loaded from the JWT_SECRET or JWT_PUBLIC_KEY env variable depending on the SigningMethod used. However you can retrive the key from a different source. Default authorisation scheme is Bearer, you can specify your own. This can be referred from the underlying JWT package being used https://github.com/golang-jwt/jwt Example Example of retriving username from claims (this step is same regardless of the signing method used)
Registry
-
Source
- Documentation
- JSON
purl: pkg:golang/github.com/gobuffalo/mw-tokenauth
Keywords:
go
, gobuffalo
, golang
, middleware
, token-based-authentication
License: MIT
Latest release: over 2 years ago
First release: over 5 years ago
Namespace: github.com/gobuffalo
Dependent packages: 32
Dependent repositories: 580
Stars: 13 on GitHub
Forks: 4 on GitHub
See more repository details: repos.ecosyste.ms
Funding links: https://github.com/sponsors/markbates, https://patreon.com/buffalo
Last synced: 30 days ago