I have written scala test case which do Okta authentication before login in jira
I am using proxy in my script to interact with okta firewall.
script execution is giving me intermittent results- sometimes it works fine(user is logged in successfully) -but sometimes it gives me 400 error (on API call no 7 in below list)
I tried putting pause in script but no gain.
can someone pls guide me how can i fix this issue.
Below is the list of okta authentication api calls which i am using in my script sequentially-
Note- I have removed my org name in the below api calls
Last API(No 7) is giving 400 error intermittently-As this helps in redirecting the user to jira home page
- https://jira-dev.com/jira/login.jsp?os_destination=%2Fdefault.jsp
- “https://ssoi-dev.com/app/dev_jirae1_1/#{Enterprise}/sso/saml”
- “https://ssoi-dev.com/login/login.htm”
- “https://ssoi-dev.com/api/v1/authn”
- “https://ssoi-dev.orgname.com/api/v1/authn/factors/password/verify?rememberDevice=false”
- “https://ssoi-dev.com/login/sessionCookieRedirect”
- “https://jira-dev.com/jira/plugins/servlet/samlconsumer”
Error -
Request:
/https://jira-dev.com/jira/plugins/servlet/samlconsumer: KO status.find.in([200, 209], 304), found 400
Response Body
**We had trouble logging you in**. - JIRA Dev