SoapUi not completing Post call to get Access Token with (3 legged )oauth2 and PingFederate
I am trying to perform a 3 legged authentication using soapui and its not able to get me the access token. The process involves:
1. Sign in to a local resource as a registered user and if that happens successfully it generates a code. Its as follows:
GET REQUEST:
RESPONSE:
<!-- template name: form.autopost.template.html -->
<html>
<head>
<title>Submit Form</title>
</head>
<body onload="javascript:document.forms[0].submit()">
<noscript>
<p>
<strong>Note:</strong> Since your browser does not support JavaScript, you must press the Resume button once to proceed.
</p>
</noscript>
<form method="post" action="https://apixxlogin.xxxxxxxxxxx.com/sxxxxxxxxxxd/sxxLogin.xhtml">
<input type="hidden" name="allowInteraction" value="true"/>
<input type="hidden" name="reauth" value="false"/>
<input type="hidden" name="resumePath" value="/as/bzXnV/resume/as/authorization.ping"/>
<noscript>
<input type="submit" value="Resume"/>
</noscript>
</form>
</body>
</html>
Above generates a resumePath which we copy and pass it on to get registered user verification code. The next request is:
POST REQUEST:
(un = username, pw=password)
https://apiqalogin.xxxxxxxxxxxx.com/sxxxxxxxxd/sxxLogin.xhtml?resumePath=/as/bzXnV/resume/as/authorization.ping&clurl=/ssxxxxxxxxd/sxxLogin.xhtml&un=xxxxxx&pw=xxxxx
RESPONSE:
HTTP/1.1 200 OK
X-FRAME-OPTIONS: SAMEORIGIN
Set-Cookie: JSESSIONID=7B6xxxxxAE1A2F99CA1BF5725BC8C12E0; Path=/; Secure; HttpOnly
Cache-Control: no-cache
Content-Type: text/html;charset=ISO-8859-1
Content-Length: 358
Date: xxxxxxMay 2016 1xxxxxx1 GMT
Server: XXXXXXX
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="refresh" content="0;URL=home/userLogin.xhtml"/>
<title>XXXXXXXXXXXXXXXX</title>
<link href="favicon.ico" rel="shortcut icon" type="image/x-icon"/>
</head>
<body>
<p align="center" style="font:14px/80px Arial bold; color:#424242;">xxxxxxx is loading...</p>
</body>
</html>
I am trying to use above combination to login to an internal server that verifies the entered users identity against a pingFederate server and returns a code if successful. I am able to generate the code using same commands in POSTMAN but in soapui the POST response returns 200 OK but stays stuck and doesnt return rhe "Code"
I will appreciate if someone can please help how to do a 3 legged oauth using user verification and using that token to move forward to generate oauth token???