APM Cookbook: AutoLaunch SAML Resources
Published Aug 10, 2016
Version 1.0Was this article helpful?
Another potential option, rather than using a / just use a default option in the switch statement. More details here: https://devcentral.f5.com/s/articles/irules-101-04-switch.
 
And if you only have the one SAML app and don't need multiple options you can remove the switch statement entirely and just do the redirect in the two events (the when statements). Something like this.
 
when ACCESS_POLICY_COMPLETED {
ACCESS::respond 302 Location "/saml/idp/res?id=/Common/app1-saml-resource"
}
when ACCESS_ACL_ALLOWED {
ACCESS::respond 302 Location "/saml/idp/res?id=/Common/app1-saml-resource"
}