Eran finally released the XRDS-Simple Draft 1 spec. Chris Messina has some great thoughts about how this fits into DiSo, and Eran has done some good explanations himself. I’m just going to give some of my own thoughts.
First off, forget whatever you think about related standards, like XRDS or XRI. If you dislike OASIS, can it. I’m sick of the fighting and just want the web to *work*.
I’d like to talk a bit about my vision of infinite interoperability, which is facilitated somewhat by XRDSs. Little to none of this is implemented today. I’m not expressing a pragmatic “let’s build this now” but a hope for what I would love to build in time. I’m going to use brands familiar to me – if you hate them, pretend I used different brands.
Imagine this: Flickr is an OpenID consumer with OAuth as its authentication standard on all APIs. They have moved all their content listing, posting, and editing features over to APP (yes, APP supports binary data, like images). They are using XRDSs for discovery of the endpoints to *all* APIs.
I write a website. This website lets you easily create collages of images from free sources for use in projects (I dunno, pick a more useful project idea). You log in with your OpenID and create a collage. You can print it out and embed it on your site, but you want to share with friends. You click a ‘share’ button and are taken to flickr where OAuth authenticates you (maybe using shortcuts since we know your OpenID already) and posts the image to your account using APP. It knows where all the endpoints are because of XRDSs.
How is this different than what can be done with the Flickr API today? Just wait.
Your friend sees your collage and wants to make their own. They also come to my site. They also click share. They do not use Flickr, but rather Zooomr, for their images. Zooomr is also OpenID+OAuth+APP+XRDSs enabled.
My site *does not* have to know about Zooomr. You can simply entry into a settings box “zooomr.com” and my site with *automatically* (XRDSs) find the endpoints to authenticate (OAuth) and post (APP) and your friend can share their image. I support four standards and get access to *every* photo sharing solution, without even knowing they exist or having to care.
3 Responses
Chris Messina •
Quick request: do you think that you could generate an XRDSs document that Flickr and Twitter could use? It’d be great to have example documents to look at, and since those APIs are well defined, I think they’d be great starting points to start to demonstrate how XRDSs can be used… what do you think?
Ramani •
Your love of standards beats mine!
Stephen Paul Weber •
@factoryjoe – I’ve started an example XRDS for Twitter at http://singpolyma.net/twitter.xrds – just the status part of their API for now. I’m not sure I’m doing it quite right (will ask Eran for feedback) also not sure if there’s a consensus on the usefulness of XRDSs for proprietary APIs? No interop to had with Twitter, for example (they should support APP).