repositorypackage
0.0.0-20141203095229-6a660fad74dc
Repository: https://github.com/cryptix/jwtauth.git
Documentation: pkg.go.dev
# Packages
No description provided by the author
# README
jwtAuth
Some simple Handlers and Helpers to use jwt-go for go http stuff.
Currently only RS256
is supported. If you have need/ideas for key schemes to use HS256
, contact me or open a PR.
Working
MakeToken
for creating signed tokensVerifyHeader
to check if a key is valid
TODO
- Make simple Handler to resign a token (extend its valdity)
- Tests MakeToken
How to get Keys
openssl genrsa -out app.rsa <keysize> # i'd suggest 4096
openssl rsa -in app.rsa -pubout > app.rsa.pub