Json Web Token at Employment Hero

Sponsored · Ship Features Fearlessly Turn features on and off without deploys. Used by thousands of Ruby developers. →
Luong Vo
September 11, 2018

Json Web Token at Employment Hero

Luong Vo

September 11, 2018

Annual Pro sale · Save $30

Have presentations of your own?

Share with private links, password protection, and more control over your work.

Transcript

38 slides
  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

More Decks by Luong Vo

Other Decks in Programming