Forum Discussion
sricharan61
Cirrus
Feb 13, 2020How to add tenant ID check to existing if loops for redirects
I need to add an additional check to look for a tenant ID that will be set through an access policy assigned to the VIP, before redirecting to either of two destinations. Currently, I have this code ...
sricharan61
Cirrus
Feb 18, 2020I have hashed the tenant ids on purpose, yes, the ask is to check for another parameter as an if on top of two existing conditions, but, in a set of two ifs as an "and" and followed by another if , incase the first is matched, I was able to accomplish this with this code
if { [HTTP::uri] starts_with "/logout-apm" and $tid contains "bbbbbbbb-vvvv-qqqq-yyyy-xxxxxxxxxxx"}
{
if { [HTTP::uri] contains "post_logout_redirect_uri" }
Thanks
- cjuniorFeb 18, 2020
Nacreous
So, does that mean you solve this case or you still need help some way?
Regards.
- sricharan61Feb 18, 2020
Cirrus
It is resolved now, thanks for your help!😊