CentraSite Documentation : Runtime Governance with CentraSite : Consumer Registrations : Implementing Consumer Registration : Run-Time Consumer Registration Scenarios : Scenario C: Virtual Service with API Consumption Settings and without Evaluate Policy Action
Scenario C: Virtual Service with API Consumption Settings and without Evaluate Policy Action
Pre-requisites for scenario C are:
*The asset should be an instance of the virtual type - Virtual Service, Virtual REST Service, Virtual XML Service.
*The API consumption settings should be configured for the asset.
An Evaluate * policy action should not be included in the asset's run-time configuration.
To register as a consumer of an asset of this scenario, proceed as follows:
1. Display the details page for the asset to which you want to register as a consumer. If you need procedures for this step, see Working with the CentraSite Business UI for details.
2. In the actions bar for the asset, click Consume.
3. In the Consume API dialog, you can choose to do one of the following:
*Generate access tokens for an existing Consumer Application asset to make API calls on the displayed asset. To do so, follow the steps below:
i. Select the type of authentication token that you want to use to allow the consumer to access the asset.
*API Key - CentraSite will generate an API key (a base64-encoded string of the consumer-key:consumer-secret combination) to access and test the asset.
*OAuth2 Token - CentraSite will generate the OAuth2 client credentials (a client_id and client_secret) to further request an OAuth2 token to access and test the asset.
For more details about the usage of the authentication tokens, see Obtaining Your API Keys and Access Tokens for Consumption.
For more details on the configuration settings for API Key/OAuth2 authentication, refer to the section "Configuring the API Consumption Settings" in Working with the CentraSite Business UI.
ii. Enter the name of the Consumer Application asset in the field labeled Consumer Application Name.
iii. Mark the Email me checkbox to automatically generate an email notification about the usage of access token to the user at the email address provided at registration.
iv. Enter reason of the request in the textbox.
v. Click Consume .
*Register an arbitrary asset as consumer of the asset. To do so, follow the steps below:
i. Click on the Consume using other assets link.
ii. In the Consume Asset dialog, you can choose to do one of the following:
*Register an existing asset as consumer of the displayed asset.
*Create a new asset in CentraSite, and then register the newly created asset as consumer of this asset.
For instructions, see Design-Time Consumer Registration Scenario.
Copyright © 2005-2015 Software AG, Darmstadt, Germany.

Product LogoContact Support   |   Community   |   Feedback