r88186 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r88185‎ | r88186 | r88187 >
Date:14:26, 15 May 2011
Author:wikinaut
Status:deferred
Tags:
Comment:
updated installation section in the readme
Modified paths:
  • /trunk/extensions/OpenID/README.OpenID-mediawiki-extension (modified) (history)

Diff [purge]

Index: trunk/extensions/OpenID/README.OpenID-mediawiki-extension
@@ -1,5 +1,6 @@
22 MediaWiki OpenID extension
33
 4+homepage and manual http://www.mediawiki.org/wiki/Extension:OpenID
45 version 0.9.1
56 15 May 2011
67
@@ -37,7 +38,6 @@
3839
3940 Copyright 2006,2007 Internet Brands (http://www.internetbrands.com/)
4041 Copyright 2008 Evan Prodromou (http://vinismo.com/en/User:Evan)
41 -Copyright 2011 Thomas Gries
4242
4343 This program is free software; you can redistribute it and/or modify
4444 it under the terms of the GNU General Public License as published by
@@ -53,11 +53,12 @@
5454 along with this program; if not, write to the Free Software
5555 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
5656
57 -== Author ==
 57+== Authors ==
5858
5959 Evan Prodromou <evan@vinismo.com>
6060 Patches for YADIS support and FileStore storage by Jonathan Daugherty
6161 <cygnus@janrain.com>.
 62+Thomas Gries
6263
6364 == Pre-requisites ==
6465
@@ -69,7 +70,9 @@
7071
7172 http://www.openidenabled.com/php-openid/
7273
73 -It requires patches when running with PHP 5.3.x and later.
 74+Unfortunately, tt requires patches when running with PHP 5.3.x and later.
 75+The download from the above Url and the patch will be automatically done
 76+when you run "make" (see next section).
7477
7578 The version tested with is 2.2.2; '''versions below 2.0 will not work'''.
7679
@@ -77,20 +80,55 @@
7881 for details. This software has been tested with the gmp and curl PHP extensions
7982 installed, and it's recommended that you install them, too.
8083
 84+/* FIXME: */
8185 Note that some versions of MediaWiki overwrite the PHP library path in
8286 LocalSettings.php. You may need to add the path to your PHP library directory
8387 to the $path variable, like "/usr/share/php" or "/usr/local/share/php".
8488
8589 == Installation ==
8690
87 -To install, copy all the files in the archive you downloaded to the OpenID
88 -subdirectory of the extensions subdirectory of your MediaWiki installation. Note
89 -that the software depends on having its code all in the "OpenID" sub-directory;
90 -naming it "OpenID-Test" or "newextension1" or whatever won't work.
 91+The repository downloader can be accessed by:
9192
 93+ http://www.mediawiki.org/wiki/Special:ExtensionDistributor/OpenID
 94+
 95+To install the MediaWiki extension, download the MediaWiki extension tarball
 96+to your extensions subdirectory $IP/extensions of your MediaWiki installation,
 97+$IP being the directory of your LocalSettings.php, and untar the package to
 98+the subdirectory $IP/extensions/OpenID.
 99+
 100+The following examples shows the step for extension revision r######:
 101+
 102+ cd $IP/extensions
 103+ wget http://upload.wikimedia.org/ext-dist/OpenID-trunk-r#####.tar.gz
 104+ tar -xzf http://upload.wikimedia.org/ext-dist/OpenID-trunk-r#####.tar.gz
 105+
 106+Remark:
 107+
 108+Note that the software currently depends on having all its code in the "OpenID"
 109+sub-directory; naming it "OpenID-Test" or "newextension1" or whatever
 110+won't work.
 111+
 112+A makefile is included which now automates the second step, the installation of
 113+the php-openid library (MediaWiki OpenID depends on the OpenIDEnabled.com PHP
 114+library for OpenID, which in turn depends on the OpenIDEnabled.com PHP library
 115+for YADIS).
 116+
 117+Download and patch of openid library:
 118+
 119+ cd $IP/extensions/OpenID
 120+ make
 121+
 122+The makefile downloads the openid-php library from http://www.openidenabled.com/php-openid/
 123+and applies a patch to avoid PHP errors because Call-time pass-by-reference is deprecated
 124+since PHP 5.3.x see https://github.com/openid/php-openid/issues#issue/8 and
 125+the patch and fork of user kost https://github.com/openid/php-openid/pull/44/files
 126+
92127 Run update.php script in in your MediaWiki maintenance folder to create
93 -necessary tables in MediaWiki database.
 128+necessary tables in MediaWiki database:
94129
 130+ cd $IP/maintenance
 131+ php update.php
 132+
95133 Version 0.3 and below of this extension used a different database structure
96134 that was pretty inefficient. If you installed this extension before, you should
97135 copy the optionToTable.php script to your MediaWiki "maintenance" directory and
@@ -302,13 +340,21 @@
303341 is for them.
304342
305343 * $wgOpenIDAllowServingOpenIDUserAccounts -- defaults to false.
306 - Having this enabled, it allows User page URLs from this wiki
307 - as OpenID identities on other arbitrary OpenID-aware sites -
308 - even when using OpenID to login on this wiki.
309 - Some users might want to do that for vanity purposes or whatever.
 344+*
 345+ Having this enabled, it allows to use Urls of this wiki's users' pages
 346+ as OpenID identities on other OpenID-aware sites even when OpenID(s) are
 347+ associated with user accounts on this wiki. Some users might want to do that
 348+ for vanity purposes or whatever.
 349+
310350 False prevents the serving of User page URLs as OpenID accounts
311 - on other sites (this was an TODO list item).
 351+ on other sites.
 352+
 353+ Remark:
312354
 355+ User page urls can (currently) only act as OpenID if the User page is existing,
 356+ i.e. has content, the mere existence of a user account is (currently) not
 357+ sufficient.
 358+
313359 * $wgOpenIDShowProviderIcons -- defaults to false due to potential
314360 brand issues. With this enabled, users will see button graphics
315361 instead of just links in OpenID provider UI.
@@ -323,10 +369,9 @@
324370
325371 == Translation ==
326372
327 -The user interface strings for this extension are configurable through
328 -the same Special:Allmessages page as MediaWiki itself. They all start
329 -with "openid", and they're no more or less cryptic than MediaWiki's.
330 -You can look at OpenID.i18n.php for some details.
 373+The user interface strings for this extension are configurable and all start
 374+with "openid". See OpenID.i18n.php for details. Translation is done via
 375+translatenet wiki, as usual.
331376
332377 == OpenID services ==
333378

Follow-up revisions

RevisionCommit summaryAuthorDate
r88220Followup r88186: trying to be consistent how we are called :)nikerabbit09:44, 16 May 2011

Status & tagging log