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

Death to Cookies Long Live Tokens - Gluecon 2014

Death to Cookies Long Live Tokens - Gluecon 2014

Cookies have been around for decades and have served us well. Nobody questions their usefulness. However, modern apps demand a better approach. This session is all about the natural successor to cookies: using a token-based design. Tokens help build apps that are assembled on multiple stacks, that use your own and 3rd party APIs, that run on-premises and the cloud. They help easily “flow” user identity across all layers and security contexts, regardless of how they authenticated. And help you deal with CORS and XSRF. Join a code session in which we’ll implement a token-based app using AngularJs and an API.

Code for this presentation is here
https://github.com/auth0/death-to-cookies-gluecon

Matias Woloski

May 31, 2014
Tweet

More Decks by Matias Woloski

Other Decks in Technology

Transcript

  1. Browser Web Server (Python) Realtime (Node) C M ! Cookies

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

    A Set-Cookie + CORS = doesn’t play well Phones Tablets A modern apps
  3. Browser Web Server (Python) Realtime (Node) C M API (Ruby)

    API (Node) A A Phones Tablets A modern apps
  4. Browser Web Server (Python) 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