CentraSite Documentation : Working with the CentraSite Business UI : API Management Solutions : Managing API Keys and OAuth 2.0 Tokens : Revoking an OAuth2 Client : Using Custom Email Templates for OAuth2 Client Revocation
Using Custom Email Templates for OAuth2 Client Revocation
Once the OAuth2 client revocation is processed, CentraSite sends an email message to the API consumer informing that the request has been processed successfully.
CentraSite provides predefined email template for the OAuth2 client revocation. By default, this template is configured in the centrasite.xml file. But, if you do not want to use the predefined email template, you can create and add your own email template to CentraSite, and configure the centrasite.xml file as necessary. For more information on creating and adding custom email templates to CentraSite, see the CentraSite User’s Guide.
To use custom email templates for OAuth2 client revocation
1. Use a text editor to open the configuration file centrasite.xml. The configuration file is located in the <CentraSiteInstallDir>\cast\cswebapps\BusinessUI\custom\conf directory.
2. Locate the KeyRevocationSettings element in the file.
The key revocation notification settings would look like the following:
<KeyRevocationSettings>
<Approve
subject="CS_MSG_INMBU_DEFAUL_EMAIL_SUBJECT_ACCESS_KEY_REVOCATION_NOTIFI
CATION"
template="APIKeyRevocationSuccess.html"/>
</KeyRevocationSettings>
3. Uncomment the section APIKeySettings to enable key revocation notifications.
4. In the Approve property, provide a suitable subject if you do not want to use the default subject, and specify the name of the custom email template.
5. Save and close the file.
6. Restart Software AG Runtime.
For more information on how to configure an email notification for OAuth2 client revocation in the CentraSite Business UI, see Configuring the API Consumption Settings.
Copyright © 2005-2016 Software AG, Darmstadt, Germany.

Product LogoContact Support   |   Community   |   Feedback