Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/msabramo/jwt_decode

CLI for quick and dirty decoding of JWTs (JSON Web Tokens)
https://github.com/msabramo/jwt_decode

jwt

Last synced: 15 days ago
JSON representation

CLI for quick and dirty decoding of JWTs (JSON Web Tokens)

Awesome Lists containing this project

README

        

# jwt_decode
CLI for quick and dirty decoding of JWTs (JSON Web Tokens)

Easiest way to run this is with the [Docker image](https://hub.docker.com/r/msabramo/jwt_decode/).

```
$ docker run jwt-decode $JWT_TOKEN
{
"user": {
"user_id": 305268,
"username": "msabramo"
},
"repositories": [
{
"name": "behance/moonbeam",
"permissions": [
"pipeline.deploy"
]
},
{
"name": "behance/conduit",
"permissions": [
"pipeline.deploy"
]
},
{
"name": "behance/smoothie",
"permissions": [
"pipeline.deploy"
]
},
{
"name": "behance/moonbeam_faker",
"permissions": [
"pipeline.admin"
]
}
],
"exp": 1492815492,
"additional_data": {},
"token_id": 757
}
```

![example image](images/example.png)

To make this easier, you could even add something like this to one of your dotfiles, such as `~/.profile`:

```bash
jwt_decode() { docker run jwt-decode "$@"; }
```