Sample Custom Login; Modified Login.jsp File For Credential Prompts - Novell ACCESS MANAGER 3.1 SP2 - IDENTITY SERVER GUIDE 2010 Manual

Identity server guide
Hide thumbs Also See for ACCESS MANAGER 3.1 SP2 - IDENTITY SERVER GUIDE 2010:
Table of Contents

Advertisement

Windows Identity Server: Enter the following commands:
net stop Tomcat5
net start Tomcat5
2.4 Sample Custom Login Pages
Section 2.4.1, "Modified login.jsp File for Credential Prompts," on page 85
Section 2.4.2, "Custom nidp.jsp File with Custom Credentials," on page 88
Section 2.4.3, "Custom 3.1 login.jsp File," on page 95
Section 2.4.4, "Custom 3.0 login.jsp File," on page 98

2.4.1 Modified login.jsp File for Credential Prompts

The following code is a modified version of the 3.1
prompt for the user's email address.
Custom Credentials
Figure 2-4
Such a JSP file must be used with a contract that uses a method that defines the query for the new
attribute. The method also needs to define which login file has been modified to display the prompt.
For more information about this process, see
Different Credentials" on page
The sample code contains the following the text for the prompt:
<td align=left>
<label>Email Address:</label>
</td>
It also adds an input element for the query variable:
<td align=left>
<input type="text" class="smalltext" name="Ecom_User_Mail" size="30">
</td>
These elements are both part of the new
marked in bold in the following sample file.
login.jsp
Figure 2-4
illustrates the login page that these changes produce.
"Customizing the Default Login Page to Prompt for
61.
element that has been added to the file. These lines are
<tr>
Customizing Login Pages, Logout Pages, and Messages
file. It has been modified to add a
85

Advertisement

Table of Contents
loading

Table of Contents