Extension:Swekey

What can this extension do?
This extension adds support for the swekey authentication USB key. When this extension is enabled any swekey owner can choose to secure its login with his swekey. Once secured, the user won't be able to login without his swekey plugged in his computer.

How it works
This extension adds a little key logo at the right of the 'username' input box of the login form. When the key is gray it means that there is no swekey plugged, if it turns green a swekey is detected.

The first time a user will plug its swekey in its computer while he his logged an alert will popup asking him to attach the plugged swekey to his account.

If the user confirms, the swekey is attached to the account.

Once a swekey is attached to an account the following features will be available:


 * When your swekey is plugged the login dialog will automatically fill the 'username' input box.
 * You won't be able to login without the swekey plugged.
 * If you unplug your swekey while you are logged, you are automatically logged out.
 * You can detach the swekey from your account in your profile.

Administrators can attach/detach swekeys to/from a user account using the user settings dialog.

Pre-requisites
This software has been tested in production with MediaWiki 1.13.x. It may or may not work with earlier or later versions, but I'm interested in making later versions work, and I'd be happy to make minor changes to make older, unsupported versions work too.

Installation and Download

 * 1) Download source from http://ftp.swekey.com/mediawiki-swekey-1.13-1.0.0.tar.gz
 * 2) Copy the swekey folder into the   folder of your MediaWiki installation.
 * 3) Change the LocalSettings.php file as described below.

Changes to LocalSettings.php
Add the following to LocalSettings.php: