Start Free Trial

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.

Curl -u parameter in Download Tool

gesh2112
7 - Meteor

I am trying to get a token so I can connect to Joan tablet cloud to pull data from it.  The curl call is the following:

 

curl -u client_id:secret https://portal.getjoan.com/api/token/ -d 'grant_type=client_credentials'  

 

I have the client_id and secret from the site but can't figure out where to put it.  I have tried the Headers and Payload but I can't seem to get the token back.  Works great in curl and I even got it in Postman.  

 

Does anyone have any idea on where to put the -u parameters in download tool?

3 REPLIES 3
MatthewO
Alteryx Alumni (Retired)

@gesh2112 curl will Base64 encode the credential and format it in the header as "Authorization: Basic {Base64 encoded string}". I have attached a workflow illustrating how you can replicate this in Alteryx. 

 

image.png

KorkuSep
7 - Meteor

@MatthewO 

I  see your solution where you use the base 64 tool as a work around for using the curl -u and want to tap into your knowledge on how I can solve this problem. A read from the community and other places suggests disabling the SSL using the (-k/--insecure) curl - SSL CA CertificatesI am not able to do this in the download tool or don't know which tool will enable me to do this.

 

Screenshot 2023-11-24 094952.png

MatthewO
Alteryx Alumni (Retired)

@KorkuSep I don't have enough experience with curl to answer your question directly. It's possible that this could be included in the Download tool as a header parameter? If you prefer to just execute a curl script, you can do so with the Run Command tool. 

Labels
Top Solution Authors