Forum Discussion

SanjayP's avatar
SanjayP
Icon for Nacreous rankNacreous
Jan 21, 2015

iRule question

for one of the application using SAML for authentication. F5 is pass through for authentication, no apm policy applied

 

requirement is as below.

 

  1. SSO should be enabled if already login into enterprise applications. (thinking of using MRHsession cookie, not sure though)
  2. If user is accesing application from office laptop (where already login into corporate network using AD ntlm) access should be seamless.
  3. For other users it should go to /public login page

1 Reply

  • Will something like this possibly work for you?

    when HTTP_REQUEST {
        check for session cookie and forward on to pool if exists
        if { HTTP::cookie exists MRHsession }{
            return
        }
        if no session cookie check is client is on the corporate network and forward on to pool if yes
        elseif { [IP::addr[IP::client_addr] equal 10.0.0.0/8] }{
            return
        }
        if no session cookie or not on the corporate network redirect to the public login page
        else {
            HTTP::redirect "http://[HTTP::host]/public"
        }
    }