Sid,
if the only thing you want to do in policy is to redirect to the register endpoint, you only need to do the following:
- Create the endpoint on the gateway that should redirect the user (e.g.: /proxy/icicibank)
- Include a "Return Template Response to Requestor"
- HTTP status 302, content-type: text/plain
- Do NOT check "Send Response Immediately"
- Include "Manage Transport Properties/Headers"
- Type: HTTP Header, Operation: Add or Replace, Name: Location, Value: your target URL
Your overall policy should have two assertions now. (Not good enough for production but to get you started).
I tried this myself and it works perfectly fine. Its almost the same response as further up, just make sure the header gets added to the "Response".
Regards,
Sascha