Skip to main content
Question

Unable to use dynamic secure params in custom apps


Rithik S
Apprentice
Forum|alt.badge.img

Hi, I am encountering an issue after packing my app.
Actually, i have a secure iparam with a dynamic name - named api_agentId (eg: api_12345678)

 

"headers": { "Authorization": "<%= iparam['api_' + context.agentId] %>" }

 

When I attempt to use the above code snippet in requests.json, I encounter authorization issues because its becomes uindefined.

However, when I use a static name like ‘apikey’ as an example, I can successfully authorize access.

This issue only arises after I pack the app, there are no issues when I use ‘fdk run’.

Could you please provide assistance with this?

Did this topic help you find an answer to your question?

4 replies

Rithik S
Apprentice
Forum|alt.badge.img
  • Author
  • Apprentice
  • 2 replies
  • October 11, 2023

Reference image!


eeha0120
Skilled Expert
Forum|alt.badge.img+12
  • Skilled Expert
  • 785 replies
  • October 11, 2023

Hi.

I’d suggest to submit a support case for this.

 

Regards,


Rithik S
Apprentice
Forum|alt.badge.img
  • Author
  • Apprentice
  • 2 replies
  • October 13, 2023

Hi @eeha0120,


Thank you for the reply.

Actually, This is an issue that many are facing.
 


eeha0120
Skilled Expert
Forum|alt.badge.img+12
  • Skilled Expert
  • 785 replies
  • October 13, 2023
Rithik S wrote:

 Hi @eeha0120,


Thank you for the reply.

Actually, This is an issue that many are facing.
 

Too bad to read that. Haven’t been there (yet). Hopefully, FW Development team would address this sooner that later.

 

Best,


Reply