WordPress MediaWiki integration

£可爱£侵袭症+ 提交于 2019-11-28 18:02:43
ceejayoz

The tutorial WordPress, bbPress & MediaWiki should get you on the right track to integrating MediaWiki into your WordPress install. It's certainly going to be a lot easier than hacking WordPress to have wiki features, especially with the sort of granular permissions you're describing.

user209930

Both MediaWiki and Wordpress support OpenID:

http://www.wordpress.org/extend/plugins/openid/

http://www.mediawiki.org/wiki/Extension:OpenID

Though, I think for automatic logins (after you log in to one, you automatically log in to the other) you would need to look into implementing checkid_immediate

http://www.openid.net/specs/openid-authentication-2_0.html#anchor28

molave

WPMW, a solution for integrating a MediaWiki within a WordPress installation, might help.

A. Traviss Corry

Another solution is described in The CUNY Academic Commons Announces WPMu-MediaWiki Single Sign-on. It just creates something that uses the WordPress login as the master.

My company uses WordPress and MediaWiki internally and we use HTTP_AUTH access control to create a "single sign on". As we add more applications, we simply integrate them into the HTTP_AUTH system where practical. For security, you can run HTTP_AUTH over SSL. The basic steps are:

Configure the .htaccess to specify the authentication type. We use MySQL in production but you could have a simple htpasswd file.

In the WordPress directory's .htaccess file add the following:

  <Files wp-login.php>
    AuthType Basic
    AuthName "Restricted Access"
    AuthUserFile /some/path/to/htpasswd
    Require valid-user
  </Files>

In the WordPress wp-admin/ directory's .htaccess add the following:

  AuthType Basic
  AuthName "Restricted Access"
  AuthUserFile /some/path/to/htpasswd
  Require valid-user

In the MediaWiki directory's .htaccess file add the following:

  AuthType Basic
  AuthName "Restricted Access"
  AuthUserFile /some/path/to/htpasswd

Then install the HttpAuth extension for MediaWiki and the HTTP Authentication plugin for WordPress and configure. We had to make some slight modifications to the MediaWiki extension as our hosting environment does not provide mod_php but if you have mod_php it will work out of the box.

Note that our environment is a private intranet so everyone is authenticated. The above .htaccess files will work for publicly viewable blogs but some additional tweaking may be required for the MediaWiki .htaccess depending on whether you want everyone to be required to be authenticated or not and if the site is publicly available.

Erik

Have a look at Wikiful, a WordPress plugin that bridges MediaWiki and WordPress. That might do the trick for you.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!