Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/llaumgui/mw-auth-flarum
MediaWiki extension using Flarum forum as auth provider
https://github.com/llaumgui/mw-auth-flarum
Last synced: about 6 hours ago
JSON representation
MediaWiki extension using Flarum forum as auth provider
- Host: GitHub
- URL: https://github.com/llaumgui/mw-auth-flarum
- Owner: llaumgui
- License: gpl-2.0
- Created: 2021-05-20T06:28:26.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-10-30T04:45:05.000Z (19 days ago)
- Last Synced: 2024-11-16T17:42:33.697Z (1 day ago)
- Language: PHP
- Size: 57.6 KB
- Stars: 5
- Watchers: 3
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# AuthFlarum
[![Author][ico-twitter]][link-twitter]
[![Software License][ico-license]](LICENSE)
[![Build Status][ico-ghactions]][link-ghactions]
[![MediaWiki Version][ico-mediawiki]][link-mediawiki]
[![Latest Version][ico-version]][link-packagist][![Quality Gate Status][ico-sonarcloud-gate]][link-sonarcloud-gate]
[![Maintainability Rating][ico-sonarcloud-maintainability]][link-sonarcloud-maintainability]
[![Reliability Rating][ico-sonarcloud-reliability]][link-sonarcloud-reliability]
[![Security Rating][ico-sonarcloud-security]][link-sonarcloud-security]Allows to connect to MediaWiki from an a ccount based on the [Flarum](https://flarum.org/) forum solution.
## Installation
1. Put code in extensions/AuthFlarum.
2. Enable extension :```php
wfLoadExtension( 'AuthFlarum' );
```## Configuration
### `$wgAuthFlarumUri`
URI of your Flarum instance.
Example:
```php
$wgAuthFlarumUri = 'http://localhost';
```### `$wgAuthFlarumAutoCreate`
Allow auto creation of MediaWiki account from Flarum ? Becarrefull, also Need
```php
$wgGroupPermissions['*']['autocreateaccount'] = true;
$wgGroupPermissions['*']['createaccount'] = false;
$wgGroupPermissions['sysop']['createaccount'] = false;
```Example:
```php
$wgAuthFlarumAutoCreate = true;
```### `$wgAuthFlarumAutoCreateMinPost`
Need a minimum number of posts to allow auto creation of MediaWiki account.
Example:
```php
$wgAuthFlarumAutoCreateMinPost = 100;
```[ico-twitter]: https://img.shields.io/static/v1?label=Author&message=llaumgui&color=000&logo=x&style=flat-square
[link-twitter]: https://twitter.com/llaumgui
[ico-mediawiki]: https://img.shields.io/static/v1?label=mediawiki&message=%E2%89%A51.36&color=cd1f44&logo=wikipedia&style=flat-square
[link-mediawiki]: https://www.mediawiki.org/
[ico-ghactions]: https://img.shields.io/github/actions/workflow/status/llaumgui/mw-auth-flarum/devops.yaml?branch=main&style=flat-square&logo=github&label=Tests
[link-ghactions]: https://github.com/llaumgui/mw-auth-flarum/actions
[ico-version]: https://img.shields.io/packagist/v/llaumgui/mw-auth-flarum.svg?include_prereleases&label=Package%20version&style=flat-square&logo=packagist
[link-packagist]: https://packagist.org/packages/llaumgui/mw-auth-flarum
[ico-license]: https://img.shields.io/github/license/llaumgui/mw-auth-flarum?style=flat-square
[ico-sonarcloud-gate]: https://sonarcloud.io/api/project_badges/measure?branch=main&project=llaumgui_mw-auth-flarum&metric=alert_status
[link-sonarcloud-gate]: https://sonarcloud.io/dashboard?id=llaumgui_mw-auth-flarum&branch=main
[ico-sonarcloud-maintainability]: https://sonarcloud.io/api/project_badges/measure?project=llaumgui_mw-auth-flarum&metric=sqale_rating
[link-sonarcloud-maintainability]: https://sonarcloud.io/dashboard?id=llaumgui_mw-auth-flarum
[ico-sonarcloud-reliability]: https://sonarcloud.io/api/project_badges/measure?project=llaumgui_mw-auth-flarum&metric=reliability_rating
[link-sonarcloud-reliability]: https://sonarcloud.io/dashboard?id=llaumgui_mw-auth-flarum
[ico-sonarcloud-security]: https://sonarcloud.io/api/project_badges/measure?project=llaumgui_mw-auth-flarum&metric=security_rating
[link-sonarcloud-security]: https://sonarcloud.io/dashboard?id=llaumgui_mw-auth-flarum