The
OpenID Plugin provides
OpenID authentication for b2evolution.
You can use your OpenID (e.g.
http://daniel.hahler.de/) to register, login or comment on a blog where the plugin is installed.
It is planned to also act as an OpenID provider (so that you can use your blog as an OpenID directly), but that has no high priority, because you can use your URL already through delegation.
E.g. get your OpenID at
http://myopenid.com/ and then delegate there from your blog by adding the following line's into your skin's _main.php file:
If your OpenID provider supports XRDS, you can (but don't have to) add the following snippet at the top of your skin, before any output:
<?php
// Send XRDS header (OpenID 2.0):
header( 'X-XRDS-Location: <nowiki>http://YOURLOGIN.myopenid.com/xrds</nowiki>' );
// Test if this was a discovery request (and we can exit here):
if( isset($_SERVER['HTTP_ACCEPT']) && $_SERVER['HTTP_ACCEPT'] == 'application/xrds+xml' )
{
<nowiki>exit('<!-- Note: X-XRDS-Location: http://YOURLOGIN.myopenid.com/xrds sent.-->');</nowiki>
}
?>
In the HTML HEAD section add the following snippet:
<link rel="openid.server" href="http://www.myopenid.com/server" />
<link rel="openid.delegate" href="http://YOURLOGIN.myopenid.com/" />
For OpenID 2.0, which most providers should support nowadays, add:
<link rel="openid2.provider" href="http://www.myopenid.com/server" />
<link rel="openid2.local_id" href="http://YOURLOGIN.myopenid.com/" />
For more information about delegation, see
http://wiki.openid.net/Delegation.
Delegation does work with every OpenID provider, not just
MyOpenID. You can find a list of OpenID providers at
http://openid.net/wiki/index.php/Public_OpenID_providers. Chances are given that you already have an OpenID, e.g. through AOL or LiveJournal.
The plugin's source is hosted in the
Plugins Repository at:
http://evocms-plugins.svn.sourceforge.net/viewcvs.cgi/evocms-plugins/openid_plugin/.
You can download release packages at
the download page.
This plugin requires b2evolution 1.10 or later.
When I try to install this plugin in 1:10:02, I get the following error:
The plugin has not been enabled.
The source for randomness (/dev/urandom) is not available. Please configure it.