cancel
Showing results for 
Search instead for 
Did you mean: 

Parse response from remote server HTTP Auth Agent

Squeak
Cirrus
Cirrus

Hi,

 

The setup

 

  1. User logs in on the logon page with their social security number.
  2. The variable "session.logon.last.username" gets populated with the with the social security number
  3. I use a HTTP Auth Agent to send the session.logon.last.username to get authenticated by a remote server with a Custom Post.
  4. Here is my issue, I need to parse the response form the remote server and save it to a variable, because the remote server are sending back the SAMaccountname of the user.

 

 

I can see that the HTTP Auth Agent sends the variable (I use a layered virtual server for SSL)

<HTTP_REQUEST_DATA>: {"SocialSecurityNumber":"XXXXX-XXXX"}

 

I can see that the remote server responds with the correct info.

 <HTTP_RESPONSE_DATA>: payload is {"SAMaccountname":"xxxxxxx,"}

 

For the life of me I can´t figure out how to parse the response.

2 REPLIES 2

Dave_W
F5 Employee
F5 Employee

​Hello, you should be able to do this with an iRule:

 

K07535385: Extracting data from HTTP payload using iRules

https://support.f5.com/csp/article/K07535385

 

ACCESS::session data set

https://clouddocs.f5.com/api/irules/ACCESS__session.html

Hi,

I´ll try this.

 

Thanks.