Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Json Web Token at Employment Hero

Avatar for Luong Vo Luong Vo
September 11, 2018

Json Web Token at Employment Hero

Avatar for Luong Vo

Luong Vo

September 11, 2018
Tweet

More Decks by Luong Vo

Other Decks in Programming

Transcript

  1. Main app Username + password Session token Auth Service Generate

    session token Save session token to database But why?
  2. Main app Session token JWT Token Auth Service Generate JWT

    Query session token to check But why?
  3. Main app Get/…. + JWT Token { “data”: …. }

    Auth Service Validate JWT But why?
  4. Main app Get/…. + JWT Token { “data”: …. }

    Auth Service Validate JWT Microservice GRPC call But why?
  5. Main app Get/…. + JWT Token { “data”: …. }

    Auth Service Validate JW T Microservice Oh….
  6. Main app Get/…. + JWT Token { “data”: …. }

    Auth Service Microservice LOAD BALANCER
  7. • Require CPU to compute cryptographic signatures • No utilisation

    of being stateless • Redundant-signing • Can be read on the client side • Must be explicitly encrypted if we wanted to • Hard revocation