Skip to main content

Hi All,

I am trying to call a REST API and it has Basic Authorization. User and password were defined in ‘IFS REST Task Configurations’ as the first step.
My problem is, I need to create an ‘AuthHeader’ using User and Password in an inline script. However it looks like you cannot refer values defined in REST Task Configurations in an inline script.
Although it is possible to hard-code user and password in an inline script, I am trying to figure out how to externalize user/password using 24R2 new feature ‘REST Task Configurations’.

Does anyone know how to utilise REST Task Configurations for defining user and password for basic Authorization?

Hi,

if possible, you can try to pre create the “AuthHeader” and store it in the ‘IFS REST Task Configurations` and refer that in the workflow ?


@kamnlk ,

If you have done this successfully , please provide an example.
 


@GaSoGB 

would it be possible to share a sample workflow/screenshot on how the request supposed to be like. It would help lot more into identifying the issue you are facing 


@kamnlk ,
Apologies,  you are absolutely correct. I was able to make it work.

 

 


Reply