Ways to authorize user based on connected system

Certified Associate Developer

Hello All,

We have implemented OKTA. As a part of which we have created a connected system, that handles the user token authorization and allows user to perform operations based on valid tokens. We don't have any controls overs the token recieved as those are stored with appian and it gets expired after every 24 hours. Hence, we have to provide some way for users to regenerate their access token. To achieve this we are making a call to a specific table at the start of process model and if it gives 401 or 403 as a status code in response, We are showing a link in the interface saying "Your access token is expired" and giving them a link which they can click and regenerate the token. We have used a!authorizationLink() function for the same. Now the problem is that this function doesn't have any saveinto parameters inside it. Due to that its not possible for us to get to know whether user has refreshed their token or not. This information is necessary because we want to hide that link once user is done with the authorization. So that user won't get confused seeing the same message even after authorizing themselves. Does anyone has any idea how we can acheive this functionality without putting unnecessary "OK" button?

  Discussion posts and replies are publicly visible