Skip to content

Instantly share code, notes, and snippets.

@melvincarvalho
Created February 28, 2012 14:27
Show Gist options
  • Save melvincarvalho/1932837 to your computer and use it in GitHub Desktop.
Save melvincarvalho/1932837 to your computer and use it in GitHub Desktop.
webfinger simplification
## Simplification
[email protected] and translate to -> gmail.com/@/joe
Serve it as JSON, and we're pretty much done (ive skipped a couple of details for brevity).
We have a few world class, scalable, JSON formats now that we didnt have 2 years ago.
## Current webfinger
1. Convert email address to the acct: URI scheme
2. Splice acct: URI to work out the host-meta location
3. Content negotiation on host meta to get XRD or JRD
4. Parse either XRD or JRD to get the LRDD template
5. Use the LRDD template to get location of 'webfinger doc'
6. Content negotiation on webfinger doc to get user data
7. Parse either XRD or JRD to get user information
## Proposed simplification:
1. Splice email address to work out webfinger doc
2. Parse JSON to get user information
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment