{"id":320,"date":"2008-08-30T00:44:05","date_gmt":"2008-08-30T05:44:05","guid":{"rendered":"http:\/\/www.jasonmorrison.net\/content\/?p=320"},"modified":"2008-08-30T00:44:05","modified_gmt":"2008-08-30T05:44:05","slug":"use-openid-in-your-wordpress-blog-for-comments-and-your-identity","status":"publish","type":"post","link":"http:\/\/www.jasonmorrison.net\/content\/2008\/use-openid-in-your-wordpress-blog-for-comments-and-your-identity\/","title":{"rendered":"Use OpenId in your WordPress blog for comments and your identity"},"content":{"rendered":"<p><a class=\"tt-flickr tt-flickr-Small\" href=\"http:\/\/www.jasonmorrison.net\/content\/photos\/photo\/2727357334\/worn-old-welcome-mat.html\"><img loading=\"lazy\" decoding=\"async\" class=\"alignright\" style=\"border: 0pt none;\" src=\"http:\/\/farm4.static.flickr.com\/3131\/2727357334_5b5c89ae36_m.jpg\" border=\"0\" alt=\"Worn old welcome mat\" width=\"240\" height=\"180\" \/><\/a> The web has evolved into this amazing place filled with user-created content, blogs, wikis, photo sharing sites, and users can enter comments on just about all of them. But there&#8217;s a problem &#8211; commenting in Blogger, Flickr, and some random self-hosted WordPress blog requires you to create user accounts or type in tedious contact information separately in each one.<\/p>\n<p>As a user, you probably want to spend your time commenting rather than remembering usernames and passwords.\u00a0 As a blogger, you no doubt want to make it as easy as possible for your readers to comment on your posts.\u00a0 What we need is some really powerful identity management system to make this all possible.<\/p>\n<p><a href=\"http:\/\/openid.net\/\">OpenID<\/a> is an attempt at creating such a system that <a href=\"http:\/\/janrain.com\/blog\/2008\/07\/08\/relying-party-stats-as-of-july-1st-2008\/\">seems to be growing quickly<\/a>.\u00a0 Instead of hundreds of usernames and passwords you have a simple URL that you control.\u00a0 I just added it to my WordPress blog to see if it&#8217;s helpful, and I&#8217;ll walk you through the steps you need to take to use it and allow your commenters to use it too.<\/p>\n<h3>How to use your blog as your OpenID<\/h3>\n<p>First off, you need to get an OpenID.\u00a0 <a href=\"http:\/\/openid.net\/get\/\">Luckily, you probably already have one<\/a>.\u00a0 Major sites like Blogger, LiveJournal, Flickr, and Yahoo are supporting OpenID so you can just go with what you have.\u00a0 You can also go with a specific provider.\u00a0 Which one should you use?\u00a0 It doesn&#8217;t really matter, since you can use your site&#8217;s URL as your OpenID and switch providers whenever you want.<\/p>\n<p>Now that you have a URL, you need to use delegation to allow your site&#8217;s URL to stand in.\u00a0 In WordPress, this means opening up the header.php and adding a few lines to your &lt;head&gt; section.\u00a0 If you&#8217;re using Google&#8217;s Blogger (like me), the links would look something like this:<\/p>\n<blockquote><p>&lt;link rel=&#8221;openid.server&#8221; href=&#8221;http:\/\/draft.blogger.com\/openid-server.g&#8221; \/&gt;<br \/>\n&lt;link rel=&#8221;openid.delegate&#8221; href=&#8221;http:\/\/<em>blogname<\/em>.blogspot.com\/&#8221; \/&gt;<\/p><\/blockquote>\n<p>One side note &#8211; if you view the source of this page, you won&#8217;t see these lines.\u00a0 I&#8217;m using <a href=\"http:\/\/www.jasonmorrison.net\">my root domain<\/a> instead.<\/p>\n<p>For more information, <a href=\"http:\/\/www.intertwingly.net\/blog\/2007\/01\/03\/OpenID-for-non-SuperUsers\">see this post by Sam Ruby<\/a>.<\/p>\n<h3>How to use OpenID for comments in WordPress<\/h3>\n<p>This part is simple &#8211; like everything else you want to do with WordPress, there&#8217;s a plugin.\u00a0 Just download and install <a href=\"http:\/\/wordpress.org\/extend\/plugins\/openid\/\">the WP-OpenID plugin<\/a> and activate it.<\/p>\n<p>You should notice a little OpenID icon in the fields for the comments below this post.\u00a0 Go a head and test it out.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The web has evolved into this amazing place filled with user-created content, blogs, wikis, photo sharing sites, and users can enter comments on just about all of them. But there&#8217;s a problem &#8211; commenting in Blogger, Flickr, and some random self-hosted WordPress blog requires you to create user accounts or type in tedious contact information [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[19],"tags":[483,484,77,80,88,486,485,482,111,110,173],"class_list":["post-320","post","type-post","status-publish","format-standard","hentry","category-blog","tag-authentication","tag-blogger","tag-flickr","tag-google","tag-how-to","tag-identity-management-systems","tag-livejournal","tag-openid","tag-plugin","tag-wordpress","tag-yahoo"],"aioseo_notices":[],"_links":{"self":[{"href":"http:\/\/www.jasonmorrison.net\/content\/wp-json\/wp\/v2\/posts\/320","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.jasonmorrison.net\/content\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.jasonmorrison.net\/content\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.jasonmorrison.net\/content\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.jasonmorrison.net\/content\/wp-json\/wp\/v2\/comments?post=320"}],"version-history":[{"count":2,"href":"http:\/\/www.jasonmorrison.net\/content\/wp-json\/wp\/v2\/posts\/320\/revisions"}],"predecessor-version":[{"id":322,"href":"http:\/\/www.jasonmorrison.net\/content\/wp-json\/wp\/v2\/posts\/320\/revisions\/322"}],"wp:attachment":[{"href":"http:\/\/www.jasonmorrison.net\/content\/wp-json\/wp\/v2\/media?parent=320"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.jasonmorrison.net\/content\/wp-json\/wp\/v2\/categories?post=320"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.jasonmorrison.net\/content\/wp-json\/wp\/v2\/tags?post=320"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}