https://github.com/jroyal/cfjwt
Command line utility for parsing JWTs and getting claims
https://github.com/jroyal/cfjwt
cloudflare-access jwt
Last synced: about 1 year ago
JSON representation
Command line utility for parsing JWTs and getting claims
- Host: GitHub
- URL: https://github.com/jroyal/cfjwt
- Owner: jroyal
- License: mit
- Created: 2019-02-03T20:33:30.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2021-01-19T21:37:39.000Z (over 5 years ago)
- Last Synced: 2025-04-01T01:53:46.574Z (over 1 year ago)
- Topics: cloudflare-access, jwt
- Language: Go
- Size: 1020 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# cfjwt
Command line utility for parsing JWTs and getting claims
```
$ cfjwt --help
Usage of cfjwt:
-t humanize the timestamps
-v verify the JWT
```
```
$ echo 'eyJhbGciOiJSUzI1NiIsImtpZCI6IjY1OTNkOWFjZjkyY ...' | cfjwt
{
"alg": "RS256",
"kid": "6593d9acf92b87faca750a78f7b308a844a57ae51c25ed7322fe06d6d8a6b9b0",
"typ": "JWT"
}
{
"aud": [
"32eafc7626e974616deaf0dc3ce63d7bcbed58a2731e84d06bc3cdf1b53c4551"
],
"email": "test@example.com",
"exp": 1551854755,
"iat": 1549226755,
"iss": "https://james.cloudflareaccess.com",
"nonce": "6c464bf601793547fcc456f50f5257b51c9b245401413f97d724a06ed86df77D",
"sub": "b2790424-651e-439b-998e-ef9f27b0ddee"
}
```