Extension:Cas
Appearance
This extension requires the PluggableAuth extension to be installed first.
Cas Release status: stable |
|
---|---|
Implementation | User identity , User rights |
Description | Extends the PluggableAuth extension to provide authentication using an Cas server |
Author(s) | mathieu.hetru_AT_univ-lille.fr |
Latest version | 1.0.0 (2023-08-07) |
Compatibility policy | Snapshots releases along with MediaWiki. Master is not backward compatible. |
MediaWiki | 1.35+ |
PHP | 7.3+ |
Database changes | Yes |
License | GNU General Public License 2.0 |
Download | GitHub: Note: |
|
|
Translate the Cas extension | |
The Cas extension provide authentication using an Cas server. It provides a layer on top of the PluggableAuth extension to enable authentication via Cas protocol.
Compatibility
[edit]Cas | PluggableAuth | MediaWiki | ||
---|---|---|---|---|
1.0+ | 7.0+ |
|
Configuration
[edit]See https://github.com/l3-team/mediawiki-extensions-cas/blob/master/README.md
Connection button
[edit]Follow the steps below to enable the button of connection cas.
- Set the following in your LocalSettings.php:
$wgPluggableAuth_ButtonLabel = 'Se connecter avec CAS';
$wgPluggableAuth_Config['Se connecter avec CAS'] = [
'plugin' => 'Cas',
'data' => []
];
$wgPluggableAuth_EnableAutoLogin = false;
$wgPluggableAuth_EnableLocalLogin = true;
$wgPluggableAuth_EnableLocalProperties = false;
Installation
[edit]This extension requires the PluggableAuth extension.
- Download and place the file(s) in a directory called
Cas
in yourextensions/
folder. - Only when installing from Git, run Composer to install PHP dependencies, by issuing
composer install --no-dev
in the extension directory. (See task T173141 for potential complications.) - Add the following code at the bottom of your LocalSettings.php file:
$wgGroupPermissions['*']['autocreateaccount'] = true; wfLoadExtension( 'PluggableAuth' ); wfLoadExtension( 'Cas' );
- Configure as required.
- Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.