Forum Discussion
Call an access policy based on iRule condition
Hi Team,
We have a requirement to call an access policy that does SAML auth only based on a condition on iRule. For example, we have to do SAML auth only if a cookie is not present. Could you please guide us on how to achieve this? i.e., If the required cookie is present, then allow access to the pool. Else, do a SAML auth.
I tried assigning the iRule that checks for the cookie and the access policy that does SAML auth. But, if the cookie is not present how do I call access policy?
Thanks, Neeharika
2 Replies
can't you do it the other way around? assign an access policy and skip it when the cookie is present?
this give a simple explame: https://devcentral.f5.com/wiki/iRules.ACCESS__disable.ashx
- Neeharika_Redd1
Nimbostratus
Thanks a ton! Use of the commands ACCESS::enable and ACCESS::disable worked! :) Thanks so much!
~Neeharika
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