Director Tutorials


Using Shortcut portlets for form-based authentication

 
Top of page

Objective

To enable form-based authentication using replacement strings in Shortcut portlets.

A Shortcut portlet generates a list of shortcut links to Web resources and local applications.

Replacement strings are keywords that reference values that can change dynamically at runtime, such as a user's login name and password.

Before you begin   See About exteNd Director Tutorials.

Audience   This section is for all users, whether or not they have administrative privileges.

 
Top of page

Concepts

 
Top of section

Why use form-based authentication?

exteNd Director supports several mechanisms for authenticating users of Web applications:

There are several reasons for using form-based authentication instead of basic authentication with exteNd Director:

 
Top of section

Impact of the Internet Explorer security patch

The Microsoft Security Patch MS Bulletin MS04-004 Cumulative Security Update impedes basic authentication in several Accessory portlets that ship with exteNd Director: Shortcut, IFrame, NetMail, Notes, and Exchange. If you install this patch, you should configure these portlets to use form-based authentication (instead of basic authentication) for target Web sites and destination servers that support form-based authentication.

NOTE:   The exteNd Application Server supports form-based authentication.

To address a potential security breach, the Microsoft patch removes support from Internet Explorer and Windows Explorer for the clear-text authentication syntax http(s)://username:password@server/resource.ext. exteNd Director uses this syntax to support basic authentication in its Accessory portlets by generating URLs that pass clear-text authentication credentials to the target Web site. If the patch has been installed, these URLs generate an invalid syntax error from the browser.

 
Top of page

Exercises

The exercises in this section show you how to configure a Shortcut portlet to use form-based authentication when you log in to Novell Forge, a collaborative Web site for developing open-source projects.

It also provides guidelines for implementing form-based authentication with other Accessory portlets.

 
Top of section

Creating an account on Novell Forge

In this exercise, you will create an account on Novell Forge, a Web site that supports form-based authentication. Novell Forge provides the ability to create, manage, and contribute to open-source software development projects.

After completing the tutorial exercises, you can use your Novell Forge account to explore ways in which you may use site and the tools it offers.

Procedure To create an account on Novell Forge:

  1. Open a browser and enter this URL:

      http://forge.novell.com
    

    The Novell Forge home page opens in your browser. The page should look something like this:

    NovellForgeHome

  2. Click Register with Novell Forge.

    NovellForgeReg

    The Novell Account form appears in your browser.

    NovellForgeAccount

  3. Fill out the profile according to the instructions on the page, then click next at the bottom of the page.

    TIP:   Remember the user name and password that you enter. You will need these credentials for a later exercise.

  4. Fill out the account synchronization form as appropriate and click finish at the bottom of the page.

    A confirmation window should appear, indicating that you have registered successfully with Novell Forge.

Now you are ready to add a Shortcut portlet to a personal page. Leave your browser running and move to the next exercise.

 
Top of section

Adding a Shortcut portlet to a personal page

In this exercise you will create a personal page and add a Shortcut portlet to the page.

Creating a personal page

Procedure To create a personal page:

  1. Start the exteNd Application Server where the Express Portal application has been deployed.

  2. Start the Express Portal application by entering this URL in your browser:

    http://host/ExpressPortal

    The default page for a guest user opens in your browser.

  3. Click Login.

    ExpressPortalLoginSelectAnnot

    The Login dialog opens in your browser:

    tutwwpXpressPortalLoginDialog

  4. Log in as an authorized user, then click login or the Enter key.

    TIP:   If you need to create a user, see the exercise on adding a new user.

    The default page for the user you specified opens in your browser.

  5. On the default page, select Personalize.

    Home2Personalize

    NOTE:   This is the default page for a user who is not an administrator. Your default page will look different if you logged in as an administrator, but the Personalize option is still available in a similar location on the page.

    The Portal Personalizer opens in your browser.

  6. Under Personal Pages select New.

    PersonalizeNewPage

    An untitled page is added to the list of personal pages.

  7. Enter the following properties for the new page:

    Property

    What to specify

    Page Name

    My Authentication Page

    Description

    Tutorial

  8. Click Update.

    The new page appears in the list of personal pages.

Now you are ready to add a Shortcut portlet to the new personal page. You will configure the portlet to use form-based authentication when logging in to the Novell Forge site. Leave the Personalizer running and move to the next exercise.

Adding a Shortcut portlet to a page using the Content Selector tool

In this exercise, you will use the Content Selector to add a Shortcut portlet to My Authentication Page, the personal page you just created.

Procedure To add a Shortcut portlet to your personal page using the Content Selector:

  1. Select My Authentication Page in the Personal Pages list and click Choose Content.

    The Content Selector displays in a new window.

  2. From the Filter dropdown list choose Accessory Portlets.

  3. From the Available Content list select Shortcut and add it to the page by clicking Add.

Now you are ready to configure the Shortcut portlet to provide form-based authentication when you log in to the Novell Forge Web site. Leave the Content Selector open and move to the next exercise.

 
Top of section

Configuring the Shortcut portlet to use form-based authentication

In this section, you will perform the following exercises:

Configuring the Shortcut portlet for form-based authentication

The Shortcut portlet provides a wizard that automatically generates site-specific POST parameters. You will learn how to use this wizard in the following exercise.

Procedure To configure the Shortcut portlet to use form-based authentication:

  1. Select the Shortcut portlet in the Selected Content list and click Content Preferences.

    ContentPreferencesSelectForge

    The Content Preferences sheet for the Shortcut portlet opens.

    TIP:   To get more information about preferences, click Descriptions at the bottom of the preference sheet:

    ContentPrefsDescriptionsShortcut

  2. In the Preference Value column for the shortcut link preference, click the View/Edit Custom Preference link.

    ShortcutViewEditCustomPrefForge

    A second preference sheet opens in your browser containing a set of predefined shortcuts, each with its own set of preferences. You can also add new shortcuts.

  3. Maximize the preference sheet.

    Note that a shortcut is already defined for the Novell Forge Web site:

    ShortcutNovellforge

  4. Delete all predefined shortcuts except Novell Forge by clicking their delete buttons:

    ShortcutDelete

  5. Display the preferences for the Novell Forge shortcut by clicking the plus sign to the left of Details:

    ShortcutPreferencesDetailsForge

    If a popup opens, asking you to select a user name for the form, click Cancel. You will use the Wizard instead.

  6. Click Use Wizard for the URL preference:

    ShortcutUseWizard

    A view of the home page for the Novell Forge Web site opens in the wizard.

  7. In the login area, fill in the Username and Password fields with the Novell Forge credentials you created in Creating an account on Novell Forge. Then, click User Login.

    NovellForgeUserLogin

  8. If an alert box appears, asking if you want Password Manager to remember your login credentials, respond as appropriate.

  9. If a popup opens, asking you to select a user name for the form, click Cancel.

    The Shortcut preferences sheet opens in the wizard, automatically configured for form-based authentication. Note that Post is set to true and that several URL/Post parameters are defined for the Novell Forge site, including the username and password you entered in Step 7, as in this example:

    ShortcutWizardForgePrefs

    NOTE:   Notice that your password appears in the clear in the password field. To avoid exposing your password on the preference sheet, you can use replacement strings, as illustrated in a later exercise, Using replacement strings to secure credentials in form-based authentication.

  10. Click Save at the bottom of the preference sheet.

    Your values are recorded and you exit the wizard.

  11. Back in the Shortcut preference sheet, click Return to List View.

    ShortcutPrefsReturnToListView

  12. Click Save Preferences.

    The Content Preferences sheet closes, returning you to the Content Selector.

  13. Click Save Contents to record your changes and dismiss the Content Selector.

  14. Close the Personalizer and all other browser windows.

By default, sensitive URL/Post parameters (such as passwords) that you enter in the Shortcut Portlet wizard are stored as encrypted values in the exteNd Director database.

Now you are ready to test form-based authentication in your Shortcut portlet. Move to the next exercise.

Testing form-based authentication for Novell Forge

In this exercise, you will log in to the Novell Forge Web site using form-based authentication. You will then open a new browser session to demonstrate that parameters used in the POST to the Novell Forge site are persisted as portlet preferences in the portal application database, rather than in the current browser session.

Procedure To test form-based authentication for Novell Forge:

  1. Start a new browser and log in to the Express Portal application.

    TIP:   If you need to review these steps, see Adding a Shortcut portlet to a personal page.

  2. When your default portal page opens in the browser, click My Authentication Page under Personal Pages in the navigation area.

    MyAuthPage

    My Authentication Page appears in the content area of your browser, displaying your Shortcut portlet.

  3. Click the Novell Forge shortcut link.

    NovellForgeShortcutSelect

    A Security Alert appears, indicating you are about to be redirected to a nonsecure connection.

  4. Confirm that you want to proceed.

    You are automatically logged in to the Novell Forge application. When you clicked the Novell Forge shortcut link, the Shortcut portlet used form-based authentication to post the credentials from a persistent data store, the exteNd Director database.

Now you are ready to use replacement strings to secure your credentials in form-based authentication. Close the Novell Forge application, but leave My Authentication Page running in the portal in your browser.

 
Top of section

Using replacement strings to secure credentials in form-based authentication

When you entered credentials for form-based authentication in a previous exercise, the username and password were exposed, or in the clear. In these exercises, you will secure the identity of your password by using replacement strings, then test the runtime behavior when you log in to the Novell Forge site.

Recall that replacement strings are keywords that reference values that can change dynamically at runtime, such as a user's login name and password.

Procedure Using replacement strings to secure credentials in form-based authentication:

  1. In My Authentication Page, click Personalize.

    The Portal Personalizer opens in your browser.

  2. Select My Authentication Page in the Personal Pages list, then click Choose Content.

    The Content Selector opens in a separate browser window.

  3. Choose Novell Forge in the Selected Content list, then click Content Preferences.

    The preference sheet for your Novell Forge portlet opens in your browser.

    NOTE:   The preference sheet displays a lock symbol next to details, as in this example:

    EncryptedPref

    This symbol indicates that preferences are stored as encrypted values.

  4. Click View/Edit Custom Preference to open the preference sheet for the Novell Forge shortcut link.

  5. Click Details to display the preferences, then maximize the browser window.

  6. Copy your login credentials from the URL/Post Parameter fields to the User and Password fields further down on the preference sheet:

    NovellForgeShortcutPrefsCopyAnnot

    NOTE:   Filling in the User and Password fields stores the credentials permanently in the preference so they persist across sessions. The value you copy to the Password field is not exposed on the preference sheet.

  7. In the URL/Post Parameter list, substitute the following replacement strings for the values of username and password:

    URL/Post Parameter key

    Replacement string

    username

    $PORTLET_AUTH_ID$

    password

    $PORTLET_AUTH_PWD$

    At runtime, the values you entered in Step 6 will be substituted for the associated replacement strings and passed as your credentials to be validated by the server. In addition, the password is stored as an encrypted value in the database.

  8. Set Authentication Required to true.

    Your preference sheet should look something like this:

    NovellForgeShortcutPrefsRepStrings

  9. Click Save at the bottom of the preference sheet.

  10. If an alert box appears, asking if you want Password Manager to remember your login credentials, respond as appropriate.

    Your values are recorded and you exit the wizard.

  11. Back in the Shortcut preference sheet, click Return to List View.

    ShortcutPrefsReturnToListView

  12. Click Save Preferences.

    The Content Preferences sheet closes, returning you to the Content Selector.

  13. Click Save Contents to dismiss the Content Selector.

  14. Close all other browser windows.

    Now you are ready to test form-based authentication using replacement strings. Move to the next exercise.

Procedure To test form-based authentication using replacement strings:

  1. Start a new browser and log in to the Express Portal application.

    TIP:   If you need to review these steps, see Adding a Shortcut portlet to a personal page.

  2. When your default portal page opens in the browser, click My Authentication Page under Personal Pages in the navigation area.

    MyAuthPage

    My Authentication Page appears in the content area of your browser, displaying your Novell Forge portlet. This time, the Novell Forge shortcut link appears with a button next to it:

    StoredCredentials

    This symbol indicates that stored credentials exist for this shortcut link. If you click this image, you can modify the stored credentials associated with this shortcut link—in this case, the credentials for the Novell Forge site.

  3. Click the Novell Forge shortcut link.

    A Security Alert appears, indicating you are about to be redirected to a nonsecure connection.

  4. Click Yes to proceed.

    You are automatically logged in to the Novell Forge application, again demonstrating that single sign-on was achieved using credentials that persist across sessions.

 
Top of section

Implementing form-based authentication with other Accessory portlets

In the previous exercises, you learned how to configure the Shortcut portlet to use form-based authentication. You can also implement form-based authentication with other Accessory portlets that ship with exteNd Director:

Accessory portlet

Description

To implement form-based authentication

IFrame

Displays a given URL in an IFrame

See Configuring IFrame, NetMail, and Exchange portlets for form-based authentication.

NetMail

Provides Novell NetMail calendar and messaging functions

See Configuring IFrame, NetMail, and Exchange portlets for form-based authentication.

Exchange

Provides access to Microsoft Exchange calendar and messaging functions

See Configuring IFrame, NetMail, and Exchange portlets for form-based authentication.

Notes

Provides access to Lotus Notes/Domino HTTP email

See Configuring Notes portlets for form-based authentication.

Configuring IFrame, NetMail, and Exchange portlets for form-based authentication

Unlike Shortcut, the IFrame, NetMail, and Exchange portlets do not have wizards for setting site-specific URL/Post parameters automatically. As an alternative, you can use the Shortcut portlet wizard to define the key/value pairs for the target site, then copy these pairs manually to the URL/Post parameter fields in the IFrame, NetMail, or Exchange portlet.

Configuring Notes portlets for form-based authentication

For the Notes portlet, the URL/Post parameters are hard-coded specifically for the Lotus Notes/Domino server.

The Notes portlet posts to an URL of this form:

  protocol + "://" + IP address + ":" + port + "/names.nsf?Login"

Here is an example:

  http://weddev2:80?names.nsf?Login

The Notes portlet also provides the following parameters on the POST:

Parameter key

Description

Username

Lotus Notes user ID

Password

Lotus Notes password

RedirectTo

Lotus Notes URL to redirect to after a successful login

If you need more flexibility in specifying an URL and POST parameters, use the IFrame portlet instead of the Notes portlet for form-based authentication.

 
Top of page

What to do next



Copyright © 2004-2005 Novell, Inc. All rights reserved. Copyright © 1997, 1998, 1999, 2000, 2001, 2002, 2003 SilverStream Software, LLC. All rights reserved.  more ...