I struggle to find a solution that would allow my automate test to log in successfully to some of my company`s applications through Okta by means of doing API calls to Okta.
I have read a lot of the Okta documentation and different questions here in the devforum, however I do not seem to get to the ultimate solution. What I have done so far is:
- Called api/v1/authn and got sessionToken in return
- Called /api/v1/sessions with this sessionToken in order to create a session, and got a 200 OK with, among others, id in the response body
- I thought that would be enough to get into my application`s URL and be logged in automatically, but instead I keep getting the Okta login screen
Can you please help me out?
Thank you and best regards,