Forum Discussion
mike_drennen_16
Cirrus
Aug 24, 2015Redirect to external website through APM based on AD group membership.
I have an issue where I am need to direct users to a separate login page if they are members are a particular AD group. We are wanting to test SAML SSO in Prod for a particular cloud application we ...
mike_drennen_16
Cirrus
Aug 25, 2015I was able to find a solution to this using an iRule.
when ACCESS_POLICY_COMPLETED {
set workfront_redirect ""
set memberOfList [split [ACCESS::session data get session.ad.last.attr.memberOf] "|"]
foreach x $memberOfList {
if { [class match [string trim $x] equals workfront_datagroup]} {
set workfront_redirect "true"
}
}
if { $workfront_redirect eq "" } {
ACCESS::respond 302 noserver Location "https://mrc.cr1.attasksandbox.com/login"
}
}
I was unable to call HTTP::redirect from within ACCESS_POLICY_COMPLETED, that's why I had to use the workaround with a 302 response.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects