Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/chdh/authjoomla
Joomla-MediaWiki authentication bridge
https://github.com/chdh/authjoomla
authentication bridge joomla joomla-plugin mediawiki mediawiki-extension
Last synced: 5 days ago
JSON representation
Joomla-MediaWiki authentication bridge
- Host: GitHub
- URL: https://github.com/chdh/authjoomla
- Owner: chdh
- License: mit
- Created: 2023-12-04T06:50:53.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-03-12T15:07:47.000Z (8 months ago)
- Last Synced: 2024-10-10T18:41:39.664Z (26 days ago)
- Topics: authentication, bridge, joomla, joomla-plugin, mediawiki, mediawiki-extension
- Language: PHP
- Homepage:
- Size: 667 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# AuthJoomla 2023
A Joomla-MediaWiki authentication bridge.
This project consists of two parts:
* `MediaWiki Login`: A Joomla plugin ([JED](https://extensions.joomla.org/extension/miscellaneous/misc-bridges/user-mediawiki-login/)) which sets a cookie in the users web browser.
* `AuthJoomla2023`: A MediaWiki extension which reads the cookie and automatically logs the user in.## Notes
A valid Joomla session allows access to the wiki, without having to log in into the wiki.
A wiki user profile is automatically created for the user on the first visit.This project is a successor of [AuthJoomla2](https://www.mediawiki.org/wiki/Extension:AuthJoomla2)
by [Harold Prins](https://www.haroldprins.nl/).
It's a complete rewrite done by
[Christian d'Heureuse](https://www.inventec.ch/chdh) in 2023.The configuration parameters are mostly the same as for AuthJoomla2.
## Joomla configuration
To install the Joomla plugin,
create a ZIP file from the two files in the `joomla` directory.
Or use the ZIP file `mediawikilogin-x.y.z.zip` from the [releases page](https://github.com/chdh/AuthJoomla/releases).
Upload and install this zip file as a Joomla extension.Configure the following parameters in the Joomla admin backend under "Extensions" / "Plugins".
* Secret Word for cookie crypto check: (choose your own secret word)
* MediaWiki cookie subdomain: empty if your Wiki uses the same domain (host) name as your Joomla, otherwise the name of the Wiki subdomain## MediaWiki configuration
Copy the files from the `mediawiki` directory to `wikifiles/extensions/AuthJoomla2023`.
Or use the content of the ZIP file `AuthJoomla2023-x.y.z.zip` from the [releases page](https://github.com/chdh/AuthJoomla/releases).Set the following parameters in LocalSettings.php:
```
$wgGroupPermissions['*']['read'] = false;
$wgGroupPermissions['*']['edit'] = false;
$wgGroupPermissions['*']['createaccount'] = false;
$wgGroupPermissions['*']['autocreateaccount'] = true;$wgAuthJoomla_security_key = '(secret word)'; // same as in Joomla
$wgAuthJoomla_TablePrefix = 'jos_'; // Joomla table name prefix$wgAuthJoomla_MySQL_Host = 'localhost'; // Joomla MySQL host name
$wgAuthJoomla_MySQL_Username = 'db-user'; // Joomla MySQL user name
$wgAuthJoomla_MySQL_Password = 'db-password'; // Joomla MySQL Password
$wgAuthJoomla_MySQL_Database = 'db-name'; // Joomla MySQL database namewfLoadExtension('AuthJoomla2023');
```Edit the special Wiki page `MediaWiki:Loginreqpagetext` and add a link to your Joomla login page.