Question: authenticate on batch mode without user interaction #737
-
Hello, we're using DL being called from PowerShell scripts (that is, DL "batch mode" with "process conf" XML file definitions) and whenever it processes a "bean" it shows up the browser asking to authenticate. Is there a way to configure only once a Connected App together DL so everytime DL runs it would already know the necessary credentials? Hence, allowing a better automated integration without user interaction? Thank you in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
Hi @fmertins , have you specified sfdc.username and sfdc.password properties in process-conf.xml as documented here? |
Beta Was this translation helpful? Give feedback.
-
Hi, yes... But the thing is, the Org is configured with SSO Login, so unfortunately we can't use regular credentials username+password I'm afraid. |
Beta Was this translation helpful? Give feedback.
-
Hi @fmertins , A customer had a similar issue. They wrote a wrapper script that gets the OAuth access token from the IdP and passes the access token to data loader as a command line option |
Beta Was this translation helpful? Give feedback.
-
We'll take a look at that approach, thanks a lot!! |
Beta Was this translation helpful? Give feedback.
Hi @fmertins ,
A customer had a similar issue. They wrote a wrapper script that gets the OAuth access token from the IdP and passes the access token to data loader as a command line option
sfdc.oauth.accesstoken
. Will a similar approach work for you?