Intro To Open Web Technology MSC OSCONF 2009 #MOSC2010
Intro To Open Web Technology MSC OSCONF 2009 #MOSC2010
Web Technology
(Open ID, OAuth, Atompub and
OpenSocial)
http://www.flickr.com/photos/mag3737/1
The open web is a set of
philosophies
• Decentralization - not owned by any one company
• Client end
• Server technologies
• Web specifications
• User
• Identifier - unique identifier that will
be reused at all sites
• Identity provider (OpenID Provider,
IdP, Server)
• Relying party (Consumer)
As an end user
• You can reuse your username and password
which sites that work as relaying parties (not all
IPs are Rps – Facebook is the largest RP)
* http://www.janrain.com/openid
OpenID flow
www.johnmerrells.com/.../05/openid-diagram-1.png
What is OAuth?
• A simple open standard for
delegated Web API authorization
• Let other sites access your data
without telling them your password
Valet key for your
web
http://toyotaownersclub.com/forums/index.php?showtopic=77384
Key concepts
• End Users
• Share information between online services without disclosing
passwords
End user
Service
provider Consumer
http://www.flickr.com/photos/factoryjoe/2658493767/
http://www.flickr.com/photos/factoryjoe/2659323294/
http://www.flickr.com/photos/factoryjoe/2659323294/
http://www.flickr.com/photos/factoryjoe/2658497753/
As an end user, why
bother?
• Never give your passwords to 3rd party
websites
• Even if not malicious, what if
compromised ?
WTF ?!
“Passwords are not
confetti.
Please stop throwing them
around.
Especially if they’re not
yours”
Chris Messina
http://www.slideshare.net/carsonified/how-oauth-and-portable-data-can-revolutionize-your-web-app-chris-messina-presentati
As a developer, why
bother?
• Large adoption - Goog, Y!, MySpace
• Interop - Leverage the services
• Can be used as a replacement for
HTTP basic auth
• SSL might not be always necessary
• Part of the Open web stack
• Atompub + OpenID + OAuth + XRDS
+OpenSocial
What is the Atom publication
protocol (Atompub) ?
• Consists of
Google has
extended
Atompub and the
Atom syndication
format to expose
their applications
data online
• Microsoft as well has used it as the
basis of the Live web services
http://dev.live.com/blogs/devlive/archive/2008/02/27/213.aspx
Example
As a developer, why bother ?
• If you're building apps
http://www.flickr.com/photos/29501676@N00/1826112130/
• http://apps.myspace.com
• ~ 1000+ apps
iGoogle – a non social site OpenSocial container
Google Friend Connect – A hosted OpenSocial solution
Applications
available
as part of
Google Friend
connect
Deals with proliferation of online social
sites
http://widgetsummit.com/media/slides/opensocial.pdf - Chris Schalk, Google Developer Advocate Paul Lindner, Engineering Manager, hi5
http://widgetsummit.com/media/slides/opensocial.pdf - Chris Schalk, Google Developer Advocate Paul Lindner, Engineering Manager, hi5
http://widgetsummit.com/media/slides/opensocial.pdf - Chris Schalk, Google Developer Advocate Paul Lindner, Engineering Manager, hi5
Key concepts
• Platforms that can run the OpenSocial widgets are
called “containers”
• Activities
• Persistence
• Huge deployment
http://widgetsummit.com/media/slides/opensocial.pdf - Chris Schalk, Google Developer Advocate Paul Lindner, Engineering Manager, hi5
• If you're building a web app
http://www.sapweb20.com/blog/2009/05/sap-and-open-social-at-the-google-io-developer-conference/
• Leverage existing implementations
• Apache shindig
http://incubator.apache.org/shindig/
• Glassfish socialsite
https://socialsite.dev.java.net/http://incubator.ap
ache.org/
Summary
• The technologies are being built on top of each other
– Open Web stack – many more interesting open web
specs being developed
http://developer.yahoo.net/blog/archives/2008/12/the_open_stack.html
• Great engineering work, learnings applicable outside
of original use cases