https://github.com/benfdking/jen
CLI tool to generate jwts
https://github.com/benfdking/jen
cli go jwks jwt
Last synced: over 1 year ago
JSON representation
CLI tool to generate jwts
- Host: GitHub
- URL: https://github.com/benfdking/jen
- Owner: benfdking
- License: mit
- Created: 2020-04-13T14:31:53.000Z (about 6 years ago)
- Default Branch: main
- Last Pushed: 2023-06-14T17:25:11.000Z (about 3 years ago)
- Last Synced: 2025-02-01T21:18:23.604Z (over 1 year ago)
- Topics: cli, go, jwks, jwt
- Language: Go
- Homepage:
- Size: 82 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# jen
jen is you go to CLI tool whenever you need to generate jwts for use with a jwks based system.
## Installation
```shell
go install github.com/benfdking/jen
```
## Usage
```
$ jen --help
Jenerate a JWT token
Usage:
jen [claims json] [flags]
jen [command]
Available Commands:
defaults Return default claims
help Help about any command
jwks Generate a jwk set with optional private and public key
list List the default keys, optionally specifying one only returns one jwks url
version Return build information
Flags:
-c, --claims stringToString Claims for JWT (default [])
-d, --defaults Add default claims (default true)
-f, --file string Add claims from JSON file
-h, --help help for jen
-k, --key string [abc] jwt key to use (default "a")
-p, --private string Use private key to sign jwt
Use "jen [command] --help" for more information about a command.
```
## Credits
- `jen` makes use of the [jwx library](https://github.com/lestrrat-go/jwx)