pybala opened a new issue, #43725:
URL: https://github.com/apache/airflow/issues/43725
### Apache Airflow version
2.10.2
### If "Other Airflow 2 version" selected, which one?
_No response_
### What happened?
Hi,
I'm trying to connect to salesforce using Consumer Key and Consumer Secret,
but couldn't succeed.
I'm getting the following error.
` File
"/usr/local/airflow/.local/lib/python3.11/site-packages/airflow/providers/salesforce/hooks/salesforce.py",
line 137, in conn
conn = Salesforce(
^^^^^^^^^^^
File
"/usr/local/airflow/.local/lib/python3.11/site-packages/simple_salesforce/api.py",
line 227, in __init__
raise TypeError(
TypeError: You must provide login information or an instance and token`
Looking at the source code, I dont see any logic to consider both.. only
Consumer Key is considered.
Here is the code block from simple-salesforce for reference.
<img width="657" alt="image"
src="https://github.com/user-attachments/assets/4c1fccaf-320f-4a0d-a462-ab3ebe1b93fb">
Please correct me if I'm not doing it in the rightway.
Thanks,
Bala
### What you think should happen instead?
_No response_
### How to reproduce
I'm using http type connection with the following details,
<img width="773" alt="image"
src="https://github.com/user-attachments/assets/d7b7407d-5a45-4a72-998d-b0a3d34b5d4a">
### Operating System
Amazon Linux 2023.5.20240916
### Versions of Apache Airflow Providers
_No response_
### Deployment
Amazon (AWS) MWAA
### Deployment details
_No response_
### Anything else?
_No response_
### Are you willing to submit PR?
- [ ] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of
Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]