+ Start a Discussion
dany__dany__ 

how to authenticate a user with this apex code

<?xml version="1.0" encoding="utf-8" ?>

<env:Envelope xmlnssd="http://www.w3.org/2001/XMLSchema"

xmlnssi="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+securitycode</n1:password>

</n1:login>

</env:Body>

</env:Envelope>


 
RamuRamu (Salesforce Developers) 
See if the below article helps

https://help.salesforce.com/apex/HTViewHelpDoc?id=sso_authentication_providers.htm