Greg Hewgill (ghewgill) wrote,
Greg Hewgill

openid login on moinmoin 1.7.0

The MoinMoin wiki software recently released version 1.7.0 which supports OpenID. I just upgraded to this version for OpenID support, and wanted to share my notes with anybody who might be trying the same thing.

The first job is to ugprade the MoinMoin software. The HelpOnUpdating page gives the information you need. The upgrade procedure is a bit detailed, so pay attention to the instructions. I also had to edit my Apache httpd.conf file to change some aliases that were pointing to 1.6.0 things. Make sure that the new 1.7.0 still works correctly before moving on.

Note that Johannes Berg's notes here don't tell the full story. I found that page first but it didn't give me enough context to enable OpenID.

The page you really want to read is HelpOnAuthentication. Scroll down to the OpenID section. Add the following lines to your

    from MoinMoin.auth.openidrp import OpenIDAuth
    auth = [OpenIDAuth()]
    anonymous_session_lifetime = 60

Now go to your wiki login page. You may also have to install the following Python modules if you get "module not found" errors:

I installed the above modules using FreeBSD Ports, from security/py-openid and devel/py-elementtree.

Finally, when attempting to log in you may get an error saying "complete() got an unexpected keyword argument". This bug was recently reported by somebody else on the MoinMoinBugs page here. I haven't investigated why this happened, but the fix is easy. Edit the file (in a path something like /usr/local/lib/python2.4/site-packages/MoinMoin/auth) and change the offending line to read:

info = oidconsumer.complete(query, current_url=return_to)

OpenID login now works on my wiki.


  • 2013 in review

    2013 is the year when everything changed. The biggest event was the birth of our daughter Lily. She was born prematurely in Shanghai while we…

  • 2012 in review

    2012 has been fairly quiet. Maybe it just seems that way because I haven't actually written anything new in this blog since last year's annual…

  • new photo galleries

    I've been busy processing photo galleries from the last year (or two) and putting them online for your perusal. Vancouver 2010 Northland…

  • Post a new comment


    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded