Version 9.6
 —  Implementation Concepts  —

Identifying the Consumers of Virtual Services

In CentraSite there are two concepts of "consumers".


How Are Consumer Applications Represented and Used in CentraSite?

A consumer application is represented in CentraSite by an application asset. An application asset is an instance of the Application asset type, which is one of the predefined types installed with CentraSite. An application asset defines the precise characteristics by which Mediator can identify messages from a specific consumer application at run time.

The ability of Mediator to relate a message to a specific consumer application enables Mediator to:

The following figure shows the log entry for a request that a consumer application has submitted to a virtual service. Note that the entry identifies the consumer application from which the request originated. This identification is enabled by an application asset that has been defined in the CentraSite registry.

graphics/scrn_TransactionDetails.png

Top of page

How Does Mediator Identify Consumer Applications at Run Time?

To determine the consumer application from which a request was submitted, a virtual service must have a run-time policy that includes the Identify Consumer action. This action extracts a specified identifier from an incoming request and locates the application asset defined by that identifier.

For example, if you configure the Identify Consumer action to identify consumers by IP address, Mediator extracts the IP address from a request's HTTP header 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 the following information in a request message.

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 request that the consumer application submitted to the virtual service.
Consumer Certificate The X.509 certificate supplied in the header of the SOAP request that the consumer application submitted to the virtual service.

Top of page

Defining Application Assets in CentraSite

An application asset specifies the precise identifiers by which messages from a particular consumer application will be recognized at run time. An application asset has the following attributes for specifying these identifiers:

For example, the following application asset describes a consumer application called SalesAnalyzer, which is defined by a range of IP addresses.

graphics/scrn_ConsumerIPAddress.png

Synchronizing the Application Assets in CentraSite with the Mediator

When Mediator identifies a consumer application at run time, it searches a local list of application assets that it maintains. This list is initially downloaded from the CentraSite registry when you start Mediator. Mediator periodically resyncs the list to keep it up-to-date.

Be aware that application assets are made available to Mediator as soon as they are added to the registry. That is, an application asset that you add to CentraSite is given to Mediator the next time Mediator resyncs its local list with the registry. Therefore, you should not add an application asset to CentraSite's registry until you are able to provide the proper identifiers for it.

Top of page

Deciding How to Identify a Consumer Application

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

Note:
Depending on which form of identification you choose, the run-time policy that you use to extract the consumer identifier might need to perform certain prerequisite actions prior to the Identify Consumer action. For example, if you want to identify a consumer application by WS-Security authentication token, your run-time policy must execute the Require WSS Username Token action before it executes the Identify Consumer action. These dependencies are described in the user documentation for the Identify Consumer action.

Top of page

Registering an Application Asset with a Virtual Service

You use the Register as Consumer command in CentraSite to associate an application asset with a virtual service. This command establishes an association between the application asset (which represents a consumer application) and the virtual service that it consumes. Registering an application asset with a virtual service enables you to use the Impact Analysis feature in CentraSite to quickly determine which virtual services a consumer application consumes (and also determine which consumer applications use a particular virtual service).

Additionally, if you use the Authorize Against Registered Consumers policy action to control access to a virtual service at run time, only registered consumer applications are allowed to invoke the virtual service. Consequently, when you use this form of access control, the consumer applications that are permitted to use a virtual service must be registered to the virtual service.

The Consumer Registration Process

When you execute the Register as Consumer command, CentraSite does not immediately register the application asset with the virtual service. Instead, it triggers a review and approval process that includes the following steps:

  1. CentraSite submits the request to the owner of the virtual service for review and approval.

  2. The virtual service owner reviews the request and approves the request or rejects it. If the request is approved, CentraSite executes the consumer-registration policy. This policy actually registers the application asset with the virtual service.

The Consumer-Registration Policy

The consumer-registration policy is a policy that includes the Register Consumer action and executes on the OnConsumerRegistration event. The OnConsumerRegistration event occurs when the owner of the asset approves the registration request, not when the user submits the registration request. CentraSite does not provide a consumer-registration policy out-of-the-box. You must create this policy for your instance of CentraSite. CentraSite will not enable the consumer-registration feature until you create this policy.

Important:
If you will be using the Authorize Against Registered Consumers policy action to control access to a virtual service at run time, you should strongly consider including an approval step in your consumer-registration policy. When you use this form of access control on a virtual service, registering a consumer application with the virtual service grants that consumer application permission to invoke the service. To ensure that only authorized applications are registered with a virtual service, you might want to have a security administrator review and approve this type of registration request.

Top of page

Issues to Consider when Defining Applications

When defining application assets, keep the following points in mind:

Top of page