Slide 1

Slide 1 text

François Marier @fmarier Killing Passwords One Site at a Time with Shane Tomlinson @shane_tomlinson

Slide 2

Slide 2 text

Agenda: Sign-in in 2013 Live demo Live acting Live coding Beer!

Slide 3

Slide 3 text

Email: shane.tomlinson@eyedee.me Password: **************** X Sign in Roll Your Own

Slide 4

Slide 4 text

UX

Slide 5

Slide 5 text

conversion rate

Slide 6

Slide 6 text

# hits signup

Slide 7

Slide 7 text

# hits signup signup_complete

Slide 8

Slide 8 text

# hits signup signup_complete l o s t cust- omers

Slide 9

Slide 9 text

Security

Slide 10

Slide 10 text

No content

Slide 11

Slide 11 text

bcrypt per-user salt site secret password & lockout policies secure recovery

Slide 12

Slide 12 text

bcrypt per-user salt site secret password & lockout policies secure recovery

Slide 13

Slide 13 text

bcrypt per-user salt site secret password & lockout policies secure recovery

Slide 14

Slide 14 text

bcrypt per-user salt site secret password & lockout policies secure recovery

Slide 15

Slide 15 text

bcrypt per-user salt site secret password & lockout policies secure recovery

Slide 16

Slide 16 text

bcrypt per-user salt site secret password & lockout policies secure recovery 2013 2013 password password guidelines guidelines

Slide 17

Slide 17 text

No content

Slide 18

Slide 18 text

Externalize the Hard Work (3rd party authentication)

Slide 19

Slide 19 text

Externalize the Hard Work (3rd party authentication) * Eliminate site specific usernames and passwords

Slide 20

Slide 20 text

Externalize the Hard Work (3rd party authentication) * Eliminate site specific usernames and passwords * No password database to worry about

Slide 21

Slide 21 text

Externalize the Hard Work (3rd party authentication) * Eliminate site specific usernames and passwords * No password database to worry about * No email verification or resets

Slide 22

Slide 22 text

Externalize the Hard Work (3rd party authentication) * Eliminate site specific usernames and passwords * No password database to worry about * No email verification or resets * They have more money to invest in security

Slide 23

Slide 23 text

“social” authentication

Slide 24

Slide 24 text

No content

Slide 25

Slide 25 text

No content

Slide 26

Slide 26 text

No content

Slide 27

Slide 27 text

Button overload

Slide 28

Slide 28 text

Centralized gatekeepers can delete your customers

Slide 29

Slide 29 text

No content

Slide 30

Slide 30 text

No content

Slide 31

Slide 31 text

Advantage: decentralized

Slide 32

Slide 32 text

Advantage: decentralized Disadvantages:

Slide 33

Slide 33 text

Advantage: decentralized Disadvantages: UX worse than passwords

Slide 34

Slide 34 text

Advantage: decentralized Disadvantages: UX worse than passwords Security is very complicated

Slide 35

Slide 35 text

Advantage: decentralized Disadvantages: UX worse than passwords Security is very complicated Privacy concerns

Slide 36

Slide 36 text

Existing solutions are not good enough

Slide 37

Slide 37 text

No content

Slide 38

Slide 38 text

decentralized

Slide 39

Slide 39 text

privacy-sensitive decentralized

Slide 40

Slide 40 text

privacy-sensitive simple decentralized

Slide 41

Slide 41 text

privacy-sensitive simple open source decentralized

Slide 42

Slide 42 text

What does it look like?

Slide 43

Slide 43 text

(live demo)

Slide 44

Slide 44 text

Persona is easy

Slide 45

Slide 45 text

How does it work?

Slide 46

Slide 46 text

Slide 47

Slide 47 text

private public

Slide 48

Slide 48 text

public

Slide 49

Slide 49 text

My name is François Marier and my email is too long to fit on one line.

Slide 50

Slide 50 text

My name is François Marier and my email is too long to fit on one line. private

Slide 51

Slide 51 text

My name is François Marier and my email is too long to fit on one line. public

Slide 52

Slide 52 text

sign verify

Slide 53

Slide 53 text

Slide 54

Slide 54 text

(Live Acting)

Slide 55

Slide 55 text

No content

Slide 56

Slide 56 text

No content

Slide 57

Slide 57 text

No content

Slide 58

Slide 58 text

No content

Slide 59

Slide 59 text

No content

Slide 60

Slide 60 text

No content

Slide 61

Slide 61 text

achieving the vision

Slide 62

Slide 62 text

No content

Slide 63

Slide 63 text

email providers browser vendors

Slide 64

Slide 64 text

email providers

Slide 65

Slide 65 text

fmarier@gmail.com

Slide 66

Slide 66 text

fmarier@gmail.com

Slide 67

Slide 67 text

fallback identity provider

Slide 68

Slide 68 text

No content

Slide 69

Slide 69 text

No content

Slide 70

Slide 70 text

No content

Slide 71

Slide 71 text

persona.org account

Slide 72

Slide 72 text

support for all email providers

Slide 73

Slide 73 text

browser vendors

Slide 74

Slide 74 text

navigator.id.*

Slide 75

Slide 75 text

No content

Slide 76

Slide 76 text

No content

Slide 77

Slide 77 text

No content

Slide 78

Slide 78 text

js

Slide 79

Slide 79 text

support for all modern browsers >= 8

Slide 80

Slide 80 text

support for all modern browsers >= 8

Slide 81

Slide 81 text

A decentralized solution that just worksTM

Slide 82

Slide 82 text

How can I use it on my site?

Slide 83

Slide 83 text

(Live Coding)

Slide 84

Slide 84 text

1. load javascript library

Slide 85

Slide 85 text

1. load javascript library 2. setup login & logout callbacks

Slide 86

Slide 86 text

1. load javascript library 2. setup login & logout callbacks 3. add login and logout buttons

Slide 87

Slide 87 text

1. load javascript library 2. setup login & logout callbacks 3. add login and logout buttons 4. verify proof of ownership

Slide 88

Slide 88 text

Persona is easy to integrate, no crypto required.

Slide 89

Slide 89 text

You can help! Add Persona to your site Tell us about it (good and bad) Ask one site to support Persona

Slide 90

Slide 90 text

Think of the children!

Slide 91

Slide 91 text

RTFM: https://login.persona.org/ http://identity.mozilla.com/ https://developer.mozilla.org/docs/Persona/Why_Persona https://developer.mozilla.org/docs/Persona/Quick_Setup https://github.com/mozilla/browserid-cookbook https://developer.mozilla.org/docs/Persona/Libraries_and_plugins http://123done.org/ https://wiki.mozilla.org/Identity#Get_Involved http://fmarier.org @fmarier @shane_tomlinson https://shanetomlinson.com

Slide 92

Slide 92 text

Using Persona on your site

Slide 93

Slide 93 text

Slide 94

Slide 94 text

navigator.id.watch({ signedInUser: <null || email@domain.com>, onlogin: function(assertion) { // more on this later }, onlogout: function() { window.location = '/logout'; } }); Setup navigator.id.watch

Slide 95

Slide 95 text

… $(“#login”).click(function(evt) { evt.preventDefault(); navigator.id.request(); }); Hook up login button

Slide 96

Slide 96 text

… $(“#logout”).click(function(evt) { evt.preventDefault(); navigator.id.logout(); }); Hook up logout button

Slide 97

Slide 97 text

signedInUser: , onlogin: function(assertion) { $.post('/login', {assertion: assertion}, function (data) { window.location = '/home'; } ); }, onlogout: function() { Send assertion to backend for verification

Slide 98

Slide 98 text

function onlogin(assertion) { var body = qs.stringify({ assertion: assertion, audience: 'http://123done.org' }); var request = https.request({ host: 'verifier.login.persona.org', path: '/verify', method: 'POST', headers: { 'content-type': 'application/x-www-form-urlencoded', 'content-length': body.length } }, onVerifyResp); request.write(body); request.end(); } Server side assertion verification

Slide 99

Slide 99 text

{ status: “okay”, audience: “http://123done.org”, expires: 1344849682560, email: “francois@mozilla.com”, issuer: “login.persona.org” } Verifier response – all good

Slide 100

Slide 100 text

{ status: “failed”, reason: “assertion has expired” } Verifier response – bad jiji