Forum Discussion
I want to append RelayState parameter after the http payload and send the request to server
you should use HTTP::uri to set new uri, here are the link:
https://clouddocs.f5.com/api/irules/HTTP__uri.html
iRules code:
when HTTP_REQUEST {
if { [HTTP::uri] starts_with "/adfs/ls/SAMLResponse=<XYZ>" } {
set uri [HTTP::uri]
HTTP::uri [append uri "&RelayState=RPID%3Dliferaydevsp"]
}
}
I`m able to see its appending "&RelayState=RPID%3Dliferaydevsp" before "&SAMLResponse=ENCRYPTEDBODY"
But is it possible to append after the SAML body?
Like below,
"&SAMLResponse=ENCRYPTEDBODY&RelayState=RPID%3Dlifedevsp"
This is what we have currently->
when HTTP_REQUEST {
if { [HTTP::uri] starts_with "/adfs/ls/" } {
set uri [HTTP::uri]
HTTP::uri [append uri "&RelayState=RPID%3Dlifedevsp"]
}
}
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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