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 in SalesForce by surbhi
• 3,810 points
30 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.

answered Mar 15 by CoolCoder
• 4,360 points

Related Questions In SalesForce

0 votes
0 answers

Cannot login to Salesforce Sandbox via python API

I am using the python3.7.2 module simple-salesforce==0.74.2 and I ...READ MORE

Mar 1 in SalesForce by surbhi
• 3,810 points
109 views
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 in SalesForce by surbhi
• 3,810 points
94 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 in SalesForce by surbhi
• 3,810 points
65 views
0 votes
0 answers

Login into Salesforce android application using Trailhead account

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

Mar 3 in SalesForce by surbhi
• 3,810 points
34 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
1,835 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,010 points
289 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,010 points
174 views
0 votes
1 answer

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

Hi @Vardhan, I took Edureka's Salesforce Training that covers all ...READ MORE

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

edited Dec 22, 2021 by Soumya 204 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 in SalesForce by CoolCoder
• 4,360 points
95 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 in SalesForce by CoolCoder
• 4,360 points
120 views
webinar REGISTER FOR FREE WEBINAR X
Send OTP
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP