A developer has created a solution using the SOAP API for authenticating Communities users.
What is needed when issuing the login() Call? (Choose two.)
A developer has created a solution using the SOAP API for authenticating Communities users.
What is needed when issuing the login() Call? (Choose two.)
When issuing the login() Call in the SOAP API for authenticating Communities users, the required elements are the Username and Password, as well as the Security Token. The Username and Password are used to identify and authenticate the user, while the Security Token is appended to the end of the user's password to provide an additional layer of security. The Organization Id is not required for this specific authentication process.
The correct answer is CD Explanation/Reference: https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/sforce_api_calls_login.htm
I don't think Communities user have Security Token. Not D then. AC?
A developer has created a solution using the SOAP API for authenticating Communities users. What is needed when issuing the login() Call?
Should be CD
CD are correct ans
CD, can also be used in the REST API: https://developer.salesforce.com/docs/atlas.en-us.202.0.api_rest.meta/api_rest/intro_understanding_username_password_oauth_flow.htm
C D is the correct answer. LoginResult = connection.login(string username, string password); To log in, the user must add the security token at the end of the user’s password. https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/sforce_api_calls_login.htm
<?xml version="1.0" encoding="utf-8" ?> <env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"> <env:Body> <n1:login xmlns:n1="urn:partner.soap.sforce.com"> <n1:username>{{username}}</n1:username> <n1:password>{{password}}{{secretToken}}</n1:password> </n1:login> </env:Body> </env:Envelope>
Answer is AC. Reference link same as others posted and it clearly states: "To authenticate an active Experience Cloud site user who has the API Enabled permission, use LoginScopeHeader to specify the Organization ID of the org with Experience Cloud sites." https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/sforce_api_calls_login.htm Communities users don't have security token either.