Hello Ujwol,
Thanks for the response. I can try and brief the description of my requirement.
Basically we are trying to establish a co-existence and seamless SSO between the new CA SSO and our legacy WAM infrastructure (as part of migration). Our legacy WAM product offers API for AuthN and Token Generation. So the approach we decided is as below
1) Use the Active Response and "OnAuthAccept" event in CA to invoke an API call (using custom JAR) and get the legacy WAM Session Token.
2) Using the legacy WAM API to update the token recieved with the orgination client IP address.
3) Set the updated token (encoded) as browser cookie (with legacy WAM session cookie name)
4) Allow seamless SSO between CA and legacy WAM
I am able to conceptually accomplish this. But i am stuck in two issues currently. They are:
1) Step 2 where i will need the origination client IP address (that is actually available in X-Forward-For header) in my custom active response code to update the token. Since i am unable to get this from the ActiveResponse API objects, i hard-coded my IP in my code and getting this working seamlessly.
2) If i clear my browser data and retry with a new request, my activeresponse class is not getting invoked. But if i restart the policy server, it gets executed. So for testing this approach every time, i am restarting the policy server and verifying.
Can you help me on the two issues above ?