+ Start a Discussion
EagerToLearnEagerToLearn 

SOAP API Login Authentication?

Hi,  i see mixed answers all over the web regarding what is required for a SOAP Login authentication.  Some answers are Username and password and Security Token while others are saying Username and Password and Organization Id.

I think I am getting it as username and password are the only thing required and security token is optional depending on network ip settings
For communities it would be username and password and Organization id.

Can someon help me understand what is exactly required?
Abdul KhatriAbdul Khatri
It is always Username, Password + SecurityToken. The following article will explain you everything.

https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/sforce_api_calls_login.htm
Abdul KhatriAbdul Khatri
Was this helpful?
EagerToLearnEagerToLearn
I read it as Sec Token is optional if you setup the clients ip in the orgs trusted ip addresses.  Somewhere else I read that if it is community site then you need to include the Org ID.  The reason I am asking is this questions or close to it was on the exam and I just feel it was an extremely tricky open ended questions.
 
daniel hunterdaniel hunter
This login is complicated and John Deere E110 Lawn Mower (https://tractordir.com/a-review-of-the-john-deere-e-110-lawn-mower/) to get one
Andy PutraAndy Putra
Hi,
Based on this (https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/sforce_api_calls_login.htm) article, you need to specify the Organization ID. So in this case (Community login auth), the answer is Username and Password and Organization Id

Thanks