CentraSite User's Guide : Runtime Governance : Access Token Management : Managing Access Tokens through CentraSite Business UI : Configuring Email Templates : Configuring Email Templates for Access Token Renewal
Configuring Email Templates for Access Token Renewal
Notifications informing the new validity of the API key and OAuth 2.0 token are generated and sent to both the API provider and API consumer.
CentraSite supports the following types of notifications for the access token renewal:
*An API key renewal request is pending for approval - an information type message to the API provider.
*Your API key renewal request is approved - an information type message to the API consumer.
*Your API key renewal request is rejected - an information type message to the API consumer.
To configure email templates for access token renewal
1. Open the customization file, centrasite.xml, in a rich text editor.
You can find the centrasite.xml file on <CentraSiteInstall_Directory>\cast\cswebapps\BusinessUI\custom\conf.
2. Locate the property KeyRenewalSettings.
The notification settings for the API key and OAuth 2.0 token renewal would look like the following:
<KeyRenewalSettings>
<Approve
subject="CS_MSG_INMBU_DEFAUL_EMAIL_SUBJECT_ACCESS_KEY_RENEWAL_SUCCESS_OR_
APPROVE"
template="APIKeyRenewalSuccess.html" />
<ApprovalRequest
subject="CS_MSG_INMBU_DEFAUL_EMAIL_SUBJECT_ACCESS_KEY_RENEWAL_PENDING"
template="APIKeyRenewalPendingNotification.html" />
<Reject
subject="CS_MSG_INMBU_DEFAUL_EMAIL_SUBJECT_ACCESS_KEY_RENEWAL_REJECT"
template="RejectionNotification.html" />
</KeyRenewalSettings>
3. Uncomment the section API Key Settings to enable the access token renewal notifications.
4. Use the property, Approve, to set the subject and body of the notification message for the API Consumer whose access token renewal request is approved.
5. Use the property, ApprovalRequest, to set the subject and body of the notification message for the API Provider who has an access token renewal request pending for approval.
6. Use the property, Reject, to set the subject and body of the notification message for the API Consumer whose access token renewal request is rejected.
7. Save and close the file.
8. Restart Software AG Runtime.
Copyright © 2015- 2017 Software AG, Darmstadt, Germany. (Innovation Release)

Product LogoContact Support   |   Community   |   Feedback