16-Sep-2019 03:09
16-Sep-2019 04:36
Hi,
you simply create an assign variable before the end of your VPE and you set it as follows:
You can do IT manually, this means that whatever the user enters as URL, he will be redirected to the desired URL at the end of the authentication process.
Custom variables:
session.policy.result.redirect.url
custom Expression:
return "/myurl/"
otherwise the APM does it automatically. with the landing URI.
keep me in touch if you need more details. and if I answer to your need.
regards
16-Sep-2019 08:31
Thank you for your fast response.
This is our expected behavior:
Current behaviror:
16-Sep-2019 11:30
Hi Mohammed,
Yes, I have achieved this for ezproxy (SaaS) application with SAML.
You need irule for landinguri
when ACCESS_POLICY_COMPLETED {
switch -glob [string tolower [ACCESS::session data get session.server.landinguri]] {
***************************************************************************
https://clouddocs.f5.com/api/irules/ACCESS_POLICY_COMPLETED.html
K91940158: How to auto-launch SAML SP resources
https://support.f5.com/csp/article/K91940158
16-Sep-2019
12:09
- last edited on
01-Jun-2023
14:45
by
JimmyPackets
Hi,
You have a strange behaviour.
By design, APM redirect the user to the session.server.landinguri after APM policy completed.
The session.server.landinguri is filled with the very first request the user do to your application. So, this var should be good for your need.
Can you test this irule by the way:
when ACCESS_POLICY_COMPLETED {
set mylandinguri [ACCESS::session data get "session.server.landinguri"]
ACCESS::respond 302 "Location" "$mylandinguri" "Connection" "Close"
}
It will respond to your need.
regards
30-Jun-2023 08:52
Have you tested this irule as on 16.1.3.5 this breaks the web page and there are TCL errors? I think that ACCESS:respond works well to return a custom page if the auth fails or the access policy is successfull but not for redirection.