Selective authority proxy (aka TST stafflogin)

Something else for Armagetron? Goody!
Post Reply
epsy
Adjust Outside Corner Grinder
Posts: 2006
Joined: Tue Nov 07, 2006 6:02 pm
Location: paris
Contact:

Selective authority proxy (aka TST stafflogin)

Post by epsy »

Purpose
This script allows you to setup an authority that will only authorize certain users depending on their GID while allowing them to use their regular password, securely.

Usage for users

Code: Select all

/login [email protected]/yourauthority
For instance, if I'm [email protected] and I use tst.armagetron.co.uk/staff as proxy:

Code: Select all

/login [email protected]/staff/forums
Log in using your regular password.

Installation
Place stafflogin.php at where you want your authority to be (without the /armaauth/0.1/ part) and throw this in your .htaccess (replacing paths):

Code: Select all

RewriteRule ^(.+)/armaauth/0\.1/? /absolute/sytem/path/to/stafflogin.php?foreignauthority=$1 [QSA,L]
RewriteRule ^(.+)/armaauth/0\.1/?\??(.*) /absolute/sytem/path/to/stafflogin.php?foreignauthority=$1&$2 [QSA,L]
Telling the script who is allowed to get through is done through the $allowed array at the very beginning of the file.

Licensing
This is GPL-licensed and shares authors with armagetronad (It has some snipplets from the reference authentication authority implementation).

Download
stafflogin.php.not.ace
This is, as it says, not an ACE archive, but a php script. Rename it to take out the ".not.ace" part
(4.17 KiB) Downloaded 134 times

Post Reply