Skip to content

GitHub mirror. Development happens at https://gerrit.wikimedia.org. Please see https://www.mediawiki.org/wiki/Developer_account if you wish to contribute.

License

GPL-3.0, GPL-3.0 licenses found

Licenses found

GPL-3.0
LICENSE
GPL-3.0
COPYING
Notifications You must be signed in to change notification settings

wikimedia/mediawiki-extensions-BlueSpiceArticlePreviewCapture

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

About

GitHub mirror. Development happens at https://gerrit.wikimedia.org. Please see https://www.mediawiki.org/wiki/Developer_account if you wish to contribute.

Resources

License

GPL-3.0, GPL-3.0 licenses found

Licenses found

GPL-3.0
LICENSE
GPL-3.0
COPYING

Code of conduct

Stars

Watchers

Forks

Packages

No packages published