Forum Discussion

taggyboy's avatar
New Member
9 years ago

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:





<!-- template name: form.autopost.template.html -->
<title>Submit Form</title>

<body onload="javascript&colon;document.forms[0].submit()">
<strong>Note:</strong> Since your browser does not support JavaScript, you must press the Resume button once to proceed.

<form method="post" action="">
<input type="hidden" name="allowInteraction" value="true"/>
<input type="hidden" name="reauth" value="false"/>
<input type="hidden" name="resumePath" value="/as/bzXnV/resume/as/"/>
<input type="submit" value="Resume"/>





Above generates a resumePath which we copy and pass it on to get registered user verification code. The next request is:



(un = username, pw=password)



HTTP/1.1 200 OK
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

<!DOCTYPE html>
<meta http-equiv="refresh" content="0;URL=home/userLogin.xhtml"/>
<link href="favicon.ico" rel="shortcut icon" type="image/x-icon"/>
<p align="center" style="font:14px/80px Arial bold; color:#424242;">xxxxxxx is loading...</p>


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???

No RepliesBe the first to reply