Salesforce login Organization behind proxy

0 votes
I'm trying to use Python and Simple Salesforce to connect to SalesForce. My goal is to discover a Python equivalent to the command line command - sfdx force:auth:web:login -r $url. I run this programme after exporting the proxy variables http proxy and https proxy from the command line.

So far, I've looked through the examples and documentation and haven't been able to locate anything that will obtain me the token. Any advice would be greatly appreciated. I know how to call sdfx process, but I'm wondering if there's a way to do it in Python.
Mar 14, 2022 in SalesForce by surbhi
• 3,820 points
617 views

1 answer to this question.

0 votes

simple_salesforce does not provide most forms of OAuth authentication, like force:auth:web:login. The three ways to log in with simple_salesforce are:

  1. Provide your own access token, obtained through performing OAuth authentication elsewhere.
  2. Perform a SOAP login by providing a username, password, and security token (or other required parameters depending on your org's specific configuration).
  3. Use the JWT OAuth flow with a username and certificate.

Of the three, JWT is preferable when doing server-to-server integration, and SOAP login for interactive use at a console.

Hope this helps!

Check out the Salesforce course for more info!

answered Mar 15, 2022 by CoolCoder
• 4,420 points

Related Questions In SalesForce

0 votes
0 answers

How to take test.salesforce.com while deployment as salesforce login url for api connection logic app?

In logic app i'm using salesforce connector after deployment ...READ MORE

Mar 1, 2022 in SalesForce by surbhi
• 3,820 points
1,089 views
0 votes
1 answer

How to take test.salesforce.com while deployment as salesforce login url for api connection logic app?

you are not passing the parameterValues, use ...READ MORE

answered Mar 2, 2022 in SalesForce by surbhi
• 3,820 points
1,012 views
0 votes
0 answers

Login into Salesforce android application using Trailhead account

I am beginner in salesforce. I am ...READ MORE

Mar 3, 2022 in SalesForce by surbhi
• 3,820 points
597 views
0 votes
1 answer

How to take test.salesforce.com while deployment as salesforce login url for api connection logic app?

You are not passing the parameterValues, use ...READ MORE

answered Mar 9, 2022 in SalesForce by CoolCoder
• 4,420 points
850 views
+2 votes
2 answers

Salesforce Interview questions

Here are some questions very important for ...READ MORE

answered Jan 11, 2019 in Career Counselling by Suresh
• 720 points
3,459 views
0 votes
1 answer

How to connect to salesforce from tableau?

Hi, follow these steps to connect to Salesforce: 1. ...READ MORE

answered Mar 25, 2019 in Tableau by Cherukuri
• 33,030 points
1,070 views
0 votes
1 answer

Power BI - Salesforce

Hi, Follow below steps: 1. Go to Data source. 2. ...READ MORE

answered Mar 25, 2019 in Power BI by Cherukuri
• 33,030 points
787 views
0 votes
2 answers

What is the best training for Salesforce ADM-201 Exam?

Hi @Vardhan, I took Edureka's Salesforce Online Training, ...READ MORE

answered Jun 3, 2021 in Others by Jaya
• 140 points

edited Dec 22, 2021 by Soumya 749 views
0 votes
1 answer

Cannot login to Salesforce Sandbox via python API

Set domain='test' and generate a new token ...READ MORE

answered Mar 1, 2022 in SalesForce by CoolCoder
• 4,420 points
1,895 views
0 votes
1 answer

Salesforce Lightning - Login Failure In Staging

https://test.salesforce.com versus https://login.salesforce.com. Even if you use ...READ MORE

answered Mar 9, 2022 in SalesForce by CoolCoder
• 4,420 points
697 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP