Search code examples
pythonpython-3.xpython-requestssalesforcesimple-salesforce

Salesforce MFA in simple-salesforce


I am currently using the simple-salesforce library to retrieve data from Salesforce, using the token method.

from simple_salesforce import Salesforce

sf = Salesforce(username='[email protected]', password='password', security_token='token')

But Salesforce is requiring the implementation of a Multi-Factor Authentication, is there anyway I can bypass this or use another method?

Here is the link of the actual article: https://help.salesforce.com/articleView?id=000356005&type=1&mode=1

Thanks!


Solution

  • I have found one solution:

    https://github.com/simple-salesforce/simple-salesforce/issues/457

    In my case, I was not using an API user account, rather just a normal user account.