Legacy platform

Supporting multiple guest users

With the underlying UI framework, your authentication process can include the authentication of one or more guest users for a particular URL of the application.

About this task

If the application is not configured for multiple guest users, the default implementation allows only one guest user (if it is set up). If the application is not configured for multiple guest users or for the default implementation of only one guest user, the guest can be specified using web.xml parameters:

<context-param>
   <param-name>scui-guest-user</param-name>
   <param-value>myAppGuest</param-value>
</context-param>

To support multiple guest users, you must use the default implementation of the underlying UI framework. You can customize this default implementation.

Procedure

  1. Install the application with the default implementation of the underlying UI framework.
  2. Specify your custom guest user provider in web.xml using the scui-guest-user-provider parameter.

    Example:

    <context-param>
       	<param-name>scui-guest-user-provider</param-name>
       	<param-value>com.app.MyGuestUserProvider</param-value>
    </context-param>

    This provider will be accessed by the getGuestUser() method of ISCUIGuestUserProvider. For all guest users, the password is the same as the user name. The custom implementation must use the interface contract defined in ISCUIGuestUserProvider.

    To implement the customized Java™ code, build a jar file that contains the Java class, and then install the jar file using the install3rdparty.sh script. To implement this customization, rebuild the EAR or WAR file as you did during the installation, and then deploy the application on the application server.