12-28-2017 10:30 PM
How can I provide authentication without passing user name and password every time?
I tried using bearer token in triggered task, even then it is asking me to provide basic authentication.
Additionally, is there any secured way to pass basic authentication via https request?
Solved! Go to Solution.
12-29-2017 11:38 AM
Basic auth is not required as long as a valid bearer token is used:
<SnapLogic_Task_URL>?bearer_token=VALUE
Example to invoke triggered tasks:
https://elastic.snaplogic.com/api/1/rest/slsched/feed/org/project_space/project_name/task_name?beare...
12-29-2017 10:57 AM
I’m presuming a typo or syntax error. Bearer token should work as long as you provide it in the Request HTTP header in the format “Authorization: Bearer {token}”.
Here’s a Postman example:
12-30-2017 05:44 AM
Make sure to use the correct URL. There will be two URL’s if you are using groundplex. Also, you might have to setup firewall rules if the call is from outside the firewall.
Running an On-Premises Pipeline from a URL
If you are running a pipeline in an on-premises Snaplex and streaming data to/from the pipeline, you must use the “On-Premises URL” to execute the pipeline, the “Cloud URL” will not work. The “On-Premises URL” will refer to the Groundplex machine from which you can perform the request. The request must be done on the Groundplex machine since the service is only listening for connections from the local machine. If you would like to allow requests from other hosts, you can configure the machine’s firewall rules or install a proxy to forward the requests to the Groundplex service.
12-29-2017 11:38 AM
Basic auth is not required as long as a valid bearer token is used:
<SnapLogic_Task_URL>?bearer_token=VALUE
Example to invoke triggered tasks:
https://elastic.snaplogic.com/api/1/rest/slsched/feed/org/project_space/project_name/task_name?beare...
12-31-2017 10:38 PM
Thank you very much, it is working now. Before this, i was directly passing Auth in the url, may be that’s why it didn’t work.