Extension:GoogleAppsAuthentification

This extension finaly allows a MediaWiki setup to be hooked to Google Apps - when a user logs in, he is automatically redirected to his Google App' login page, and the account is created. Nothing more !

Note : The extension completely disables all other means of authentification (that was our need), so if this is not good for you you might need to adjust.

Installation

 * 1) Create a folder in $IP/extension/GoogleAppsAuthentification
 * 2) Copy paste the code bellow in a file that you can name GoogleAppsAuthentification.php for example
 * 3) Download the modified OpenId library from http://a32.me/2011/03/google-apps-as-single-authentication-point-for-your-corporate-applications/ and unzip it so that you have $IP/extension/GoogleAppsAuthentification/Auth with the two sub folders : OpenID and Yadis.
 * 4) * NB : this is not the same as http://www.janrain.com/openid-enabled - the modified version is compatible with Google Apps, not the original one from Janrains !
 * 5) Create a temp folder and adjust the rights in $IP/extension/GoogleAppsAuthentification/tmp (this is necessary for the nonce to be stored localy)
 * 6) Edit your LocalSettings.php in order to add :

Source code to paste into $IP/extensions/GoogleAppsAuthentification/GoogleAppsAuthentification.php:

Credits
Created by Bertrand Gorge and Emanuele Nanetti - http://www.crossknowledge.com/, with the help of Tanguy Deleplanque.

Original artwork largely inspired from http://a32.me/2011/03/google-apps-as-single-authentication-point-for-your-corporate-applications/ and Extension:CASAuthentication