Greg Hewgill (ghewgill) wrote,
Greg Hewgill
ghewgill

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 wikiconfig.py:

    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 openidrp.py 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.

  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 2 comments