<rdf:Description rdf:about="http://snarfed.org/space/pyblosxom%20openid%20comments">
  <dc:title> pyblosxom OpenID comments </dc:title>
  <dc:creator> Ryan Barrett &lt;snarfed at ryanb dot org&gt; </dc:creator>
  <dc:date> 2007-09-02T17:41:00Z </dc:date>
  <dc:language> en </dc:language>
  <dc:format> text/html </dc:format>
  <dc:rights> Copyright 2002-2009 Ryan Barrett </dc:rights>

  <content>
    <p><a href="http://openid.net/"><img src="/space/openid-logo.png" alt="openid" title="" /></a>
<a href="http://pyblosxom.sf.net/"><img src="/space/pyblosxom.jpg" alt="pyblosxom" title="" /></a>
<a href="http://janrain.com/"><img src="/space/janrain.png" alt="janrain" title="" /></a></p>

<p>For the impatient: <br />
&nbsp; Download <a href="/space/comments_openid.py">comments_openid.py 0.4</a> <br />
&nbsp; Download <a href="http://www.openidenabled.com/python-openid/">Python OpenID libraries</a> <br />
&nbsp; Download
  <a href="http://pyblosxom.sf.net/blog/registry/input/comments/comments">comments.py</a>
  and <a href="http://pyblosxom.sf.net/blog/registry/general/session">session.py</a> <br />
&nbsp; <a href="http://openid.net/">OpenID home page</a> <br />
&nbsp; <a href="http://pyblosxom.sf.net/">PyBlosxom home page</a></p>

<p><em>Updated 2007-09-24.</em></p>

<p><a href="/space/comments_openid.py">comments_openid.py</a> is a
<a href="http://pyblosxom.sf.net/">PyBlosxom</a> plugin that allows
<a href="http://openid.net/">OpenID</a>-authenticated comments. When used in conjunction
with the
<a href="http://pyblosxom.sourceforge.net/blog/registry/input/comments/comments">comments plugin</a>,
it allows people to comment on your PyBlosxom-based site
using their OpenID provider. In addition, if their provider supports the
<a href="http://www.openidenabled.com/openid/simple-registration-extension">Simple Registration Extension</a>,
it displays their nickname instead of their OpenID URL under the comment.</p>

<p>To use it, first download and install the
<a href="http://www.openidenabled.com/python-openid/">Python OpenID libraries</a>. Then, download
<a href="http://pyblosxom.sourceforge.net/blog/registry/input/comments/comments">comments.py</a>
and <a href="http://pyblosxom.sourceforge.net/blog/registry/general/session">session.py</a>
plugins and
<a href="http://pyblosxom.sourceforge.net/1.3.1/manual/c888.html">enable comments</a> on
your blog.</p>

<p>When you're ready, add a note in your <code>comments-form</code> template that the URL
input field now supports OpenId:</p>

<div class='p-shadow'><pre><code>&lt;input name="url" id="comment-url" type="text" value="$cmt_link" /&gt;
&lt;label for="url"&gt;Web site or &lt;a href="http://openid.net/"&gt;OpenID&lt;/a&gt;&lt;/label&gt;
</code></pre></div>

<p><br class='clearing' />Then, add this setting to your <code>config.py</code>:</p>

<div class='p-shadow'><pre><code># A directory for the OpenID library to use to store information about
# OpenID servers and logins. This directory should be outside of your
# public web space.
 py['openid_store_dir'] = '/path/to/data/directory/'
</code></pre></div>

<p><br class='clearing' />Change the path to an appropriate directory on your web server, and you should
be good to go!</p>

<p>Apart from <code>openid_store_dir</code>, there are several configuration settings that
allow you to control comment access based on OpenID:</p>

<div class='p-shadow'><pre><code># Trust root for the OpenID Request. Defaults to the base URL of your page.
# (All URLs should fall under this directory.)
py['openid_trust_root']  

# If this is set to True, do not allow comments unless OpenID
# authentication succeeds. Defaults to False.
py['openid_required']  

# List of patterns for identities and OpenID servers to always reject. The
# patterns follow the form of OpenID trust roots, which are basically URLs
# that allow * in the domain name to match any subdomain. For more
# details, see the entry on openid.trust_root in
# http://openid.net/specs.bml#mode-checkid_immediate.
# Both default to empty lists.
py['openid_reject_identity']  
py['openid_reject_server']  

# Lists of patterns for identities and servers to allow. If either of
# these options are set, only OpenID URLs that match are allowed. Both
# default to empty lists.
py['openid_allow_identity']  
py['openid_allow_server']
</code></pre></div>

<p><br class='clearing' />Copyright 2006-2007
<a href="http://claimid.com/j3h/">Josh Hoyt</a> and
<a href="http://claimid.com/keturn/">Kevin Turner</a> of
<a href="http://janrain.com/">JanRain</a>, original authors, and
<a href="/space/about">Ryan Barrett</a>, current maintainer. Distributed under the
<a href="http://www.gnu.org/licenses/gpl.html">GPL</a>. Originally released on
<a href="http://openidenabled.com/">openidenabled.com</a> and moved to
<a href="http://snarfed.org/">snarfed.org</a> on September 6, 2007.</p>

<p>See also:</p>

<ul>
<li><a href="/space/pyblosxom+openid+server">pyblosxom openid server</a></li>
<li><a href="/space/pyblosxom+ajax+comments">pyblosxom ajax comments</a></li>
<li><a href="/space/windows+p2p">windows p2p</a></li>
<li><a href="/space/pyblosxom+index">pyblosxom index</a></li>
<li><a href="/space/pyblosxom+history">pyblosxom history</a></li>
</ul>

  </content>

  <rdf:Seq>

<rdf:li>
<rdf:Description rdf:about="#1197282689.69">
  <dc:source> http://snarfed.org/ </dc:source>
  <dc:title> pyblosxom OpenID comments </dc:title>
  <dc:creator> http://theli-test.livejournal.com/ </dc:creator>
  <dc:date> cmt_pubDate </dc:date>
  <dc:format> text/html </dc:format>

  <content>
    testing livejournals openid server
  </content>
</rdf:Description>
</rdf:li>

<rdf:li>
<rdf:Description rdf:about="#1197283744.4">
  <dc:source> http://snarfed.org/ </dc:source>
  <dc:title> pyblosxom OpenID comments </dc:title>
  <dc:creator> http://theli.is-a-geek.org/blog/ </dc:creator>
  <dc:date> cmt_pubDate </dc:date>
  <dc:format> text/html </dc:format>

  <content>
    sorry for one more test .. still debugging
  </content>
</rdf:Description>
</rdf:li>

<rdf:li>
<rdf:Description rdf:about="#1197285376.68">
  <dc:source> http://snarfed.org/ </dc:source>
  <dc:title> pyblosxom OpenID comments </dc:title>
  <dc:creator> http://theli.is-a-geek.org/blog/ </dc:creator>
  <dc:date> cmt_pubDate </dc:date>
  <dc:format> text/html </dc:format>

  <content>
    test one more time<br />
it;s a pity your provided openid_server is not providing sreg properly :(
  </content>
</rdf:Description>
</rdf:li>

<rdf:li>
<rdf:Description rdf:about="#1197286176.0">
  <dc:source> http://snarfed.org/ </dc:source>
  <dc:title> pyblosxom OpenID comments </dc:title>
  <dc:creator> http://theli.is-a-geek.org/blog/ </dc:creator>
  <dc:date> cmt_pubDate </dc:date>
  <dc:format> text/html </dc:format>

  <content>
    that strange ,,,, python-openid supplied consumer.py test successfully receives Full Name and Nickname fields of registration extension(i've modified your server plugin) ... however this doesn't happen here
  </content>
</rdf:Description>
</rdf:li>

<rdf:li>
<rdf:Description rdf:about="#1204092180.32">
  <dc:source> http://snarfed.org/ </dc:source>
  <dc:title> pyblosxom OpenID comments </dc:title>
  <dc:creator> smally </dc:creator>
  <dc:date> cmt_pubDate </dc:date>
  <dc:format> text/html </dc:format>

  <content>
    testing wordpress
  </content>
</rdf:Description>
</rdf:li>

<rdf:li>
<rdf:Description rdf:about="#1210703101.44">
  <dc:source> http://snarfed.org/ </dc:source>
  <dc:title> pyblosxom OpenID comments </dc:title>
  <dc:creator> kapil </dc:creator>
  <dc:date> cmt_pubDate </dc:date>
  <dc:format> text/html </dc:format>

  <content>
    This openid comment plugin no longer works with<br />
the recent python-openid library in which consumer.complete<br />
requires one additional argument which is the URL<br />
to return to.
  </content>
</rdf:Description>
</rdf:li>

<rdf:li>
<rdf:Description rdf:about="#1218615864.4">
  <dc:source> http://snarfed.org/ </dc:source>
  <dc:title> pyblosxom OpenID comments </dc:title>
  <dc:creator> http://xmppid.net/thief@jabbus.org </dc:creator>
  <dc:date> cmt_pubDate </dc:date>
  <dc:format> text/html </dc:format>

  <content>
    Just a test
  </content>
</rdf:Description>
</rdf:li>

<rdf:li>
<rdf:Description rdf:about="#1236498307.99">
  <dc:source> http://snarfed.org/ </dc:source>
  <dc:title> pyblosxom OpenID comments </dc:title>
  <dc:creator> test </dc:creator>
  <dc:date> cmt_pubDate </dc:date>
  <dc:format> text/html </dc:format>

  <content>
    tst
  </content>
</rdf:Description>
</rdf:li>

  </rdf:Seq>
</rdf:Description>
</rdf:RDF>
