2.0 Configuring Viewpoint Security

The following represents the out-of-the-box core.xml settings pertaining to authentication:

<config>
<security>
  <permissions-caching>true</permissions-caching>
  <login-jsp-path>/WEB-INF/login.jsp</login-jsp-path>
  <login-servlet-path>/login</login-servlet-path>
  <app-jsp-path>/WEB-INF/application.jsp</app-jsp-path>
  <app-servlet-path>/app</app-servlet-path>
  <logout-parameter>logout</logout-parameter>
  <username-parameter>username</username-parameter>
  <request-handler>
    <parameter callback="ProxyUserCallback">username</parameter>
    <parameter callback="NameCallback">username</parameter>
    <parameter callback="PasswordCallback">password</parameter>
  </request-handler>
  <login-modules>
    <login-module class="com.moab.api.login.MoabLoginModule" flag="required"></login-module>
    <login-module class="com.cri.security.server.modules.ViewpointLoginModule" flag="required"/>
  </login-modules>
  <permissions-map>
    <principal type="MoabSshUserPrincipal" name="cri">
      <role name="user"/>
    </principal>
    <principal type="MoabAdminPrincipal" name="ADMIN5">
      <role name="user"/>
    </principal>
    <principal type="ViewpointRolePrincipal" name="user">
      <role name="user"/>
    </principal>
    <principal type="ViewpointRolePrincipal" name="admin">
      <role name="admin"/>
    </principal>
  </permissions-map>
  <role-definitions>
    <definition name="user">
      <permission name="archive.create"/>
      <permission name="archive.read"/>
      <permission name="archive.restore"/>
      <permission name="cart.read"/>
      <permission name="cart.update"/>
      <permission name="cart.delete"/>
    </definition>
    <definition name="admin">
      <permission name="user.*"/>
      <role name="user"/>
    </definition>
    </role-definitions>
</security>
</config>

See Permissions for a list of available permissions and their associated pages.

2.0.1 Request Handler

2.0.2 Login Modules

2.0.3 Permissions Map

2.0.4 Role Definition