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.
<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
config variables to your
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
Just fill in any of these config variables in
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
You can override the default HTML by adding
openid-error templates for your flavour of choice. Example templates for the
html flavour are included in