Configure RestTemplate
Spring Boot offers a RestTemplate to help
facilitate making rest calls. The Onegini Extension Engine has exposed an instance of that object by default to be used within your scripts. It can be accessed
using the global REST_TEMPLATE
. You may need to configure other classes for use in your JavaScript in order to use
the RestTemplate properly.
Configure connection and read timeouts
The timeouts can be set using the following properties
Property Name | Default |
---|---|
REST_SERVICES_READ_TIMEOUT_MILLIS | 30000ms |
REST_SERVICES_CONNECT_TIMEOUT_MILLIS | 30000ms |
See writing scripts for help using the RestTemplate object.