snarfed.org

Ryan Barrett's blog

pyblosxom openid server

Wed, 20 Dec 2006 [comments (10)] [history] [rdf] [raw]

openid pyblosxom

For the impatient:
  Download openid_server.py or openid_server-0.4.tar.gz
  OpenID home page
  PyBlosxom home page

Updated 2007-09-23.

openid_server.py is a PyBlosxom plugin that implements OpenID 1.x and 2.0. OpenID is a distributed authentication protocol, ie a single sign on platform, that uses URLs as identifiers. If you have a PyBlosxom site, this plugin allows you to login anywhere that accepts OpenID.

This plugin also implements the Simple Registration Extension, which lets you optionally provide your name, email address, and other information automatically to sites that you log into with OpenID.

In OpenID terminology, this plugin acts as an an Identifer and Identity Provider. It provides an endpoint URL, handles OpenID requests on that endpoint, allows associations, and authenticates the user with an HTML form.

To use it, first download and install the Python OpenID libraries. Then, download openid_server.py and place it in your plugins directory. Finally, add this line to your flavour's head template:

<link rel="openid.server"
      href="$base_url$openid_trigger">


If you want to use SSL, hard-code your base url, like so:

<link rel="openid.server"
      href="https://snarfed.org$openid_trigger">


Finally, add the openid_password (required) and openid_trigger (optional) config variables to your config.py:

py['openid_password'] = 'topsecret!'
py['openid_trigger'] = '/openid'


Et voila! You should be good to go. Try it out on a friendly neighborhood OpenID-enabled blog near you, like maybe Scott Kveton's.

You can also provide your name, email address, and other information to sites that you log into with OpenID, using the Simple Registration Extension. Just fill in any of these config variables in config.py:

py['openid_nickname'] = 'ryan'
py['openid_email'] = 'ryan'
py['openid_fullname'] = 'Ryan Barrett'
py['openid_dob'] = '1901-01-01'
py['openid_gender'] = 'M'
py['openid_postcode'] = '90001'
py['openid_country'] = 'US'
py['openid_language'] = 'EN-us'
py['openid_timezone'] = 'America/Los_Angeles'


Default HTML is included for the endpoint, login, and error pages. For your CSS styling pleasure, it uses divs with the classes openid-info, openid-login, and openid-error.

You can override the default HTML by adding openid-info, openid-login, and openid-error templates for your flavour of choice. Example templates for the html flavour are included in openid_server-0.3.tar.gz.

openid_server.py is copyright 2006 Ryan Barrett, and is distributed under the GPL.

See also:

comment bubble OpenID http://theli.is-a-geek.org/blog/, Mon 10 Dec 2007

i don't know why but neither your comments nor server openid plugins are not working for me with registration extension ... so i've slightly modified them and have such setup working with
python-openid-2.0.1

comment bubble OpenID hdh, Thu 13 Dec 2007

test my setup

comment bubble OpenID lance, Sun 09 Mar 2008

Testing mine too.

comment bubble OpenID http://pmeerw.dyndns.org/blog, Sun 13 Apr 2008

test

comment bubble OpenID Fotios, Tue 10 Jun 2008

test

comment bubble OpenID AndCycle, Sun 21 Sep 2008

test

comment bubble OpenID AndCycle, Sun 21 Sep 2008

test

comment bubble OpenID Busby, Thu 29 Jan 2009

Testing my site
Busby @ seo test

comment bubble OpenID internet faxes, Tue 16 Jun 2009

I think it's work for me. Thanks

comment bubble OpenID mbt shoes, Fri 13 Nov 2009

The MBT Shoes which I bought in MBT Shoes Sale online,




I really like this pair of MBT 2009 shoes and Discount MBT Shoes.

Post a comment...



Simple HTML and wiki markup are allowed.