Extension:MediaWikiAuth
From MediaWiki.org
|
Release status: experimental |
|||
|---|---|---|---|
| Implementation | User identity | ||
| Description | Transparently imports users from another wiki | ||
| Author(s) | Laurence Parry (GreenReaperTalk) | ||
| MediaWiki | 1.13+ recommended | ||
| License | GPL | ||
| Download | no link | ||
|
|||
|
check usage (experimental) |
|||
The MediaWikiAuth extension transparently logs a user in to a remote wiki, importing the user's account and preferences to the local wiki.
Contents |
[edit] What can this extension do?
This extension uses the MediaWiki API and AuthPlugin framework to direct login requests with no local account to a remote wiki, optionally checking against a table of users for which this should be attempted. The account and its preferences are imported, so the remote login only has be done once. If possible, the same internal user ID is preserved.
This extension is useful for moving a community from another wiki when you do not have access to the user account database. From a user perspective, it's like they already had an account on the local wiki.
[edit] Usage
Create and install MediaWikiAuth.php as specified below, set $wgMediaWikiAuthAPIURL for the remote wiki, and login using an account on the remote wiki which is not currently present on the local wiki.
[edit] Download instructions
Cut and paste the code found below and place it in $IP/extensions/MediaWikiAuth/MediaWikiAuth.php. Note: $IP stands for the root directory of your MediaWiki installation, the same directory that holds LocalSettings.php.
Then download Snoopy, extract Snoopy.class.php, and place it in the same directory.
[edit] Installation
To install this extension, add the following to LocalSettings.php:
$wgMediaWikiAuthAPIURL = 'http://path.to/w/api.php'; # Change this to the URL of the remote wiki's api.php require_once("$IP/extensions/MediaWikiAuth/MediaWikiAuth.php"); $wgAuth = new MediaWikiAuthPlugin();
[edit] Configuration parameters
- $wgMediaWikiAuthAPIURL
URL to the api.php file on the target wiki. Normally in the /w/ directory (e.g. http://www.mediawiki.org/w/api.php), but not always; for example, Wikia's is at http://www.wikia.com/api.php.
[edit] Code
# In development - to be released when feature-complete