Adam Lowry's Robotic Archive

'\n'.join([entry.text for entry in adam.blog])

Home | About

Entries tagged “openid”

OpenID for Zine

written by Adam Lowry, on Mar 1, 2009 8:01:00 PM.

Continuing my experiments with Zine I finished an initial go at an OpenID plugin. The plugin requires the python-openid library (2.2.1 was all I tested) and Zine 0.1.2.

There's certainly room for improvement with the experience, and it's currently only using the FileOpenIDStore; this will need to be replaced with a database-backed store.

If you'd like to take a look at the code, it's up on BitBucket. It's incredibly not done (it'll fail if you cancel the OpenID process, for example)—but it "works."

Writing my first Zine plugin

written by Adam Lowry, on Feb 22, 2009 6:00:00 PM.

It's been quite a long time since I decided I wanted to get back in to blogging. Part of my hesitation was my existing multi-user ancient installation of Drupal, which made me immensely angry every time I looked at it. Since I couldn't ditch it while other people were using it, it stayed while I toyed around with the idea of writing my own blog in Django or with the Werkzeug/Jinja2/SQLAlchemy combination I've been digging at work. While I was considering it, Armin Ronacher of Werkzeug fame went ahead and released one, Zine. Digging through the code reveals a gold mine of Python gems, and setting it up was easy (with the caveat that I run it on a VPS and know my way around Python and Apache).

My first attempt at a plugin is quite simple--it's just a couple of config options to declare OpenID delegation URLs and display them in the HTML head. If you'd like to take a look, the OpenID delegation plugin is on BitBucket. I tested with Zine 1.2. Once I clean it up some more I'll bundle it for installation on other blogs. And later, I plan on working with Ben to see about creating an OpenID relying party plugin.