Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Taking the pain out of signing users in
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
Francois Marier
July 25, 2013
Programming
340
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Taking the pain out of signing users in
Francois Marier
July 25, 2013
More Decks by Francois Marier
See All by Francois Marier
Security and Privacy settings for Firefox Power Users
fmarier
0
410
Getting Browsers to Improve the Security of Your Webapp
fmarier
0
360
Hardening Firefox for Privacy and Security
fmarier
0
1.2k
Security and Privacy on the Web in 2016
fmarier
0
260
Privacy and Tracking Protection in Firefox
fmarier
0
340
Security and Privacy on the Web in 2015
fmarier
0
450
Security and Privacy on the Web in 2015
fmarier
0
220
Integrity protection for third-party JavaScript
fmarier
1
890
URL to HTML
fmarier
1
360
Other Decks in Programming
See All in Programming
3回つくってわかった、 定期実行ジョブ基盤の本質情報
takai
0
510
ActionController meets Protocol Buffers
sorah
0
560
外から家のPCの電源入れたい!をPHPで解決する
kawashimo0
1
140
PumaからFalconに移行したRailsアプリケーションでの実践
falcon8823
0
180
作れる、でも消せるか?──安全に「枯らして消す」機能削除術 / Drain, Then Delete
chobishiba
2
800
HTML-in-Canvasで作る未来のWeb UI表現
clockmaker
5
5.2k
ジョジョの世界をXRで再現する
mofurune
0
170
Jetpack Compose Mechanisms
skydoves
3
820
[Dev Group Paris Octobre 26] Agentforce, SIforce, Claudeforce, Slackbot… on s'y retrouve ?
nabondance
0
110
JIS keyboard support in Omarchy
lef237
0
130
C#の現在地 進化の歴史と、AI時代の.NET Everywhere
neuecc
5
5.2k
JAWS-UG 東京支部が始める、JAWS-UG支部コラボ / JAWS-UG lunchtime LT Collaboration
y0hgi
0
280
Featured
See All Featured
Exploring anti-patterns in Rails
aemeredith
4
540
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
31
2.9k
The Straight Up "How To Draw Better" Workshop
denniskardys
239
140k
The B2B funnel & how to create a winning content strategy
katarinadahlin
PRO
1
570
Information Architects: The Missing Link in Design Systems
soysaucechin
1
1.2k
Beyond borders and beyond the search box: How to win the global "messy middle" with AI-driven SEO
davidcarrasco
3
280
Balancing Empowerment & Direction
lara
6
1.3k
How to Talk to Developers About Accessibility
jct
2
580
Music & Morning Musume
bryan
48
7.4k
Testing 201, or: Great Expectations
jmmastey
46
8.3k
SEO for Brand Visibility & Recognition
aleyda
0
4.8k
The innovator’s Mindset - Leading Through an Era of Exponential Change - McGill University 2025
jdejongh
PRO
1
380
Transcript
François Marier – @fmarier Taking the pain out of signing
users in
passwords
problem #1: passwords are hard to secure
None
None
None
None
None
None
None
None
None
bcrypt / scrypt / pbkdf2 per-user salt site secret password
& lockout policies secure recovery
bcrypt / scrypt / pbkdf2 per-user salt site secret password
& lockout policies secure recovery
bcrypt / scrypt / pbkdf2 per-user salt site secret password
& lockout policies secure recovery
bcrypt / scrypt / pbkdf2 per-user salt site secret password
& lockout policies secure recovery
bcrypt / scrypt / pbkdf2 per-user salt site secret password
& lockout policies secure recovery
bcrypt / scrypt / pbkdf2 per-user salt site secret password
& lockout policies secure recovery 2013 2013 password password guidelines guidelines
passwords are hard to secure they are a liability
ALTER TABLE user DROP COLUMN password;
problem #2: passwords are hard to remember
None
None
pick an easy password
use it everywhere
passwords are hard to remember they need to be reset
None
control email account control all accounts =
None
“People want a little dating before marriage.” Eric Vishria –
Rockmelt
None
decentralised
myid.com/u/francois
None
None
existing login systems are not good enough
ideal web-wide identity system
• decentralised simple cross-browser ideal web-wide identity system
• decentralised • simple cross-browser ideal web-wide identity system
• decentralised • simple • cross-browser ideal web-wide identity system
what if it were a standard part of the web
browser?
None
how does it work?
[email protected]
demo #1: http://www.voo.st/
[email protected]
Persona is already a decentralised system
decentralisation is the answer, but it's not a product adoption
strategy
we can't wait for all domains to adopt Persona
we can't wait for all domains to adopt Persona solution:
a temporary centralised fallback
demo #2: http://sloblog.io/
[email protected]
Persona already works with all email domains
identity bridging
demo #3: http://www.reasonwell.com/
[email protected]
None
None
None
None
>= 8
Persona is decentralized, simple and cross-browser
it's simple for users, but is it also simple for
developers?
None
<script src=”https://login.persona.org/include.js”> </script> </body></html>
navigator.id.watch({ loggedInUser: null, onlogin: function (assertion) { $.post('/login', {assertion: assertion},
function (data) { window.location = '/home'; } ); }, onlogout: function () { window.location = '/logout'; } });
navigator.id.watch({ loggedInUser: "
[email protected]
" onlogin: function (assertion) { $.post('/login', {assertion: assertion},
function (data) { window.location = '/home'; } ); }, onlogout: function () { window.location = '/logout'; } });
navigator.id.watch({ loggedInUser: null onlogin: function (assertion) { $.post('/login', {assertion: assertion},
function (data) { window.location = '/home'; } ); }, onlogout: function () { window.location = '/logout'; } });
navigator.id.watch({ loggedInUser: null, onlogin: function (assertion) { $.post('/login', {assertion: assertion},
function (data) { window.location = '/home'; } ); } onlogout: function () { window.location = '/logout'; } });
navigator.id.watch({ loggedInUser: null, onlogin: function (assertion) { $.post('/login', {assertion: assertion},
function (data) { window.location = '/home'; } ); }, onlogout: function () { window.location = '/logout'; } });
None
navigator.id.request()
None
None
None
navigator.id.watch({ loggedInUser: null, onlogin: function (assertion) { $.post('/login', {assertion: assertion},
function (data) { window.location = '/home'; } ); }, onlogout: function () { window.location = '/logout'; } });
navigator.id.watch({ loggedInUser: null, onlogin: function (assertion) { $.post('/login', {assertion: assertion},
function (data) { window.location = '/home'; } ); }, onlogout: function () { window.location = '/logout'; } });
def verify_assertion(assertion): page = requests.post( 'https://verifier.login.persona.org/verify', data={ "assertion": assertion, "audience":
'http://123done.org'} ) data = page.json return data.status == 'okay'
def verify_assertion(assertion): page = requests.post( 'https://verifier.login.persona.org/verify', data={ "assertion": assertion, "audience":
'http://123done.org'} ) data = page.json return data.status == 'okay'
def verify_assertion(assertion): page = requests.post( 'https://verifier.login.persona.org/verify', data={ "assertion": assertion, "audience":
'http://123done.org'} ) data = page.json return data.status == 'okay'
{ status: “okay”, audience: “http://123done.org”, expires: 1344849682560, email: “
[email protected]
”, issuer:
“login.persona.org” }
{ status: “failed”, reason: “assertion has expired” }
None
None
navigator.id.logout()
navigator.id.watch({ loggedInUser: null, onlogin: function (assertion) { $.post('/login', {assertion: assertion},
function (data) { window.location = '/home'; } ); }, onlogout: function () { window.location = '/logout'; } });
None
1. load javascript library 2. setup login & logout callbacks
3. add login and logout buttons 4. verify proof of ownership
1. load javascript library 2. setup login & logout callbacks
3. add login and logout buttons 4. verify proof of ownership
1. load javascript library 2. setup login & logout callbacks
3. add login and logout buttons 4. verify proof of ownership
1. load javascript library 2. setup login & logout callbacks
3. add login and logout buttons 4. verify proof of ownership
you can add support for Persona in four easy steps
one simple request
None
building a new site: default to Persona
working on an existing site/app: add support for Persona
To learn more about Persona: https://login.persona.org/ http://identity.mozilla.com/ 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 @fmarier
© 2013 François Marier <
[email protected]
> This work is licensed under
a Creative Commons Attribution-ShareAlike 3.0 New Zealand License. Hotel doorman: https://secure.flickr.com/photos/wildlife_encounters/8024166802/ Top 500 passwords: http://xato.net/passwords/more-top-worst-passwords/ Parchment: https://secure.flickr.com/photos/27613359@N03/6750396225/ Uncle Sam: https://secure.flickr.com/photos/donkeyhotey/5666065982/ Restaurant dinner: https://secure.flickr.com/photos/yourdon/3977084094/ Stop sign: https://secure.flickr.com/photos/artbystevejohnson/6673406227/ Photo credits: