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

Make your SPA a maximum security prison

Make your SPA a maximum security prison

Everybody has been creating Single Page Apps lately. They look neat and fast. Handling authentication in an SPA can be tricky though: Cookies, Tokens, Right to access URLs and Resources. Which one is better? In this talk, I explore all these options: pros and cons. We’ll use AngularJS as an example but the concepts apply to any other client technology like Ember.js or vanilla JS.

Martin Gontovnikas

October 23, 2014
Tweet

More Decks by Martin Gontovnikas

Other Decks in Programming

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 APIs don’t use Cookies 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 FIREBASE F Phones Tablets A modern apps
  5. Browser Web Server (Python) Realtime (Node) C M API (Ruby)

    API (Node) A A ! Cookies don’t “flow” FIREBASE F Phones Tablets A modern apps