JWT

JWT = JSON Web Token

Reference:

Related Project:

  • Jwt-Session: JwtSession is a PHP session replacement. Instead of use FileSystem, just use JWT TOKEN. The implementation follow the SessionHandlerInterface.

Why:

  • Compact: small
  • Self Contained: the actual token contains information about a given subject

Uses:

  • Authorization
  • Information Exchange

Structure: xxxxx.yyyyy.zzzzz

  • Header –> Token Type and Signing Algo
  • Payload –> Claims = entity + additional data
  • Signature –> Make sure data wasn’t changed