Access Control Mechanism.
CompInaBox uses a Gate/Guard metaphor for access control. A given page will configure a Gate with a list of "locks". A user must be able to unlock at least one of the locks on the Gate to Proceed.
Located in /include/classes/access-control/Gate.inc (line 33)
Gate Constructor.
Creates an open and unlocked gate. Such a Gate doesn't require either authentication nor authorization.
Locks a Gate.
This function establishes the credentials needed to unlock the gate. It will close the gate if needed, before locking. A use must match at least one of the listed credentials to be allowed access
Close the Gate.
This function closes, but does not lock the gate. A closed gate is openable by any authenticated user regardless of tokens (but will keep out non-logged in users).
Opens an unlocked Gate.
This function opens an unlocked gate. No action is taken on a locked gate.
Attempts to unlock a Gate.
Attempts to unlock the gate using the keys provided, should a match occur the gate is unlocked and the portcullis raised.
Test comp keys on a Gate's locks.
Cycles through a Gate's lock, testing the presented key against each
Test site keys on a Gate's locks.
Cycles through a Gate's lock, testing the presented key against each
Test team keys on a Gate's locks.
Cycles through a Gate's lock, testing the presented key against each
Documentation generated on Tue, 25 Apr 2006 13:01:37 -0400 by phpDocumentor 1.3.0RC3