CentraSite 10.5 | CentraSite User’s Guide | Runtime Governance | Access Token Management | Managing Access Tokens through CentraSite Business UI | Changing the Default Scheduler for Fetching Access Token Requests
 
Changing the Default Scheduler for Fetching Access Token Requests
Beginning with version 9.12, API Portal is configurable to work as a standalone component. This means that an instance of API Portal can be integrated with any third-party API Management tool (other than CentraSite or Mediator) for the access token requests of APIs deployed in the third-party environments.
When an API developer requests an API access token (access token of type API key or OAuth2) in API Portal, the API access token request is sent to CentraSite. CentraSite then receives the request for the access token, generates the access token, and sends the access token details to API Portal. If a transient failure occurs while sending the access token request to CentraSite, as a fallback option for the transient failure, the access token request is flagged and stored in an events table in the API Portal's internal database. Requests for renewal and revocation of access tokens are also handled in a similar manner.
When CentraSite is configured to API Portal 9.12, CentraSite uses a default scheduler that is scheduled to run once every two hours (120 minutes) to pick up such access token requests from the API Portal's internal database. CentraSite then processes the access token requests, and sends the access token details to API Portal.
To reschedule the scheduler to run at a different time interval (other than the default 120 minutes), change the global value of PollingInterval in the centrasite.xml file.
*To change the default scheduler for fetching access token requests
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 named <AccessTokenFetchSettings>
The property <AccessTokenFetchSettings> is commented and would look like the following:
<AccessTokenFetchSettings>
<!-- API Keys and OAuth request New, Renew, Revoke
is fetched periodically -->
<!-- Interval duration is minutes -->
<!-- Default fetching interval is 120 minutes -->
<FetchingInterval>120</FetchingInterval>
</AccessTokenFetchSettings>
3. Uncomment the property <AccessTokenFetchSettings>.
4. Change the default value set for the property PollingInterval.
5. Save the configuration file.
6. Restart Software AG Runtime for the changes to take effect.
Post-requisites:
If at a later time, you want to switch to the default scheduler settings, comment the property <AccessTokenFetchSettings>, and then restart Software AG Runtime.