โ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.