Hi, we are trying to get OUAF(Oracle) token using APIGEE. To get OUAF token we need to call two API calls to Oracle. First call ".../ouaf/j_security_check" which creates a context between client and server which also produces some cookies and header values. In the second call '.../ouaf/restSecurityToken' which takes cookies from first call gets OUAF token. The issue is first call is making multiple calls (4 calls) to the oracle to get information for the second call.
Does anyone had this issue and solved?
Thanks in advance.
To get OUAF token we need to call two API calls to Oracle. First call ".../ouaf/j_security_check" which creates a context between client and server which also produces some cookies and header values. In the second call '.../ouaf/restSecurityToken' which takes cookies from first call gets OUAF token.
OK, The first call produces cookies; the second call sends those cookies and gets a token.
The issue is first call is making multiple calls (4 calls) to the oracle to get information for the second call.
Where do the 4 calls come from? I thought there were two??
I'm not clear.
Does anyone had this issue and solved?
What is the issue, exactly?
If you want to make multiple calls (2?) to obtain a token, you can do that, with a pair of ServiceCallout policies. If I were doing that , I would wrap the calls with a cache, so I could just retrieve the token from a cache, and only get a new token if the cache is empty.