Previous Topic: Localization Name/Value Pairs

Next Topic: Tell Users Why Login Failed

Collect Additional Attributes

In addition to username and password, you can collect additional attributes from users, such as a users email address or job title.

To collect additional attributes

  1. Specify the attribute(s) by configuring the HTML Forms authentication scheme and the associated .fcc file.
  2. Configure the HTML Forms authentication scheme by specifying new attributes in the Additional Attribute List fields of the Scheme Setup dialog.

    Note: If you expect the additional attributes or the Password to contain special characters (" . & = + ? ; / : @ = , $ %), you need to URL-encode each namespace in the .fcc file.

  3. Modify the .fcc file to collect additional attributes.

    To modify the .fcc file, add the following line at the beginning of the file:

    @password=PASSWORD=%PASSWORD%&newattr1=%newattr1%&newattr2=%newattr2%
    

    If the additional attributes have special characters, the line should look like the following:

    @password=PASSWORD=%urlencode(PASSWORD)%&newattr1%=%urlencode(newattr1)%&newattr2=%urlencode(newattr2)%
    

    where newattr1=%newattr1%and newattr2=%newattr2% represent the additional attributes. The value before the equals sign is the attribute name and the value between the percent sign (%) sign is the attribute value.

    The FCC parses the names of the new attributes from the attribute values.

    Note: Append additional attributes to the @password directive with the ampersand (&) character.

When you add attributes to the FCC, keep the following in mind:

More information:

HTML Forms Authentication Schemes


Copyright © 2010 CA. All rights reserved. Email CA about this topic