A few weeks back I loaded a neat little plugin from mt-hacks that added the OpenID server functionality to my movabletype setup. This was all neat and good now I could login to other sites but I was not very happy with it because when I logged in using my ID it showed me up as http://blog.wilpig.org and not really myself as the example had shown. So I left a comment for the author of the plugin and he responded about how to make it show my name instead of the site. He pointed me to Wikipedia to learn about something called Foaf(friend of a friend). Which led me to neat little sites like this that can help you build a foaf file. After some digging and rereading what he posted back I found the magic missing ingredient.
<link rel="meta" type="application/rdf+xml" title="FOAF" href="foaf.rdf" />
This is how you can reference a foaf id file in the header of any html document. So I went ahead an build myself a foaf file inside of movabletype and put the above line in the head of the document. Now when I login to other sites using my OpenID it shows up as Wilbur Longwisch. Many thanks go out to Mark for this really nice plugin.
Example foaf.rdf:
<rdf:RDF
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:foaf="http://xmlns.com/foaf/0.1/"
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#">
<foaf:Person>
<foaf:name>Wilbur Longwisch</foaf:name>
<foaf:firstName>Wilbur</foaf:firstName>
<foaf:surname>Longwisch</foaf:surname>
<foaf:mbox_sha1sum>ba8c001a08e7dd5960a2e806fdef52d67a5a8284</foaf:mbox_sha1sum>
<foaf:homepage rdf:resource="http://blog.wilpig.org/" />
<foaf:nick>Wilpig</foaf:nick>
<foaf:depiction rdf:resource="http://www.wilpig.org/~wilbur/webcam/locked/webcam.jpg" />
<foaf:workplaceHomepage rdf:resource="http://www.icscci.com"/>
<foaf:holdsAccount>
<foaf:OnlineAccount>
<rdf:type rdf:resource="http://xmlns.com/foaf/0.1/OnlineChatAccount"/>
<foaf:accountServiceHomepage rdf:resource="http://www.freenode.net/irc_servers.shtml"/>
<foaf:accountName>Evilpig</foaf:accountName>
</foaf:OnlineAccount>
<foaf:aimChatID>wilpigorg</foaf:aimChatID>
</foaf:holdsAccount>
</foaf:Person>
</rdf:RDF>

Looks good, Wilpig. Seems like you've got it. Of course, I am posting this comment after logging in via my OpenID server (with FOAF stuff so it will show my name). ;)
Thanks Wil, I followed your instructions and created a foaf.rdf, installed the plugin from Mark's website, and can now show my name instead of the URL. It was the one thing that turned me off using this sign-in option.
Leave a comment