Forum Discussion
Not Returning back to the current loadbalancer url from external service
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 }
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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