securityDomain

Top  Previous  Next

MoreMotion Security System operates on a security domain basis. A Security Domain is introduced to the system with a securityDomain configuration element in a global configuration file.

  <securityDomain name="main">
    <broker>MySQL</broker>
    <conn>SuperStore</conn>
    <cookie.opt>2. Remember User</cookie.opt>
    <cookie.maxage>2592000</cookie.maxage>
    < .. security-component-specific-parameters .. >
  </securityDomain>

The name of the security domain must be unique in the whole MoreMotion configuration. If there is only one security domain in the application its name can be defaulted to "main".

Nested Elements

broker (Accepts MScript)

The name of a security broker configured with securityBroker element.

conn (Accepts MScript)

Security Brokers usually require a JDBC connection. If that is the case, specify the name of a JDBC Configuration configured with jdbcConnection element.

cookie.opt (Accepts MScript)

Defines the option for handling the states of the users that were logged in to the system previously. The options are:

1.Do Not Remember: Previously logged-in user is NOT saved in cookie.
2.Remember User: Name of the user is saved in cookie and mor_security_userinfo data source always provides the username by reading its value from the cookie.
3.Accept As Logged In: If a user was logged-in to the system previously and left the application without actually logging-off, the next time he opens a page of the application he is made logged-in automatically. Define this option only if security is not your primary concern.
4.User Decides. This option can be preferred to let the user decide whether the system remembers him or not. If that is the case on the login Process Form a field or a Process Field with name "rememberme" must be provided. The value of the field should be one of these:

"false"

Do not remember the user

"name"

Remember only the username

"true"

Keep the user logged in unless he explicitly logs off

 

cookie.age (Accepts MScript)

Specifies the age of the cookie in seconds. 

 

In addition to the common ones, a securityDomain element my have Security Component specific nested elements as well. See securityDomain configuration of the mor.Security component.