Skip to Content
0
Mar 09, 2020 at 06:58 PM

SAP PI/PO - Dynamic Token Authentication for REST Receiver every 12 hours.

1592 Views

Hi,

I have a requirement to integrate with Movilitas Cloud API. We have token based authentication and I need to call api using REST adapter in SAP PI. The auth token has to be passed in the JSON header, but the token expires every 12 hours. I need to request the token once in 12 hours and every outgoing message within this time period should use the same token and not request a new token for every request. Kindly provide your valuable suggestions on how to achieve this.

I am thinking of a scheduled interface only to get the token and store it in a VMR. The actual interface uses the value from VMR in the mapping and then call the API.