A MediaWiki extension that implemented DiscourseConnect consumer, allows your MediaWiki instance login with Discourse account, and more features are working in progress.
-
Download this repo in a directory called
DiscourseConnect
in the MediaWiki extensions folder -
Load extension in
LocalSettings.php
wfLoadExtension( 'DiscourseConnect' ); # replace below values with your own detail $wgDiscourseConnectSecret = 'some-secret'; $wgDiscourseConnectEndpoint = 'https://your.discourse.domain/session/sso_provider';
-
Run
php maintenance/update.php
to update extensions schema -
All done
The discourse connect provider secrets
setting from Discourse
-
optional: false
-
type: string
-
default: null
-
eg:
$wgDiscourseConnectSercet='some-secret';
The DiscourseConnect endpoint of your Discourse instance
-
optional: false
-
type: string
-
default: null
-
eg:
$wgDiscourseConnectEndpoint='https://your.discourse.domain/session/sso_provider';
Enable local password login, local password login will be disable by default when enable this extension.
-
optional: true
-
type: boolean
-
default: false
-
eg:
$wgDiscourseConnectEnableLocalLogin=true;
Mapping user between Discourse to Mediawiki.
-
optional: true
-
type: array
-
default: null
-
eg:
$wgDiscourseConnectUserMapping=[ // discourse_id => mediawiki_username 1 => 'admin', 2 => 'staff' ] $wgDiscourseConnectUserMapping[3]='moderator'
$wgDiscourseConnectEnableLocalProperites
populate Discourse properties$wgDiscourseConnectGroupMapping
mapping group between Discourse and MediaWiki
Visit Special:AllMessages
at your MediaWiki instance then filter using discourseconnect
prefix.
- Populate Discourse properties(groups, realname, email...)
- Accept Discourse WebHook to update properties
- Add unite tests
- Replace the default talk function of MediaWiki