Google Search Appliance Managing Search for Controlled-Access Content User Manual

Page 52

Advertising
background image

Google Search Appliance: Managing Search for Controlled-Access Content

52

If a credential group is already satisfied at the time the Universal Login Form is rendered, the
Universal Login Form attempts to disable the login fields for the already-satisfied group(s). It does this
in the following two ways:

First, the HTML for the form fields matching the above names are dynamically changed to include
the “disabled” attribute and the user-name field is populated with the credential group’s verified
user-name (if known).

Second, a dynamically generated inline CSS header is generated that allows you to toggle other
parts of the form.

For example, two credential groups are defined (cg1 and cg2), and cg1 is pre-satisfied, but cg2 is
not, the following CSS is generated:

<!--
#cg1Active {display:none; }
#cg1Inactive {display:inline; }
#cg2Active {display:inline; }
#cg2Inactive {display:none; }
-->

This allows you to create any number of additional form elements that display or not for any
particular credential group, depending on whether it’s being prompted or not. For example, the
default Universal Login Form contains the following tags:

<tr id="cg1Active"><td>Please login to cg1:</td></tr>

<tr id="cg1Inactive"><td><span style="color:green">Logged in to cg1</span></

td></tr>

This allows the prompt for the credential group to explain why the credential group fields are
disabled.

To upload HTML for a customized Universal Login Form:

1.

Click Serving > Universal Login Configuration.

2.

Insert the customized HTML in the Custom Page HTML area of the Page Layout Helper.

3.

Click Save Page Layout Code.

For more information about customizing the Universal Login Form, click Help Center > Serving >
Universal Login Form Customization
.

Advertising