Skip to Content

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 ?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Oct 02, 2018 at 04:05 PM

    Hi Saswata,

    Why aren't you able to use the destinations API? To the best of my knowledge, the API is a JNDI lookup into a provided service which is made available to your java application via SDK. The tomcat 8 runtime isn't any different. Therefore I would try to make it work before moving into any other workaround solution.

    Best regards,

    Add comment
    10|10000 characters needed characters exceeded