Previous Topic: Configure the SAML 2.0 Name ID Management ProfileNext Topic: Configure Social Sign-on


Configure a SAML 2.0 Response for Authentication Failure

You can use this process to configure a non-assertion response to the Service Provider on authentication failure. When a SAML 2.0 authentication request is successful, the response to the Service Provider carries with it the authentication assertion. A rejected authentication request previously only resulted in the end user getting an error message. The Service Provider got no notification of the failed status. Because control returns to the Service Provider, the Service Provider can determine whether to redirect the user, or take any other appropriate action.

Important! For this feature to work, the Policy Server, the Web Agent, and the Web Agent Option Pack are all required to be at SM r12.52 or later.

The following diagram depicts the steps required to configure this functionality:

SM--VISIO--Negative Auth Response(2)

The process of configuring a response to the Service Provider on authentication failure includes the following procedures:

  1. Define a response specifying the Negative Authentication Response attribute.
  2. Create a Basic or Forms authentication scheme.
  3. Define a rule specifying the OnAuthReject action.
  4. Map this rule to the previously defined response in a policy.
  5. Configure an IdP-to-SP partnership to enable negative authentication response.
Define a Response Specifying the Negative Authentication Response Attribute

Begin by defining a response using the WebAgent-OnReject-eGovNegResponse attribute type. Defining a response presupposes a defined domain.

Follow these steps:

  1. Navigate to Policy, Domain, Responses.
  2. Click Create a Response.
  3. Select an appropriate domain, or create a new one.
  4. Click Next.
  5. Enter a name and description (optional) for this response in the General section.
  6. Select the appropriate agent type, usually a SiteMinder web agent.
  7. Click Create Response Attribute in the Attribute List section.
  8. Select WebAgent-OnReject-eGovNegResponse from the drop-down list in the Attribute Type section.
  9. Select Use Relative Target or enter a web server name in the Attribute Fields section.
  10. (Optional) Select Use SSL Connection.

    Note: The selections that you make in this section are the basis for the script that is displayed in the pane in the Advanced section. See the online help for more information.

  11. Select Cache Value Recalculate Value in the Attribute Caching section.
  12. Click Ok to return to the Create Response: Define Response dialog.
  13. Click Finish.

You have defined a response with the appropriate attribute to generate a response to the SP when an authentication fails.

Configure a Basic or Forms Authentication Scheme

You can configure a Basic or Forms scheme to generate a response on authentication failure to the SP.

Follow these steps:

  1. Click Infrastructure, Authentication.
  2. Click Authentication Schemes.
  3. Click Create Authentication Scheme.

    Verify that the Create a new object of type Authentication Scheme is selected.

  4. Click OK.
  5. Enter a name and protection level.
  6. Select Basic or Forms Template from the Authentication Scheme Type list.
  7. Click Submit.

    The authentication scheme is saved and can now be assigned to a realm.

Configure a Rule for Authentication Event Actions

You can configure a rule to control actions that occur when users attempt to gain access to a resource. For a full SAML 2.0 response on authentication failure, select the OnAuthReject action.

The realm must be able to process authentication events. Verify that the Process Authentication Events option is selected. For information about how to create a realm, see the next topic.

Follow these steps:

  1. Click Policies, Domain, Rules.
  2. Click Create Rule.
  3. Select a domain from the list, and click Next.
  4. Select the realm that includes the resources that you want the rule to protect, and click Next.

    Note: If a realm does not exist for the resources that you want to protect, a rule cannot be created to protect those resources.

  5. Type the name and a description of the rule.

    Note: Click Help for descriptions of settings and controls, including their respective requirements and limits.

  6. Select Authentication events.

    The Action List populates with authentication events.

    Note: The Resource field is disabled because an authentication event applies to the entire realm. The Allow Access and Deny Access options are also disabled as they do not apply to authentication events.

  7. Select the OnAuthReject action.
  8. (Optional) In the Advanced section, set time restrictions and or active rule settings.
  9. Click Finish.

    The rule is saved and applied to the specified realm and resource.

More information:

Configure a Realm

Advanced Rule Options

Authentication Events

Map the Rule Using the OnAuthReject Actiton to the Appropriate Response

Associate the rule you created using the OnAuthReject action with the eGovNegResponse attribute in a policy.

Follow these steps:

  1. Navigate to Policies, Domain Policies.
  2. Select a policy.
  3. Navigate to Rules
  4. Verify that the rule you created with the OnAuthReject action is is in the list of rules.
  5. Click Add responses next to that rule.
  6. Select the response in you specified with the eGovNegResponse attribute type.
  7. Save and exit.

You have associated your rule with the appropriate response.

Configure an IdP-to-SP Partnership to Support Negative Authentication Response

You enable a negative authentication response in the SSO configuration step of the IdP-to-SP partnership configuration.Select the Enable Negative Authentication Response check box.

See Single-Sign-on Configuration for further information.