Forum Discussion
Thanks Juerg. Please find the details required. i have removed the authorisation header.
Steps: 1) User Hitting LoadBalancer URL in Browser ("http://xmppwst.airservices.eds.com/OAuthDemo/finalusers.html") This is default POOL(Rachel_Test).
2) Siteminder challenges the user, Enter userid/password.
3) Grap userid/password using irule and post to another loadbalancer url(http://xmppt.airservices.eds.com/OAuthDemo/cookiegenerator.html) Cookie generator authenticate the user and return the SiteminderCookie(SMCookie). Note this loadbalancer url is mapped to(Rachel_Test_8080).
4) After grapping the SMCookie and landing page shown to user(http://xmppwst.airservices.eds.com/OAuthDemo/finalusers.html). (ie default pool url(Rachel_Test))
when CLIENT_ACCEPTED { set cookie 1 set gotpath 0 set smsession "" set def_pool [LB::server pool] set sm 0
} when HTTP_REQUEST { if { $gotpath == 0 && $sm == 0 } { pool Rachel_test_8080 [HTTP::uri] /OAuthDemo/cookiegenerator.html set request_headers [HTTP::request] set gotpath 1 } elseif { $sm == 1 } { pool $def_pool
} } when HTTP_RESPONSE { log local0. "http_response: cookie:test22=$cookie; status:test22=[HTTP::status]; sm=[HTTP::cookie exists "SMSESSION"]" if { [HTTP::cookie exists "SMSESSION"] } { set smsession "SMSESSION=[HTTP::cookie value SMSESSION]" set sm 1 } if { [HTTP::status] == 404} { HTTP::retry $smsession }