Our App uses OKTA login which automatically login to the app and token expires after 1 hour.
When I record app using Neotys, it works but when I playback the recorded session, it does not work after 1 hour (because OKTA token expires). How can I setup OKTA token when token expires?
Hi, how do you get the token originally? my memory is that is a mobile app. Can you not record the app traffic (I assume REST APIs) and get the generated token when needed as part of your existing test
Please see the screenshot, our application uses authorization token every time it runs, since the token expires every hour.
How can I get runtime token in the existing script? Token is never changing in my script during execution and failing due authorization issue. please help here.
Hi, you've not mentioned how you get the token, I don't mean the bearer one, that could be a correlation issue, the server should be sending it to you. What I mean is OTKA, normally the app provides you with a SecureID type code/token that you enter when you login
OKTA is authentication provider and provide token during login. Neotys capture this auth token during recording. But how the script automatically update auth token during next run?
Without seeing the application it's hard to give a precise answer but the first thing you need to solve is how to get the valid OKTA code, if this is indeed a mobile app, then I suggest recording the traffic from that, you could provide some credentials, send them to a REST API and get a code.
---
this code, along with the credentials for your web app allows you to login to your website. This is fine for when you first run the test
---
If the test run lasts over an hour, you could use Neoloads fork functionality, This could run in a parallel thread, in a loop, every 59 minutes it fires off a rest api call and login, refreshes the token global variable and passes that to your main test. This is all theory but worth a try?
No similar question