Forum Discussion
2 Replies
Sort By
- xuwenCumulonimbus
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"]
}
}
- PratikMagarNimbostratus
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"]
}
}