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.
31. Is it really that awesome?
Not quite, but it it will be!
32. Adding BrowserID to your application
Step 1: enable BrowserID
<script src="https://browserid.org/include.js">
</script>
33. 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
...
}
});
34. Adding BrowserID to your application
Step 3: verify user's identity
$ curl -d
"assertion=<ASSERTION>&audience=http://mysite.com"
"https://browserid.org/verify"