Inherited by SecurityManager.
Data Fields | |
$baseUrl | |
$tokenSalt | |
$authenticator | |
__construct | ( | $baseUrl, | |
$tokenSalt | |||
) |
authenticate | ( | $username, | |
$password | |||
) |
Authenticate the user. If authenticated, register the user session
String | $username | The username |
String | $password | The password |
checkAccessApp | ( | $path | ) |
checkAccessRef | ( | $handler, | |
$request, | |||
$scout | |||
) |
Check the referrer info and token.
PntRequestHandler | asking for access | |
PntHttpRequest | $request | |
ScoutInterface | $scout |
checkCreateClass | ( | $objects, | |
$clsDesc | |||
) |
checkCreateObject | ( | $object, | |
$clsDesc | |||
) |
checkDeleteClass | ( | $objects, | |
$clsDesc | |||
) |
checkDeleteObject | ( | $object, | |
$clsDesc | |||
) |
checkEditClass | ( | $objects, | |
$clsDesc | |||
) |
checkEditObject | ( | $object, | |
$clsDesc | |||
) |
checkEditProperty | ( | $object, | |
$propDesc | |||
) |
A property by default may be edited if the object may be edited and the property may be viewed. However, it is more efficient to check if the object may be edited only once for each page, therefore that is not checked here. Currently the user interface only adapts to checkEditProperty by hiding buttons to and accessing MtoNPropertyPages and processing their forms. EditDetailsPages do not (yet) replace (MtoN)DialogWidgets by text, and SaveActions do not checkEditProperty for single value properties, so the user should be allowed to select a value for a property whose type he may not view. For the time being this is to be resolved by the application developer overriding this method and ::checkSelectProperty or overriding getFormWidget on EditDetailsPage.
checkModifyClass | ( | $objects, | |
$clsDesc | |||
) |
checkModifyInDomainDir | ( | $path | ) |
checkRefEqual | ( | $httpRef, | |
$footprint | |||
) |
string | $httpRef | footprint from HTTP_REFERER |
string | $footprint | from scouting |
checkSelectProperty | ( | $objects, | |
$clsDesc, | |||
$propertyName | |||
) |
By default the selection of values is only allowed if the properties type may be viewed. PROBLEM: Form fields are currently not made readOnly in EditDetailsPages if the property is not editable, so the user can try to select a value for it but may not be allowed to do so. It would be nice to by default allow selection too, but we can not verify the properties existence and type. For the time being this is to be resolved by the application developer overriding this method or overriding getFormWidget on EditDetailsPage.
checkViewClass | ( | $objects, | |
$clsDesc | |||
) |
checkViewInDomainDir | ( | $path | ) |
checkViewObject | ( | $object, | |
$clsDesc | |||
) |
checkViewProperty | ( | $object, | |
$propDesc | |||
) |
A property by default may be viewed if the object may be viewed and the properties values may be viewed. However, it is more efficient to check if the object may be viewed only once for each page, therefore that is not checked here. Getting the properties values for each multi value property button thakes too much time, so for multi value properties only the type is checked
getAuthenticator | ( | ) |
getMessageDeniedAccessApp | ( | $path | ) |
getMessageDeniedAccessRef | ( | $pntRef | ) |
getMessageDeniedCreateClass | ( | $objects, | |
$clsDesc | |||
) |
getMessageDeniedCreateObject | ( | $object, | |
$clsDesc | |||
) |
getMessageDeniedDeleteClass | ( | $objects, | |
$clsDesc | |||
) |
getMessageDeniedDeleteObject | ( | $object, | |
$clsDesc | |||
) |
getMessageDeniedEditClass | ( | $objects, | |
$clsDesc | |||
) |
getMessageDeniedEditObject | ( | $object, | |
$clsDesc | |||
) |
getMessageDeniedEditProperty | ( | $object, | |
$propDesc | |||
) |
getMessageDeniedModifyClass | ( | $objects, | |
$clsDesc | |||
) |
getMessageDeniedModifyInDomainDir | ( | $path | ) |
getMessageDeniedSelectProperty | ( | $objects, | |
$clsDesc, | |||
$propertyName | |||
) |
getMessageDeniedViewClass | ( | $objects, | |
$clsDesc | |||
) |
getMessageDeniedViewInDomainDir | ( | $path | ) |
getMessageDeniedViewObject | ( | $object, | |
$clsDesc | |||
) |
getMessageDeniedViewProperty | ( | $object, | |
$propDesc | |||
) |
getMessageDeniedViewPropertyValues | ( | $object, | |
$propDesc | |||
) |
getMessageFootprintMismatch | ( | $httpRef, | |
$footprint | |||
) |
initAuthenticator | ( | ) |
Initialize the authenticator. Override this method to initialize it to an authenticator that actually does authentication
isAuthenticated | ( | $request, | |
$scout | |||
) |
Initializes the authenticator if not yet initialized
PntHttpRequest | $request | |
ScoutInterface | $scout | session has been started |
isEntryPage | ( | $handler, | |
$request | |||
) |
To be overridden for aditional entry pages if no authentication Default is to delegate to the authenticator
PntRequestHandler | $handler | |
PntHttpRequest | $request |
newFootprintId | ( | ) |
$authenticator |
$baseUrl |