jwt

command module
v1.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 3, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

README

Koi logo
JWT CLI

Encode & Decode JWT Tokens

go version   license version

Installation

go install github.com/mehditeymorian/jwt

Commands

asciicast

# run to see all commands
jwt

Configuration

Different key will be used for encode or decode base on the token algorithm. The interactive field indicates if user input is taken from options or user choose from a set of prompts.

interactive: true
rsa:
  public_key: |-
    key
  private_key: |-
    key
hmac:
  key: key
  base64_encoded: false
ecdsa:
  public_key: |-
    key
  private_key: |-
    key

Set Config

  1. Use -c option to pass config path
  2. Put jwt-config.(yaml|yml) where you run the jwt cli
  3. Default configuration, which is located at /etc/jwt/config.yaml

Contribution

Any contribution in any form is welcomed. Open an issue to discuss about it.

Contact

License

Unless otherwise noted, the JWT source files are distributed under the Apache Version 2.0 license found in the LICENSE file.

Documentation

Overview

Copyright © 2022 Mehdi Teymorian

Directories

Path Synopsis
Package cmd Copyright © 2022 Mehdi Teymorian
Package cmd Copyright © 2022 Mehdi Teymorian
internal
cmd
jwt
key

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL