CentraSite 10.5 | 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 Generation
 
Configuring Email Templates for Access Token Generation
Notifications about the usage of new API key or OAuth 2.0 access token are generated and sent to both the API Provider and API Consumer.
CentraSite supports the following types of notifications for the access token generation:
*An access token request is pending for approval - an information type message to the API Provider.
*An access token request is approved - an information type message to the API Consumer.
*An access token request is rejected - an information type message to the API Consumer.
*To configure notifications for access token generation
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 KeyGenerationSettings.
The notification settings for the API key and OAuth 2.0 token generation would look like the following:
<KeyGenerationSettings>
<Approve
subject="CS_MSG_INMBU_DEFAUL_EMAIL_SUBJECT_ACCESS_KEY_GENERATION_SUCCES
S_OR_APPROVE"
template="APIKeyGenerationSuccess.html" />
<ApprovalRequest
subject="CS_MSG_INMBU_DEFAUL_EMAIL_SUBJECT_ACCESS_KEY_GENERATION_PENDI
NG"
template="PendingApprovalNotification.html" />
<Reject
subject="CS_MSG_INMBU_DEFAUL_EMAIL_SUBJECT_ACCESS_KEY_GENERATION_REJE
CT"
template="RejectionNotification.html" />
</KeyGenerationSettings>
3. Uncomment the section API Key Settings to enable the access token generation notifications.
4. Use the property, Approve, to set the subject and body of the notification message for the API Consumer whose access token generation 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 generation 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 generation request is rejected.
7. Save and close the file.
8. Restart Software AG Runtime.