Forum Discussion
Rosieodonell_16
Cirrus
Oct 21, 2015Change which SSO you use based on if your device is mobile or not.
Hey Everyone, I have Virtual server with an access policy where i need to switch the SSO based on what kind of device you are using. Both SSO is "Forms - Client initiated". I created product_mobi...
Rosieodonell_16
Cirrus
Oct 21, 2015So i tried this code:
when HTTP_REQUEST {
if { (([string tolower [HTTP::header "User-Agent"]] contains "iphone") && ([string tolower [HTTP::uri]] equals "/"))} {
log local0. "Redirecting by iphone detection"
HTTP::respond 302 location "https://www.company.com/mobilepage.aspx"
} elseif { [string tolower [HTTP::uri]] equals "/" } {
set sso_config /Common/product_tablet_sso
WEBSSO:select $sso_config
unset sso_config
log local0. "Redirecting without iphone detection"
HTTP::respond 302 location "https://www.company.com/tabletpage.aspx"
}
}
I don't get the error anymore but the sso doesn't work either. Still looking for assistance!
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