Version 9.6
 —  Virtualized Services in CentraSite Control  —

Consumer Applications

A consumer application is a computer application that consumes (invokes) assets (services, BPEL processes or XML schemas) at run time. Typically, you create consumer applications to specify the consumers that are allowed to consume a particular asset. Then, you include the consumer application in the Consumers profile of the asset.

A consumer application in CentraSite is represented by an Application asset. The Application asset defines the precise consumer identifiers (for example, a list of user names in HTTP headers, a range of IP addresses, etc.). Thus the policy enforcement point (such as Mediator) can identify or authenticate the consumers that are requesting an asset.

You can use Application assets with any supported policy enforcement point (that is, webMethods Mediator or any supported third-party policy enforcement point).

Note:
If you want to authenticate consumers (using LDAP or another external authentication mechanism), make sure that your policy enforcement point is configured to enable authentication. For information, see the documentation for your policy enforcement point.

The following subsections describe how to create and manage consumer applications:


Who Can Create and Manage Consumer Applications?

To create and manage consumer applications, you must belong to a role with the following permissions:

For more information about roles and permissions, see the section About Roles and Permissions in the document Users, Groups, Roles and Permissions.

Top of page

Identifying Consumer Applications

To identify consumer applications, you perform the following high-level steps:

  1. Include the Identify Consumer action in the asset's run-time policy.
    To identify the consumer applications that are requesting an asset, that asset must have a run-time policy that includes the Identify Consumer action. In this action, you specify the consumer identifier(s) you want to use for identifying consumer applications. (Alternatively, you may configure this action to allow unrestricted access.) This action extracts the specified identifier from an incoming request and locates the consumer application defined by that identifier.

    For example, if you configure the Identify Consumer action to identify consumers by IP address, the PEP extracts the IP address from a request’s HTTP header at run time and searches its list of application assets for the application that is defined by that IP address.

    You can configure the Identify Consumer action to identify consumer applications based on one or more of the following consumer identifiers in a request message:

    Consumer Identifier Description
    IP Address The IP address from which the request originated.
    Host Name The name of the host machine from which the request originated.
    HTTP Authentication Token The user ID submitted by the requestor when it was asked to provide basic HTTP credentials (user name and password).
    WS-Security Authentication Token The WSS username token supplied in the header of the SOAP or XML request that the consumer application submitted to the virtualized service.
    Custom Identification A string produced by applying a specified XPath expression to the SOAP or XML request that the consumer application submitted to the virtualized service.
    Consumer Certification The X.509 certificate supplied in the header of the SOAP or XML request that the consumer application submitted to the asset.
    Client Certificate for SSL Connectivity The client's certificate that the consumer application submits to the asset. The certificate is supplied during the SSL handshake over the Transport layer. Communication between the client and the asset must be over HTTPS.

    When deciding which type of identifier to use to identify a consumer application, consider the following points:

    For more information about the Identify Consumer action, see the section Run-Time Governance Reference > Built-In Run-Time Actions Reference for Virtual Services. Additionally, within that section see Usage Cases for Identifying/Authenticating Consumers.

  2. Create an application asset in the registry.
    In the application asset you specify precise values for the consumer identifier(s) that you specified in the Identify Consumer action. For details, see Creating a Consumer Application Asset.

  3. Specify the application asset in the Consumers profile of the asset to be consumed.
    The Consumers profile is located in the asset's detail page.

The run-time behavior of identifying consumers is as follows:

  1. CentraSite translates the application asset to the appropriate WS-Security policy assertions or an equivalent XML when the application asset is enforced by the PEP.

  2. When a consumer application requests access to an asset, the PEP tries to map the consumer's identifier (which is found in the request) to an identifier in the application asset.

  3. The identified or authenticated consumer information is published back to the registry as part of the transaction or other events. This information is used to correlate the consumer-specific run-time dependencies.

Top of page

Creating a Consumer Application

Use the following procedure to create a consumer application asset.

Start of instruction setTo create a consumer application asset

  1. In CentraSite Control, go to Asset Catalog > Browse.

  2. Click Add Asset(s).

  3. In the Add Asset dialog, enter values for the following fields:

    In this field... Specify...
    Type The Application asset type.
    Name A name for the application asset. An asset name can contain any character (including spaces).
    Description Optional. A comment or descriptive information about the new application asset.
    Organization The organization to which the application asset belongs.
    Initial Version Optional. An identifier for the initial version of the application asset. The default is "1.0", but you can use any versioning scheme you choose. The version identifier does not need to be numeric.
    Examples:
      0.0a
      1.0.0 (beta)
      Pre-release 001
      V1-2007.04.30

    You can later create new versions of the application asset (see the section Versioning an Asset in the document Using the Asset Catalog).

  4. Click OK.

    Now the detail page of the newly created asset opens. Here you can enter the values of various attributes of the new asset.

  5. Configure the profiles of the detail page, as described in the following sub-sections.

  6. If you belong to a role that has the "Register as Consumer" permission, the entry Register as Consumer is enabled in the Actions menu of the details page. If you select this menu entry, a dialog opens that lets you select users, groups and consumer applications that can use this asset. The request must be subsequently approved or rejected by the owner of the asset.

  7. Specify the application asset in the Consumers profile of the asset to be consumed. To do this, open the detail page of the asset to be consumed and specify the application asset the Consumers profile.

Top of page

Configuring the Profiles of a Consumer Application

To configure the profiles of a consumer application, see one of the following sections as appropriate:

Configuring the Identification Profile

In this profile, specify the precise values for the consumer identifier(s) that you specified in the Identify Consumer action.

Notes:

  1. If you specify multiple identifiers, the system evaluates them with the identifier defined in the Identify Consumer action.
  2. If you want to authenticate consumers, make sure that your policy enforcement point is configured to enable authentication. For information, see the webMethods Mediator documentation or the documentation for your third-party PEP.

Start of instruction setTo configure the Identification profile

In this field... Do the following...
IPv4 Address

Identify consumers based on their originating 4-byte IP address.

Use this field when the Identify Consumer action is configured to identify consumer applications by IP address.

  • To specify an individual IP address, type the address in the From field. The application asset will identify only those requests that originate from the specified IP address.

  • To specify a range of IP addresses, type the lowest IP address in the From field and the highest IP address in the To field. For example, the values 192.168.0.0 and 192.168.0.10 indicates that requests originating from any IP address that lies between the specified range will be identified by the application asset.

    If you need to specify additional IP addresses, use the plus button to add more rows.

IPv6 Address

As for IPv4 Address, but using the 128-bit IPv6 format. For example: "1234:5678:9ABC:DEF0:1234:5678:9ABC:DEF0".

Identification Token

Identify consumers based on one or more of the following kinds of identification tokens:

Use this field when the Identify Consumer action is configured to identify consumer applications by host name, HTTP user name, WSS user name or a custom token.

  • Host Name—To identify consumers based on a specified host name, type the host name (for example, pcmachine.ab.com) in the Name field. The application asset will identify only those requests that originate from the specified host name.

  • HTTP Authentication Token—To authenticate consumers based on the user name that is transmitted in an HTTP authentication user token, type the user name (for example, testuser123) in the Name field. The application asset will identify only the requests that contain the specified user name encoded and passed in the HTTP authentication user token. Authentication is handled by LDAP or another external authentication mechanism. You can specify the kinds of HTTP headers that webMethods Mediator will pass from requests to services. The default is the Authorization header. To configure webMethods Mediator to pass other kinds of HTTP headers, see the webMethods Mediator documentation.

  • WS-Security Authentication Token—To authenticate consumers based on the user name that is transmitted in the SOAP or XML message header (HTTP body), type the user name (for example, userwss) in the Name field. The application asset will identify only the requests that contain the specified user name passed in the SOAP or XML message header. Authentication is handled by LDAP or another external authentication mechanism.

  • Custom identification token (XPath)—To identify consumers based on the result of applying an XPath expression on the SOAP or XML message or request, enter the XPath expression in the Name field. For example, typing //*[local-name()='Envelope']/*[local-name()='Body']/*[local-name()='echoInt']/*[local-name()='echoIntInput='][.='2'] in the Name field will identify the requests that contain the XPath and the consumers.

If you need to specify additional tokens, use the plus button to add more rows.

Consumer Certificate Identify consumers based on information in an X.509 v3 certificate.

Use this field when the Identify Consumer action is configured to identify consumer applications by a consumer certificate.

Click Browse to locate the certificate (.cer) file and select the certificate file.

Configuring the Permissions Profile

Use this profile to set permissions for the application asset. For information, see the section Setting Permissions on an Asset in Using the Asset Catalog.

Configuring the Versions Profile

Use this profile to generate a new version of the application asset. For information, see the section Versioning an Asset in Using the Asset Catalog.

Configuring the Subscriptions Profile

Optional. If you want to be notified when the application asset is changed, click the Actions button and select Notify me from the drop-down list. Your owner name will appear in the Subscriptions profile. Any other users who have permission to access the asset can add their own user names to this list.

Viewing the Audit Log Profile

This profile displays an audit log of the changes made to the application asset (including changes in an asset's lifecycle state).

Configuring the Object-Specific Properties Profile

Optional. Use this profile to add object-specific properties to the application asset.

Start of instruction setTo configure the Object-Specific Properties tab

  1. Click the Add Property button.

  2. Specify values for the following fields:

    In this field... Specify...
    Name The name of the property.
    Namespace Optional The namespace of the property.
    Values Optional A value for the property. If you want to specify multiple values, use the plus button to add additional rows.

Top of page

Editing a Consumer Application

Use the following procedure to edit the attributes associated with a consumer application asset in the catalog.

When editing attributes, keep the following general points in mind:

Start of instruction setTo edit the attributes for a consumer application asset

  1. In CentraSite Control, go to Asset Catalog > Browse.

  2. On the Browse page, perform a keyword or advanced search to display the application asset(s). For procedures, see the section Searching the Asset Catalog in Using the Asset Catalog.

  3. Locate the application asset whose details you want to view and, from its context menu, select Details.

  4. To edit the application asset's Name, Description or user-defined version number, place the cursor in the appropriate field and modify the text as required.

  5. To modify the extended attributes associated with the asset, do the following:

    1. Select the profile that contains the attribute(s) that you want to modify.

    2. Edit the attributes on the profile as necessary.

    Note:
    If at any time you want to abandon your unsaved edits, click Close. CentraSite will ask you if you want to save your edits. Click No to abandon your edits and return the asset's attributes to their previous settings.

  6. When you have finished making your edits, click Save.

Top of page

Deploying a Consumer Application

You can deploy consumer application assets to a policy enforcement point (such as webMethods Mediator) in either of the following ways:

Top of page

Deleting a Consumer Application

Before you delete an application asset, we strongly recommend that you examine the asset's Impact Analysis profile to determine whether other assets will be affected by the asset's deletion.

Start of instruction setTo delete an application asset

  1. In CentraSite Control, display the detail page of the application asset that you want to delete. If you need procedures for this step, see the section Viewing Details for an Asset in Using the Asset Catalog.

  2. In the Actions menu, click Delete.

You can delete multiple application assets in a single step. The rules described above for deleting a single application asset apply also when deleting multiple application assets.

Important:
If you have selected several application assets where one or more of them are predefined application assets, you can use the Delete button to delete the assets. However, as you are not allowed to delete predefined application assets, only assets you have permission for will be deleted. The same applies to any other application assets for which you do not have the required permission.

Start of instruction setTo delete multiple application assets in a single operation

  1. In CentraSite Control, use either the Browse or the Search feature in the asset catalog to select a list of the application assets. If you need information on how to browse or search the asset catalog, refer to the section Browsing the Asset Catalog or Searching the Asset Catalog in Using the Asset Catalog.

  2. Mark the checkbox of each application asset you want to delete.

  3. In the Actions menu, click Delete.

Top of page

Consumer Provisioning and Consumer-Provider Relationship Tracking

The term consumer provisioning means providing users with the ability to consume assets. Consumer provisioning with CentraSite enables you to control and monitor who consumes assets.

A consumer can be any of the following:

To control who consumes assets, you:

Because consumers are registered, CentraSite can easily track consumer-provider relationships. The purpose of tracking consumer-provider relationships is to identify:

You can track consumer-provider relationships in the following ways:

This section covers the following topic:

Implementing Consumer Provisioning

To provide consumers with access to assets, you perform the following tasks:

Creating the Consumer-Provider Relationship Policy

To enable users to register as consumers of assets, you must first create a policy that enables the asset owners to approve or reject the "Register as Consumer" requests. To create the policy, use this procedure.

Start of instruction setTo create the Consumer-Provider Relationship Policy

  1. Create a Design/Change-Time policy with the following specifications:

    Field Value
    Name
    Consumer-Provider Relationship Policy
    Object Type Assets
    Event Type OnConsumerRegistration
    Actions
    • Initiate Approval

    • Register Consumer

    • Set Consumer Permission

    If you need instructions for creating a Design/Change-Time policy, see Working with Design/Change-Time Policies. For information about setting the action parameters, see the Built-In Design/Change-Time Actions Reference.

    When you register users to consume assets (as described in Registering Users to Consume Assets), the policy is triggered and the "Register as Consumer" request is submitted to all members of the approval list specified in the Initiate Approval action. Then, the approvers can either approve or decline the request. If the approvers approve the request, the consumers will be registered as consumers, and appropriate permissions will be assigned to users and groups (permissions are not applicable to application consumers).

Registering Users to Consume Assets

If you have permissions to view assets in the catalog, and you belong to a role that includes the "Register as Consumer" permission, the Register as Consumer feature is enabled in the Actions menu when you browse or search the asset catalog in CentraSite Control. This feature opens a dialog that lets you request the right to be a consumer of one or more of the displayed assets. You can request the right for yourself, or for any user or group in any organization, or for any consumer application owned by any organization.

The request must be subsequently approved or rejected for each asset by at least one of the owners of the asset. This functionality is also available in the detail view of an asset by choosing the Register as Consumer menu entry in the Actions menu. This functionality is not available to guest users.

Start of instruction setTo register users to consume assets

  1. Ensure that you have created a design-time policy named Consumer-Provider Relationship Policy, as described in Creating the Consumer-Provider Relationship Policy.

  2. In CentraSite Control, go to Asset Catalog > Browse.

  3. Select the check box next to each of the required assets and click Actions > Register as Consumer.

  4. In the User/Group field, use the Browse button to display a list of all users and groups from all organizations, and then select the one you want.

  5. If you want to specify additional users or groups, use the plus button beside the User/Group field to create a new User/Group input field, then use the Browse button to select the required user or group as in the previous step.

  6. In the Application field, choose an application asset from the selection box. The selection box shows Applications assets from all organizations.

  7. If you want to specify additional application assets, use the plus button beside the Application field to create a new Application input field, and choose another application asset.

  8. When you have specified all required users, groups and applications, click OK.

    Requests to register the users, groups and/or applications are sent to the owner(s) of the assets.

  9. The owner of each asset can either accept or decline a "Register as Consumer" request as follows:

    1. Go to Home > My CentraSite > Consumer Registrations and click Pending Registrations.

    2. To start the approval process for the request, select the check box next to the request and click Apply Registration Policies. This triggers the OnConsumerRegistration event, which in turn activates the Consumer-Provider Relationship Policy.

    3. To decline the request, select the check box next to the request and click Decline. The Consumer-Provider Relationship Policy is not activated.

  10. After the users, groups and/or applications are approved to consume an asset, you must specify those consumers in the asset's Consumers profile. The Consumers profile appears in the asset's detail page.

Viewing Consumer Registration Requests

To view a summary of all "Register as Consumer" requests, go to Home > My CentraSite > Consumer Registrations and use the following links:

Top of page