Property "Access Control" <checkpoint>

Top  Previous  Next

Check points are definitions of MoreMotion security system. If you want only authorized users see a page then you define a Check Point using this property.

Syntax:

[securityDomain:]checkPointName,loginPage,errorPage

 

securityDomain

The name of the security domain. The default is "main".

checkPointName

The name of the Check Point the user must have authority to see the page. If the check point is not defined in the security system the check is not performed.

loginPage

Optional parameter. If user is not logged in yet the user will be redirected to this page. If the parameter is omitted the user is redirected to the index page.

errorPage

Optional Parameter. If user is logged in but has no authority, this page is displayed to the user. If the parameter is omitted the user is displayed with the standard error page.

 

"IS_LOGGED_IN" Checkpoint.

This is a built-in checkpoint which can be used to redirect the users to a login page if they are not yet logged in.

Example:

IS_LOGGED_IN,LoginPage

 

 

Note: MScript functions can be used for all the parameters

Example:

@vof(CPName),@vof(v:loginpage)

 

MoreMotion AF "accessControl" configuration element

MoreMotion Application Studio builds an accessControl configuration element out of the definitions made in this property.

 
<accessControl securityDomain="" checkPoint="" loginPage="" failurePage="" />
  

If desired the access control definition can also be directly made using this syntax in this property as follows:

Example:
<accessControl checkPoint="@vof(CPName)" loginPage="@vof(v:loginpage)" />