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

Death to Cookies, Long Live JSON Web Tokens

Death to Cookies, Long Live JSON Web Tokens

Matias Woloski

March 19, 2015
Tweet

More Decks by Matias Woloski

Other Decks in Technology

Transcript

  1. Browser Web Server (PHP) Realtime (Node) C M Cookies are

    coupled to the web framework modern apps
  2. Browser Web Server (PHP) Realtime (Node) C M API (Node)

    A APIs don’t use Cookies Phones Tablets A modern apps
  3. Browser Web Server (PHP) Realtime (Node) C M API (Ruby)

    API (Node) A A Phones Tablets A modern apps
  4. Browser Web Server (PHP) Realtime (Node) C M API (Ruby)

    API (Node) A A AWS S3 S Phones Tablets A modern apps
  5. Browser Web Server (Python) Realtime (Node) C M API (Ruby)

    API (Node) A A Cookies don’t “flow” AWS S3 S Phones Tablets A modern apps
  6. TouchID Ask User to Login with TouchID Is Private Key

    on KeyChain? Generate Key Pair Store Public Key on Server Generate JWT & Sign with Private Key Validate JWT with Public Key on Server Yes No