Skip to content

Some simple Handlers and Helpers to use JSON Web Tokens for go http stuff.

License

Notifications You must be signed in to change notification settings

cryptix/jwtAuth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jwtAuth

GoDoc Build Status

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 tokens
  • VerifyHeader 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

About

Some simple Handlers and Helpers to use JSON Web Tokens for go http stuff.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages