Expand my Community achievements bar.

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

Avatar

Level 4

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,     

   }

}

4 Replies

Avatar

Level 10

This is on our list of Community Articles to write so we have strong example of this use case. Only thing now is the docs -- Extending ContextHub

Avatar

Level 4

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

Avatar

Administrator

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



Kautuk Sahni