Skip to Content
Feb 27, 2018 at 10:09 AM

Basic Auth works with OKHTTP but not with OAuthSAMLConfig


Hi Colleagues,

We are trying to access JAM APIs from our HCP Java App. We have recently migrated to tomcat 8 runtime, and since it doesn't have httpdestination,we have been using OKHttp for all our network calls. It works fine for normal GET/PUT/POST requests but it's not working with the JAM API(since it's using OAuthSAML) .The url returns data in postman with OAuth token but in the app, the message we are getting is :

#Got response:<?xml version="1.0" encoding="UTF-8"?> <hash> <status type="integer">0</status> <error>Internal Server Error</error> </hash>


We are getting all the destination related properties from HCP cockpit. Can you please help ?