With the Web UI Framework, your authentication process can include the authentication of
one or more guest users for a particular URL of the application. If the application is not
configured for multiple guest users, the default implementation allows only one guest
user.
About this task
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 Web UI Framework. You
can customize this default implementation.
Procedure
- Install the application with the default implementation
of the Web UI Framework.
- 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.