OpenID
All our wikis can be used with local accounts. However, it may be useful to use an OpenID login if you have one.
OpenID is a mechanism to log into multiple site with a single user name and password.
An important place to check is openid.net where you may find that you already have an openID from one of the services listed.
Experiences:
- Gregor:
- As of 2008-07, flickr did not seem to work yet.
- Yahoo did, if you have an account, navigate to http://openid.yahoo.com/ and enable it for use as openID. In my case only a user-chosen name did work (https://me.yahoo.com/NAME_I_SPECIFIED). Yahoo only support OpenID 2.0, some sites may yet support older OpenID versions (but our wikis support 2.0).
- Google: Either create a blog for your account on blogger.com (login with your google id) or go to http://openid-provider.appspot.com/ and login once with your google id.
Documentation of the work in 2012, reenabling http://www.mediawiki.org/wiki/OpenID:
sudo apt-get install php5-gmp # now also added to base php installation list, may thus not be necessary next time
cd /usr/share/mediawiki20/extensions/OpenID
sudo make
# adding to LocalSettings: require_once( "$IP/extensions/OpenID/OpenID.php" );
# run update to create a new DB table:
cd /var/www/testwiki_v20; sudo -u www-data php ./maintenance/update.php --quick --conf ./LocalSettings.php
Edit http://biowikifarm.net/testwiki_v20/index.php?title=MediaWiki:Openidlogin&action=edit and change text to "Use OpenID".
Presently running (Version 1.004 20120427)
Problem: Displays: "All users need a nickname; you can choose one from the options below." but only one option is available: "Username and account choice: An existing account on this wiki"
General problem: OpenID does not allow verification through ConfirmAccount?
Settings:
$wgOpenIDClientOnly=true # true = user accounts on this wiki *cannot* be used as OpenIDs on other sites.
$wgOpenIDClientOnly=false # the MediaWiki can act both as OpenID consumer and server -> TRY LATER. goes with:
$wgTrustRoot = "http://biowikifarm.net/";
Memo: in all wikis, change (misleading message "You are encouraged to log in; however, it is not mandatory", problem already in 1.18: http://biowikifarm.net/test_v20/MediaWiki:Tooltip-pt-anonlogin http://biowikifarm.net/test_v20/MediaWiki:Tooltip-pt-login
Update in MW 1.20.2
-
sudo apt-get install php5-gmp # now also added to base php installation list, may thus not be necessary next time cd /usr/share/mediawiki20/extensions/OpenID sudo make # ?necessary AP
- activate the extension:
require_once( "$IP/extensions/OpenID/OpenID.php" ); $wgOpenIDShowProviderIcons=true; $wgTrustRoot = "http://terms.gbif.org/";// add the correct root URL of the wiki site
- copy SQL structure of table testwiki_v20.user_openid to the database you want to upgrade (use phpmyadmin’s Export tab and feature (*) Drop table if exist)
OR# run update to create a new DB table: cd /var/www/path-to-the-wiki; sudo -u www-data php ./maintenance/update.php --quick --conf ./LocalSettings.php
- edit MediaWiki:Openidlogin to e.g.: “Use OpenID”
- problems with authentication if $wgTrustRoot is set incorrectly