Thursday, August 6, 2020

CASDK-0004: Failed to authenticate against the application with the credentials provided; LOGIN_MUST_USE_SECURITY_TOKEN: Invalid username, password, security token; or user locked out.

While creating a connection in OIC to Salesforce for the first time, we might probably receive this below error.

CASDK-0004: Failed to authenticate against the application with the credentials provided; LOGIN_MUST_USE_SECURITY_TOKEN: Invalid username, password, security token; or user locked out. Are you at a new location? When accessing Salesforce--either via a desktop client or the API--from outside of your company’s trusted networks, you must add a security token to your password to log in. To get your new security token, log in to Salesforce. From your personal settings, enter Reset My Security Token in the Quick Find box, then select Reset My Security Token.

If you are wondering how to get the Security Token from SFDC, Please follow the below steps.

Login to Salesforce.

Click on Settings below your Name.

Click on Reset Security Token button, which will send an email with the security token.

Once you have the Security token, come back to Configuring connections in OIC.

Enter the password as below,
<YourPassoword> + <Security Token>

For example, if your password is "test123" and token is "mxvri28rnmashe2!ddfr". Then enter the password as below, 
test123mxvri28rnmashe2!ddfr

Now you can successfully Test the connection.

No comments:

Post a Comment