MediaWiki extension BlueSpiceArticlePreviewCapture

Clone this repo:
  1. 29b2580 build: Updating mediawiki/mediawiki-codesniffer to 43.0.0 by libraryupgrader · 11 days ago master
  2. 7606aad build: Updating grunt-banana-checker to 0.11.1 by libraryupgrader · 6 weeks ago
  3. c93fc17 build: Updating npm dependencies by libraryupgrader · 7 weeks ago
  4. e3219b4 build: Updating npm dependencies by libraryupgrader · 8 weeks ago
  5. cf8d6bf Fix registration of ForeignFileRepo by d.savuljesku · 3 months ago

Setup

When using mod_auth_kerb and "Extension:Auth_remoteuser" you need to do the following:

In apache's vhost config, make sure that calls from 127.0.0.1 are not blocked by mod_auth_kerb:

<VirtualHost *:443>
	...
	<Directory /var/www/bluespice>
		...
		<RequireAny>
			AuthType Kerberos
			...
			Require ip 127.0.0.0/255.0.0.0 #PhantomJS
		</RequireAny>
	</Directory>
	...

Also set in LocalSettings.php:

$bsgArticlePreviewCapturePhantomJSBaseUrl = 'http://localhost';

For "Extension:Auth_remoteuser" configure

$wgAuthRemoteuserUserName = [
	isset( $_SERVER[ 'REMOTE_USER' ] ) ? $_SERVER[ 'REMOTE_USER' ] : '',
	$_SERVER[ 'REMOTE_ADDR' ] == '127.0.0.1' ? $_COOKIE['<cookieprefix>RemoteToken'] : '', //e.g. PhantomJS
	...
];

Be aware that <cookieprefix> must be set to a valid value!

If you want to use symfony-process as a backend for PhantomJS, make sure that you have installed needed package. You can do it easily by adding symfony/process package into your composer.lock and run composer install