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.