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

BrowserID: Distributed Identity in the Browser

BrowserID: Distributed Identity in the Browser

BrowserID is a new web login mechanism with strong privacy protection where your browser is the trusted intermediary. Backed by Mozilla, it is based on the simple idea of a user proving that they own an email address, with a generous sprinkling of crypto under the hood. What makes this solution different is that it is designed to be simple (both for users and developers), distributed and privacy-protecting.

Francois Marier

March 07, 2012
Tweet

More Decks by Francois Marier

Other Decks in Programming

Transcript

  1. Adding BrowserID to your application Step 1: enable BrowserID <script

    src="https://browserid.org/include.js"> </script>
  2. Adding BrowserID to your application Step 2: get user's identity

    navigator.id.get(function(assertion) { if (assertion) { // User picked an email address ... } else { // User cancelled ... } });
  3. Adding BrowserID to your application Step 3: verify user's identity

    $ curl -d "assertion=<ASSERTION>&audience=http://mysite.com" "https://browserid.org/verify"
  4. Adding BrowserID to your application Step 3: verify user's identity

    $ curl -d "assertion=<ASSERTION>&audience=http://mysite.com" "https://browserid.org/verify" { "status": "okay", "email": "[email protected]", "audience": "http://mysite.com", "expires": 1308859352261, "issuer": "browserid.org" }
  5. Learn more https://browserid.org http://lloyd.io/how-browserid-works http://mozilla.github.com/browserid-field-guide/ http://myfavoritebeer.org Copyright © 2012 François

    Marier Released under the terms of the Creative Commons Attribution Share Alike 3.0 Unported Licence fmarier fmarier