CentraSite Documentation : Working with the CentraSite Business UI : API Management Solutions : Managing API Keys and OAuth 2.0 Tokens : Satisfying Key and OAuth Token Generation Requirements : Configuring the Email Templates for API Key or OAuth Token Generation
Configuring the Email Templates for API Key or OAuth Token Generation
Notifications informing details and usage of the new API key or OAuth token are generated and sent to both the API provider and API consumer.
There are three kinds of key generation notifications:
*An API key or OAuth token request is pending for approval - an information type message to the API provider.
*Your API key or OAuth token request is approved - an information type message to the API consumer.
*Your API key or OAuth token request is rejected - an information type message to the API consumer.
You can configure delivery of such notifications in the centrasite.xml configuration file.
To configure notifications for API key or OAuth token generation
1. Use a text editor to open the custom centrasite.xml file. The configuration file is located in the <CentraSiteInstallDir>\cast\cswebapps\BusinessUI\ directory.
2. Locate the KeyGenerationSettings element in the file.
The key generation notification settings 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 key generation notifications.
4. Use the Approve property to set the subject and body of the notification message for the consumers whose API key or OAuth token request is approved.
5. Use the ApprovalRequest property to set the subject and body of the notification message for the provider who has an API key or OAuth token request pending for approval.
6. Use the Reject property to set the subject and body of the notification message for the consumers whose API key or OAuth token request is rejected.
7. Save and close the file.
8. Restart Software AG Runtime.
Copyright © Software AG, Darmstadt, Germany.

Product LogoContact Support   |   Community   |   Feedback