Not Returning back to the current loadbalancer url from external service
Hi All,
For achieving the below use case i have written the following service.From the current url calling the ezternal Cookiegenerator.html service and SMCookie got generated.
But it is not returning to the current loadbalancer url. After pressing enter button only it is returning to current url(finalusers.html)
Please advise on this i tried with HTTP::retry in HTTP_RESPONSE.
UseCase: 1) Enter LoadBalancer url http://xmppwst.airservices.eds.com/OAuthDemo/finalusers.html i.e( Actually it is mapped to http://usclspcit192.airservices.eds.com/OAuthDemo/finalusers.html”)
2) Enter userid/password (testuser1/p@ssw0rd)
3) Grab userid/Password(i.e Authorization Header) OR SMCOOKIE
4) Call http://xmppt.airservices.eds.com:8080/TestBasicAuth/cookiegenerator.html with Authorization Header OR SMCOOKIE (Note user shouldn’t it is redirected to 208 box always we need to show loadbalancer url (http://usclssoat208.airsoatest.airservices.eds.com/TestBasicAuth/cookiegenerator.html)
5) Siteminder Authentication returns the Siteminder Cookie
6) AT f5 Grab the SMCookie from 208 box
7) http://xmppwst.airservices.eds.com/OAuthDemo/finalusers.html with SMCookie
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
if { [HTTP::header exists "Authorization"] } {
set authzheaders "Authorization: [HTTP::header value Authorization]"
}
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
}
} Regards, Praque