Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Webfinger's draft has stabilized #23

Open
konklone opened this issue Oct 8, 2013 · 1 comment
Open

Webfinger's draft has stabilized #23

konklone opened this issue Oct 8, 2013 · 1 comment

Comments

@konklone
Copy link

konklone commented Oct 8, 2013

There's an RFC and everything!

http://www.rfc-editor.org/rfc/rfc7033.txt

I'd love to use this library for a Node-based Webfinger demo app I want to build, and I'm happy to help bring this up to spec (though I've never implemented it before).

@konklone
Copy link
Author

As a point of reference - I just published sinatra-webfinger, for Sinatra apps.

It does a couple of things I think are okay, that make the syntax for configuring easier.

  • Any values that have HTTP/HTTPS schemes can be made links, anything else can be made properties.
  • It uses a mapping of strings to URIs so that users don't have to figure out best practice URIs for field names.

So this allows:

webfinger "[email protected]" => {
  name: "Eric Mill",
  website: "https://konklone.com"
}

To become:

{
  "subject": "[email protected]",
  "properties": {
    "http://schema.org/name": "Eric Mill"
  },
  "links": [
    {
      "rel": "http://webfinger.net/rel/profile-page",
      "href": "https://konklone.com"
    }
  ]
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant