12 thoughts on “Implementing WebFinger

  1. So I have one question regarding those URITemplates. In the host-meta of Google we see http://www.google.com/s2/webfinger/?q={%id}. How do I know the semantics of it? Is this defined for the Rel value being used? (then it’s wrong in the Google example as it’s also being used for describedby)
    I got this problem when trying to write a more general discovery service which of course cannot know about all possible template paramaters and thus needs some way of selecting the right “plugin” which can convert the template to a proper URI.

  2. In general, the rel value defines the vocabulary of the template. In the case of host-meta, the host-meta specification will define a basic default set and allow relations to override it.

  3. Thanks for the answer! I have another question: If there are multiple URIs or templates defined in the XRD, what is the best practice to choose one. Do I simply take the first one, check if it’s working and if not go to the next one?

    And Matthias lost some tag-markup I think as it was filtered out 😉

    • The XRI TC is currently considering allowing only a single URI or URITemplate for each link. Either way, you should pick links based on them matching your criteria in the order they are presented in the file. If the first fails, you should try the second and so on. These are normative SHOULD in the spec.

  4. Is there a list of commonly-used rel values? I’m starting to put together webfinger data for my users I’m having trouble finding a reference for stuff I should actually put in the descriptor file.

Comments are closed.