Forum Discussion
Hi Dragan,
Thank you for your reply. I have implemented the encodeURIComponent call as you describe but I am getting the same 400 error. Please see the exact line below…
“grant_type=”+encodeURIComponent(“password”)+“&username=”+encodeURIComponent(account.username)+“&password=”+encodeURIComponent(account.password)
I have the Upload body type fields set to “Multipart form-data”. Does this need to be changed, or is there another setting on this snap that may need to be adjusted?
Thanks,
James
@jsmith141 You can try removing the account from the REST Post snap and send the account username and password through pipelines parameters to check if it’s working.
- jsmith1414 years agoNew Contributor III
I think we can, but first I want to ask, would passing the credentials as pipeline parameters expose them to be intercepted by unwanted parties?
- jsmith1414 years agoNew Contributor III
We went ahead and tried it, since it is a sandbox account and it worked, but where do we go from here?
- ptaylor4 years agoEmployee
I think I missed something. Why move the credentials to pipeline parameters when you can just use account.username and account.password?