Hi,
We have registered API in ION API which requires Authorization of Type Bearer Token (Bearer token is obtained by calling another API). In ION API, We have set Target Endpoint Security as Anonymous because there is no option for Bearer Token. We are using Endpoint Policy instead. We have set the Request Policy with PolicyType as Header and Header Value is set as below.
<header
xmlns="">http://www.infor.com/ion/api"
xmlns:xsi="">www.w3.org/.../XMLSchema-instance" name="header-example" displayName="header-example" enabled="true" version="1.0">
<action>set</action>
<headerName>Authorization</headerName>
<headerValue>Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6Imphc3VqYUBnb2RyZWouY29tIiwic3ViIjoiVlI4czM1OS94UmpZclJMNnRESm1GZz09Iiwic2VydmVyIjoidlpkalhNSXhaZG1JTVlxR1VFaFdPanFuZ2FaMjVUT1lMTkJ4L2xBK1FRM3h4ditoTnQvYm9CVmVMTDhOc1NhWSIsImp0aSI6ImYzYzdjMTA5LWZiNjAtNGI4ZS04NDQ5LTU1NmYzNDg4OTFlOSIsIm5iZiI6MTY1MDcxOTAwMCwiZXhwIjoxNjUwNzIyNjAwLCJpYXQiOjE2NTA3MTkwMDAsImlzcyI6IlNlbGxlckNsb3VkIiwiYXVkIjoiU2VsbGVyQ2xvdWQifQ.QGtsHGMM412oB85C_PJzHf3cg5yR3TCKJlEhCbKw1sw</headerValue>
</header>
Howerver, the token is valid only for 1 hour. So every 1 hour, we need to get new token and pass it to this API. Hence, we cannot hardcode the token value. In ION API Administration Guide, I found the option to set header value as shown below. But I am not aware how to set this variable.
<headerValue ref='context.url.tenant'/><br /><br />Have you come across such requirement? If so, can you please help how to achieve this?<br /><br />Thanks in advance.