Forum Discussion
Stanislas_Piro2
Sep 22, 2017Cumulonimbus
Hi,
irule event is not the good solution.
APM have some events you can use:
- ACCESS_SESSION_STARTED : before VPE Evaluation and before 302 redirect to /my.policy
- ACCESS_POLICY_COMPLETED : after VPE Evaluation and before 302 redirect to landing uri
If you do a redirect in ACCESS_POLICY_AGENT_EVENT, I'm not sure it will work and your access session will never complete.
In your case, I recommend to use ACCESS_POLICY_COMPLETED
when ACCESS_POLICY_COMPLETED {
set path [ACCESS::session data get session.server.landinguri]
set host [ACCESS::session data get session.server.network.name]
if { $path contains "Test_canvas_idp" } {
HTTP::redirect "https://sierra.test.instructure.com";
}
}
for information, the answer already exists in previous questions