I've recently got this working with the tips from @Diego_Morientez re the plugin not matching a subdirectory.
centos/apache
Was only concerned with staff login so:
Here's how you extract/pack files from phar:
1st have to set the ability to write phars changing readonly to oFF in /etc/php.ini
;phar.readonly = On
phar.readonly = Off
then go to where u keep the phar file. Create a tmp dir
mkdir t
cd t
phar extract ../auth-openid-MS.phar
you get:
authentication.php
config.php
openid-MS.phar
openid_ms.php
edit openid_ms.php
for me was ( swap SUB_NAME for your subdir)
39c39
< if ($_COOKIE['LOGIN_TYPE'] === 'STAFF') header('Location: /SUB_NAME/scp/login.php');
if ($COOKIE['LOGIN_TYPE'] === 'STAFF') header('Location: /scp/login.php');
53c53< if ($_SERVER['SCRIPT_NAME'] === '/SUB_NAME/scp/login.php' || $_SERVER['SCRIPT_NAME'] === '/open.php') {
if ($SERVER['SCRIPT_NAME'] === '/login.php' || $SERVER['SCRIPT_NAME'] === '/open.php') {
137c137< if ($_SERVER['SCRIPT_NAME'] === '/SUB_NAME/scp/login.php') {
if ($_SERVER['SCRIPT_NAME'] === '/scp/login.php') {
Now. re-pack -
phar pack -f new_phar.phar *.php
now make a copy of original
cd ../
cp auth-openid-MS.phar auth-openid-MS-original.phar
cp t/new_phar.phar auth-openid-MS.phar
The next part is you need to make sure the agent has auth "any_available_" if not already set.