MediaWiki

You can integrate MediaWiki with the OpenID Connect protocol. This way you can authenticate to MediaWiki with your Group-Office account.

Take these steps to install:

  1. Install and configure MediaWiki

  2. Install the required PluggableAuth extension

  3. Install the required OpenIDConnect extension

  4. Create OAuth client in Group-Office in System Settings -> OAuth 2.0:

    • Client ID: mediawiki

    • Check “Is confidential”

    • Enter a secret password.

    • Redirect URI to MediaWiki:

      http://example.com/index.php/Special:PluggableAuthLogin
      

      Note

      Be careful it could be localized. In Dutch it was “Speciaal:PluggableAuthLogin”

  5. Edit Mediawiki’s LocalSettings.php and add to the bottom:

    wfLoadExtension( 'PluggableAuth' );
    wfLoadExtension( 'OpenIDConnect' );
    
    $wgGroupPermissions['*']['autocreateaccount'] = true;
    $wgGroupPermissions['*']['createaccount'] = true;
    
    //automatically login when logged in to Group-Office
    $wgPluggableAuth_EnableAutoLogin = true;
    
    // The above doesn't work when enabling local logins!
    $wgPluggableAuth_EnableLocalLogin = false;
    
    $wgOpenIDConnect_Config['<<GROUPOFFICE_URL>>/api/oauth.php'] = [
        'clientID' => 'mediawiki',
        'clientsecret' => '<<CLIENT SECRET from GROUP OFFICE Oauth 2.0 module>>',
        'scope' => array( 'openid')
    ];
    
  6. Optionally, you can use the bookmarks module to add the wiki page as a module page.