Previous Topic: Manage Unsuccessful Authentication AttemptsNext Topic: Protect the Sample Application


Set Up Back-end Processing

To use the Credentials Selector, the following components are required for back-end processing:

Set Up Authentication Schemes for Back-End Processing

Set up several authentication schemes for back-end processing, one for each choice of credentials made available to the user. These schemes enable a user to choose the type of credentials they provide to access a protected resource.

There is one authentication scheme for each type of credential:

Note: The Basic authentication scheme is a default scheme set up as part of the Policy Server installation.

Set Up a Policy Domain for Back-End Processing

Configure a policy domain to represent the Credentials Selector back-end processing. In this solution, the policy domain is named BackendAuth.

Configure Realms for the Back-end Policy Domain

Define one realm for each configured back-end authentication scheme. Each realm needs a resource filter that is defined as follows:

/auth/redirect.asp?authtype=type&target=
type

Can be one of the following values:

form username/password authentication

cert certificate authentication

certform cert-and-form authentication

securid SecurID authentication

safeword SafeWord authentication

windows Windows authentication

Note: These are the types that are chosen for the purposes of this use case. You are not restricted to these specific values, but the types must correspond to the authtype values in the selectlogin.fcc file, or any other FCC file that is based on the selectlogin.fcc template. Also, the realm resource filter must match the redirect target in the FCC file.

The following pane lists the realms.

Graphic showing the Realms tab

The Web Agents protecting the realms can but do not need to be the same. This solution uses a single Web Agent; however, if multiple Web Agents are used, they must satisfy specific requirements.

The following requirements are necessary for agents that are protecting realms as part of the Credentials Selector functionality:

Create Rules for the Back-end Policy Domain

In each realm that you configure for the BackendAuth policy domain, configure the following two rules:

Configure an asterisk (*) as the value for the Resource field for both rules.

For example, for the Form realm in the BackendAuth policy domain, the rules would be:

OnAuthAccept

Resource: /auth/redirect.asp?authtype=form&target=*

Action: OnAuthAccept

GetRule

Resource: /auth/redirect.asp?authtype=form&target=*

Action: Get

Configure AuthContext Responses for the Back-end Policy Domain

Configure an AuthContext response for each authentication scheme in the BackendAuth domain. Each of these responses contains an AuthContext response attribute, which is evaluated only on an OnAuthAccept event. Its value is added to the CA SiteMinder® session ticket as the value of the SM_AUTHENTICATIONCONTEXT user attribute. The value is not, however, returned to the client as a user response.

For this example, the list of responses are as follows:

 

Name

Agent Type

Description

Form

Web Agent

AuthContext for username/password auth

Certificate

Web Agent

AuthContext for certificate auth

CertandForm

Web Agent

AuthContext for cert and form auth

SecurID

Web Agent

AuthContext for SecurID auth

SafeWord

Web Agent

AuthContext for SafeWord auth

Windows

Web Agent

AuthContext for Windows auth

Note: The response attribute value is truncated to 80 bytes in length.

To configure an AuthContext response attribute, select the WebAgent-OnAuthAccept-Session-AuthContext response attribute type.

The following illustration shows the creation of an AuthContext response attribute using the WebAgent-OnAuthAccept-Session-AuthContext attribute type.

Graphic showing the Attribute Setup section of the Response Attribbute page

As the illustration shows, the AuthContext response attribute type is static. When legacy federation is in use, you can specify a static attribute to define a constant or literal value for better encapsulation. Constant values include strings.

CA SiteMinder® variables and active expressions add more flexibility to configuring AuthContext response attributes. They can also contain the authentication timestamp, a hash value, or both of a SAML assertion.

The following group box shows one of the resulting responses that are configured for this solution. This is the attribute for the Form response.

Graphic showing the Attribute Setup and Advanced sections of the create response attribute page

Configure Policies for Back-end Credential Selection

Configure two policies for the BackendAuth domain in this example:

The following illustration shows the two policies.

Graphic showing the Policies tab

Create an Authentication Context Policy

The AuthContext policy sets the authentication context in the CA SiteMinder® session ticket, which is used for authentication and validation. In this policy, the OnAuthAccept rules from each realm are paired with the corresponding responses to permit access to protected resources. For example, the OnAuthAccept Rule for the Form realm is paired with the Form response and the OnAuthAccept rule for the SafeWord realm is paired with the SafeWord response.

User authentication and user validation are OnAuthAccept events so the authentication context in the session ticket can be overwritten after each validation. The ability to update the authentication context attribute can be useful in some circumstances, for example, if the value of that attribute includes a counter. However, in this solution using the Credentials Selector, the AuthContext policy is configured to fire only if the authentication context is empty to ensure that the session ticket is not overwritten. The credentials that the user chooses are thus remembered.

Protect the authentication context from being overwritten by writing an active expression in the AuthContext policy to retrieve the SM_AUTHENTICATIONCONTEXT attribute from the session ticket.

When legacy federation is in use, you can create a user context variable called AuthContext and can use it in the AuthContext policy to define an active expression that retrieves the SM_AUTHENTICATIONCONTEXT attribute from the session ticket.

Graphic showing the General and Attributes sections

Define an active expression using the AuthContext variable in the AuthContext policy:

Graphic showing the Expression tab

Create a Protection Policy

Authorizing an authenticated user for a requested resource requires a second policy in the BackendAuth domain. This policy protects the resources and is in addition to the authentication context policy in this domain.

Configure the protection policy to authorize the authenticated user for the redirection target, which is a GET action on the redirect.asp file. Name the policy GetPolicy.

The GetPolicy would contain the associated rules:

Rule

Realm

GetRule

Form

GetRule

Certificate

GetRule

CertandForm

GetRule

SecureID

GetRule

SafeWord

GetRule

Windows