Forum Discussion
mohammed1
Sep 16, 2019Nimbostratus
Original URL redirect after APM authentification
I need user gets automatically redirected to the original URI after the APM authentication is completed successfully. Your help please Thanks
Sajid
Sep 16, 2019Cirrostratus
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]] {
***************************************************************************
- when HTTP_REQUEST {
- if { ( [HTTP::cookie exists MRHSession] ) and not ( [ACCESS::session exists -state_allow [HTTP::cookie value MRHSession]] ) } {
- if { ( [HTTP::uri] ne [ACCESS::session data get session.server.landinguri] ) and not ( [ACCESS::session data get session.server.landinguri] eq "" ) } {
- HTTP::redirect [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
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