How to persist API Token

Confluence User - 23 Dec, 2019

Hi,

I have created a process that uses the Json tool to get an API token from my Https call.

I get the token back, and are then using the token in my next call.. but it's seems that my token is no longer valid (e.g. looks like my connection is not persisted, and the new connection fails because another token is expected).

Same calls works with other tools like Postman and even VBA.

Is there a way for joget to persist the connection (e.g token value), throughout the entire process? 

process;json

2


24 Dec, 2019
confluenceUser
confluenceUser

Hi, in the JSON Tool you can configure it to store the value of token in a form or a workflow variable. You can then add that token in the request header using either the Hash Variable#FormDataHashVariable or Hash Variable#WorkflowVariableHashVariable

25 Dec, 2019
confluenceUser
confluenceUser

Anders,

I am already storing the token I get from the first call (as a workflow variable), and use it for the 2nd call in the process.

The problem is that the token is expired, since that the 2nd call is a new session.

RELATED QUESTIONS

Your answer


To answer a question you'll need an account.

Print