JSON Tool refresh Bearer Token

Confluence User - 30 Jul, 2018

Hi,

i have a short question for an approval workflow in joget. In the first step in the Workflow i opened a json tool for quering an API before opening a new form. In this Form is all fine but when i commit this to the approver it is possible that the API Bearer Token is not longer alive and my API Query's run into a http 403 Forbidden. I don't wan't to call the API via a Custom HTML Container on the page, i think it was a security issue and also i will become a cross origin issue in chrome base browsers. Do you have some ideas to solve this problem?

Thanks

json

3


31 Jul, 2018
confluenceUser
confluenceUser

hi, what api do you call? for joget JSON api, you will need to do JSON API Authentication as it is calling from server side. 

 

31 Jul, 2018
confluenceUser
confluenceUser

No, i call a API for another system based on Apiplattform.com REST API wich return a Bearer token with a living time of 24h. In my process it is possible that some step need a longer time so the Bearer token was "invalid" in this step so i have to get a new one. 

31 Jul, 2018
confluenceUser
1
confluenceUser

I think i have a workaround btw. it is done. I used a Workflowvariable and asynchronus deadlines to move back to the API Auth after 20 Hours. With the Workflowvariable i will cooridinate the Workflow and access the correct steps. 

Thanks

 

RELATED QUESTIONS

Your answer


To answer a question you'll need an account.

Print