https redirect irule
We have an ADFS server that we can use to SSO into a third party application.
To hit the third party applciation we need to hit: https://adfs.mydomain.com.au/adfs/ls/IdpInitiatedsignOn.aspx?loginToRp=https://ppm.3rdparty.com
Now adfs.mydomain.com is actualy three servers load balanced by the f5, certificates are on the servers themselves not offloaded to the f5 due to technical issues.
Basically I would like users to be able to hit https://adfs.mydomain.com.au/ppm and get taken to https://adfs.mydomain.com.au/adfs/ls/IdpInitiatedsignOn.aspx?loginToRp=https://ppm.3rdparty.com so that they don't have to remember the long URL. I was thinking I could use the below, Can anyone validate?
when HTTP_REQUEST { if { [string tolower [HTTP::uri]] starts_with "/ppm" } { HTTP::uri [string map -nocase {"/ppm" "/adfs/ls/IdpInitiatedsignOn.aspx?loginToRp=https://ppm.3rdparty.com "} [HTTP::uri]] }}