项目作者: jroyal

项目描述 :
Command line utility for parsing JWTs and getting claims
高级语言: Go
项目地址: git://github.com/jroyal/cfjwt.git
创建时间: 2019-02-03T20:33:30Z
项目社区:https://github.com/jroyal/cfjwt

开源协议:MIT License

下载


cfjwt

Command line utility for parsing JWTs and getting claims

  1. $ cfjwt --help
  2. Usage of cfjwt:
  3. -t humanize the timestamps
  4. -v verify the JWT
  1. $ echo 'eyJhbGciOiJSUzI1NiIsImtpZCI6IjY1OTNkOWFjZjkyY ...' | cfjwt
  2. {
  3. "alg": "RS256",
  4. "kid": "6593d9acf92b87faca750a78f7b308a844a57ae51c25ed7322fe06d6d8a6b9b0",
  5. "typ": "JWT"
  6. }
  7. {
  8. "aud": [
  9. "32eafc7626e974616deaf0dc3ce63d7bcbed58a2731e84d06bc3cdf1b53c4551"
  10. ],
  11. "email": "test@example.com",
  12. "exp": 1551854755,
  13. "iat": 1549226755,
  14. "iss": "https://james.cloudflareaccess.com",
  15. "nonce": "6c464bf601793547fcc456f50f5257b51c9b245401413f97d724a06ed86df77D",
  16. "sub": "b2790424-651e-439b-998e-ef9f27b0ddee"
  17. }