Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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)
- Host: GitHub
- URL: https://github.com/msabramo/jwt_decode
- Owner: msabramo
- License: mit
- Created: 2017-04-21T22:00:54.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-04-27T23:16:37.000Z (over 7 years ago)
- Last Synced: 2024-12-03T21:58:20.823Z (28 days ago)
- Topics: jwt
- Language: Python
- Size: 159 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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 "$@"; }
```