Highlighted

Unable to create a custom context hub store - contexthub.generic-jsonp

sreenivasula

11-01-2018

Hello All,

           I am trying to create a custom context hub store using store type contexthub.generic-jsonp. My service is a secure service, expecting credentials to connect. In the below example service configuration, how can i pass credentials? Please provide some example snippet if possible.

{

   "service": {

      "jsonp": false,

      "timeout": 1000,

      "ttl": 1800000,

      "secure": true,

      "host": "xyz.com",

      "port": 80,     

   }

}

Replies

Highlighted
Highlighted

sreenivasula

11-01-2018

Thanks Scot! Could you please let us know, how we can pass credentials to a secured service( after making "secure": "true") ?

Highlighted

kautuk_sahni

Community Manager

14-01-2018

Hi sreenivasula,

Reply from the internal team is:-

You want to use JSON Service, that requires basic HTTP authentication. Currently we do not support that.

At the moment it advise to try (I didn't test):

"host": "user:pass@xyz.com"

-Kautuk