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

Avatar

Avatar

sreenivasula

Avatar

sreenivasula

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

Avatar

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Reply

2.3K

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Reply

2.3K
smacdonald2008

11-01-2018

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

Avatar

sreenivasula

Avatar

sreenivasula

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") ?

Avatar

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Reply

2.3K

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Reply

2.3K
smacdonald2008

11-01-2018

We are checking internally

Avatar

Avatar

kautuk_sahni

Community Manager

Total Posts

5.7K

Likes

1.0K

Correct Reply

1.1K

Avatar

kautuk_sahni

Community Manager

Total Posts

5.7K

Likes

1.0K

Correct Reply

1.1K
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