b2evolution b2evolution

  • Sign in
  • Sign up
  • About
  • Downloads
  • Hosting
  • Docs
  • Support
  • Sign in
  • Sign up
  • Releases
  • Skins
  • Plugins
  • Locales
 
  • « LiveJournal Importer
  • Blogalaxia Tags »

OpenID

Categories: 1.10, 2.x & above, Misc, Downloadable Plugin
The OpenID Plugin provides OpenID authentication for b2evolution.
Author@blueyed
Last tested in version

Consumer

You can use your OpenID (e.g. http://daniel.hahler.de/) to register, login or comment on a blog where the plugin is installed.

Provider

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.

Location

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.

Requirements

This plugin requires b2evolution 1.10 or later.
Tags: download file available

5 comments

Comment from: Charles LePage Visitor

Charles LePage

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.

2007-12-18 @ 08:56

Comment from: Fraser Pearce Visitor

Fraser Pearce

I can’t use this plugin as it causes an error when I try to install it:

Additional information about this error:

MySQL error!

Specified key was too long; max key length is 1000 bytes(Errno=1071)

Your query:
CREATE TABLE evo_plugin_openid_28_assoc (
server_url BLOB,
handle VARCHAR(255),
secret BLOB,
issued INTEGER,
lifetime INTEGER,
assoc_type VARCHAR(64),
PRIMARY KEY (server_url(255), handle) )

2007-12-28 @ 16:54

Comment from: dAniel hAhler Visitor

dAniel hAhler

Charles, yes, you need to configure it: refer to the plugin settings.

Fraser, this looks like your MySQL default charset uses more than one byte per character (e.g. utf8). Since MySQL the length gets interpreted as characters instead of bytes and therefor the primary key gets too long.
This is only the case for the MyISAM DB engine.

So, the fix appears to be adding “CHARACTER SET latin1″ or “ENGINE=InnoDB” at the end of the CREATE TABLE block.
The patch is here: http://evocms-plugins.svn.sourceforge.net/viewvc/evocms-plugins/openid_plugin/trunk/_openid.plugin.php?r1=582&r2=581&pathrev=582

2007-12-28 @ 22:00

Comment from: Fraser Pearce Visitor

Fraser Pearce

Sweet, that worked a treat. Cheers!

2007-12-29 @ 13:01

Comment from: Mikle Visitor

Mikle

Plugin does’t work with any user’s accounts exept admin. (b2evo 1.10.2)

User can’t login in blog ("wrong password") after linking openid to profile.

Plugin doesn’t create additional rows in “evo_plugin_openid_28_user_openid” table.

Is it possible to fix it?

2008-01-03 @ 13:12


Form is loading...

Plugin Repository

Plugins are little PHP scripts that allow you to add features that are not (yet) built into the b2evolution core.

How to...

  • Introduction to Plugins
  • How to install a plugin (after downloading it)
  • How to make a new plugin
 Upload a plugin!
Submit your own plugin

User log in

Lost your password?
Register »

Search by keyword

Filtering options

Retain only results that match:

XML Feeds

  • RSS 2.0: Posts, Comments
  • Atom: Posts, Comments
What is RSS?

About b2evolution

  • What is it?
  • Features
  • Getting Started
  • Screenshots
  • Online demo
  • Testimonials
  • Design philosophy
  • Free & open source
  • Terms of service

Downloads

  • Latest releases
  • Skins
  • Plugins
  • Language packs

About us

  • About us
  • Contact

Webhosting Guide

  • Web hosting blog
  • Best web hosting
  • Cheap web hosting
  • Green web hosting
  • Hosting with SSH
  • VPS hosting
  • Dedicated servers
  • Reseller hosting
  • Int'l: UK / France

Docs & Support

  • Online manual
  • Forums
  • Hire a pro !

Other

  • Adsense
  • Press room
  • Privacy policy

Stay in touch

  • GitHub
  • Twitter
  • Facebook
  • LinkedIn
  • News blog
  • RSS feed
  • Atom feed

Founded & Maintained by François Planque