Extension:JanrainEngage

From MediaWiki.org
Jump to: navigation, search
MediaWiki extensions manual - list
Crystal Clear action run.png
JanrainEngage

Release status: beta

Implementation User identity, Special page
Description An extension for MediaWiki that allows single-signon through Google, Twitter, Facebook, OpenID, Linkedin, and Yahoo!. It is powered by JanrainEngage.
Author(s) Valkyrie Savage (parmesan002Talk)
Last version 0.7.15 (5 April 2011)
MediaWiki 1.16 (tested here)
License Creative Commons
Download https://github.com/valkyriesavage/janrain-engage-extension-for-MediaWiki
https://github.com/valkyriesavage/janrain-engage-extension-for-MediaWiki/blob/master/README
https://github.com/valkyriesavage/janrain-engage-extension-for-MediaWiki/commits/master
Example http://wiki.fearlesstost.com/
Parameters

$wgJERpxApiKey

Tags
SSO
Hooks used
UserLoginForm

UserLogout

Check usage (experimental)

Contents

[edit] What can this extension do?

The JanrainEngage extension will add another means of logging in for the wiki it is installed on. Depending on which services you enable when you sign up for a JanrainEngage API key, this means that your wiki users can log in using credentials from Google, OpenID, Facebook, Linkedin, Twitter, PayPal, etc. Credentials can be unlinked at any time by visiting the page Special:JanrainEngage. More than one set of credentials can be linked to the same wiki user account.

[edit] Usage

By simply plugging in your JanrainEngage API key and the proper include line to your LocalSettings.php, this extension will add a new box to the sign in page and a new Special:JanrainEngage page.

[edit] Download instructions

The code for this extension is available in from my (valkyriesavage) GitHub page; the repo is called janrain-engage-extension-for-MediaWiki.

You can simply run these lines from your command prompt to get the code:

$ git clone git://github.com/valkyriesavage/janrain-engage-extension-for-MediaWiki.git
$ cp janrain-engage-extension-for-MediaWiki /path/to/your/mediawiki/extensions/JanrainEngage

[edit] Installation

To install this MediaWiki extension, you will first have to go to janrain.com and get an API key for working with Janrain Engage. It's free! Just make sure to add your domain to the domains that it will accept tokens from under Your Domains->manage.

require_once('extensions/JanrainEngage/JanrainEngage.php');
$wgJERpxApiKey = "<yourapikey>";

[edit] Configuration parameters

$wgJERpxApiKey

This is the API key the extension will use to get the users' identifiers when they log in via Janrain Engage.

Personal tools
Namespaces

Variants
Actions
Navigation
Support
Download
Development
Communication
Print/export
Toolbox