OpenID Plus BbPress Plugin

The philosophy is simple — a seamless unified authentication using OpenID for bbPress.

As of now, if you place the OpenID URL input box on the login form, it will:

  1. Validate the OpenID provider’s URL.
  2. Redirect you to the OpenID for authentication.
  3. Will request at least your email address from your OpenID provider.
  4. Will log you in if you are previously registered with that email address.
  5. Will register you silently with a nick or first name if available from your OpenID provider/profile.
  6. Else will register using your email address as username.
  7. Will log you in on successful registration.
  8. Throw error if something goes wrong.

Note: Your OpenID provider must return at least your email ID for the registration or login to be successful.

Testing —

Now that you’ve come so far the first thing to do is to test it out.

  1. Logout
  2. Go to the Register page.
  3. Enter the URL of an OpenID provider where you have an account.
  4. Submit the form.
  5. A successful authentication shall redirect you to the forum, register you (if email address returned is different from the Administrator’s email)and log you in.
  6. If your OpenID providers returns the same email as your existing email in on this forum’s profile you’ll be logged in.

Customizing —

In order to further customize the login you may want to place the OpenID URL input box into the login template or the login form. This is what the code looks like. It is plain HTML.


<fieldset>
<legend>OpenID</legend>
<p>Optionally register/login via OpenID instead of a password:</p>
<label for="openid_url">OpenID URL</label>
<input id="openid_identity" name="openid_identity" />
[<a href="#openid" onclick="openid_help()">help</a>]
</fieldset>
  • Place the above code into the login.php template in your bbPress theme. This will integrate the OpenID box with the Login page.
  • Optionally place the above code into the login-form.php template in your bbPress theme. This will integrate the OpenID box with the Login widget which appears in the header of the default theme.

Help: Binary Turf Forums

X

Wordpress, Thesis, Genesis tutorials from Binary Turf — one tutorial a day. Subscribe & sharpen your web design skills.

Name:

Email:

We respect your email privacy.