Forum Discussion
Parse response from remote server HTTP Auth Agent
Hi,
The setup
- User logs in on the logon page with their social security number.
- The variable "session.logon.last.username" gets populated with the with the social security number
- I use a HTTP Auth Agent to send the session.logon.last.username to get authenticated by a remote server with a Custom Post.
- 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.
- Dave_W
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
- Squeak
Cirrus
Hi,
I´ll try this.
Thanks.
Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com