title: How to use JWT access token from salesforce with azure data factory?
body: <p>I am creating a app on azure and I am using <code>azure data factory</code> as a data integration tool, in my app I want to retrieve data from <code>salesforce</code> using the <code>access token</code> that I generated, the access token was generated by asking the system admin in my app to add his <code>client Id</code> and <code>app secret</code> of a connected app that he creates for my app and then my app uses server-to-server <code>oauth</code> to generate this access token.</p>
  <p>However when I configure the salesforce linked service in azure data factory, it asks me for <code>username</code>, <code>password</code> and optional <code>security token</code> as mentioned in this link</p>
  <p><a href="https://docs.microsoft.com/en-us/azure/data-factory/connector-salesforce?tabs=data-factory" rel="nofollow noreferrer">salesforce configuration from microsoft docs</a>.</p>
  <p>Is the username and password the same as client Id and app secret used to generate the access token ? and if no, how can I use them to integrate with salesforce or there is no way but using another flow.</p>
  <p><strong>note:</strong> I don't know what is the flow that used username + password with security token.</p>
  <p>I just don't want to rewrite my code just for this, so any help would be appreciated.</p>
  <p><strong>UPDATE:</strong> Microsoft uses username/password flow to generate the access token with salesforce, I don't know why they didn't use another flow because OAuth says that this flow is not recommended for security reasons.</p>