Forum Discussion
blwavg_10621
Nimbostratus
Nov 12, 2013SAML SSO Without a Webtop
The F5 is the SAML IDP for an external cloud based service. I am working on setting up and testing this on a webtop. Is it possible to not have to use a webtop? For example, setup an internal DNS rec...
Michael_Koyfma1
Cirrus
Oct 08, 2015I think I am going to hazard a guess what's going on wrong here. If the user navigates away from the webtop, and hits the virtual again, they will be sent to the login page even if they present a valid MRHSession cookie. You can control that behavior using an irule as well:
when HTTP_REQUEST {
if { ( [HTTP::cookie exists MRHSession] ) and ( [ACCESS::session exists -state_allow [HTTP::cookie value MRHSession]] ) and ( [HTTP::uri] equals "/" ) } {
HTTP::redirect "https://[HTTP::host]/vdesk/webtop.eui?webtop=/Common/portal_webtop&webtop_type=webtop_full"
}
}
Rabbit23_116296
Nimbostratus
Oct 14, 2015Thank you both very very much. Understanding the ACCESS::session methods was the key here that I clearly didn't have. Steak dinners on me!
if the URI isn't a redirect to an SP resource, and it's an active session - redirect to the SAML SP resource
if { ( [HTTP::cookie exists MRHSession] ) and ( [ACCESS::session exists -state_allow [HTTP::cookie value MRHSession]] ) and ( [HTTP::uri] equals "/" ) } {
switch [string tolower [HTTP::host]] {
"learning.pseudo.com" {
log local0.notice "~~~~~~~~~~~~~~Cookie matches and allowed for LEARNING: Looks like we found an IDP initiated with URI: [HTTP::uri]"
HTTP::redirect "https://learning.pseudo.com/saml/idp/res?id=/SSO/kallidus"
}
"bluetube.pseudo.com" {
log local0.notice "~~~~~~~~~~~~~~Cookie matches and allowed for BLUETUBE: Looks like we found an IDP initiated with URI: [HTTP::uri]"
HTTP::redirect "https://bluetube.pseudo.com/saml/idp/res?id=/SSO/Kaltura"
}
"recruitment.pseudo.com.com" {
log local0.notice "~~~~~~~~~~~~~~Cookie matches and allowed for RECRUITMENT: Looks like we found an IDP initiated with URI: [HTTP::uri]"
HTTP::redirect "https://recruitment.pseudo.com/saml/idp/res?id=/SSO/recruitment"
}
}
}
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
