Skip to content

Utility for JWT (JSON Web Token) tinkering in general and instructions for Db2 with JWT

License

Notifications You must be signed in to change notification settings

data-henrik/JWTutil

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JWT utility

Encode or decode JSON Web Tokens (JWT).

Small utility to encode payloads as JWT using either HS256 or RS256, it is loosely based on the sample from the Python jwt package.

Usage:

JWTutil.py [--help] [-k <keyfile>] [-s <secret>] [-t <token>]

Encode or decode JSON Web Tokens (JWT)
  --help | -h                      : print this help
  --keyfile=keyfile | -k keyfile   : file with private key for RS256 encoding
  --secret=secret   | -s secret    : secret phrase for HS256 encoding
  --token=token     | -t token     : JWT to decode

Use pip install [--user] requirements.txt to install required package(s).

Some fun with Db2 and JWT

See how I some fun setting up Db2 to accept JWT for authenticating users.

About

Utility for JWT (JSON Web Token) tinkering in general and instructions for Db2 with JWT

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages