You need to sign in to do that
Don't have an account?
WorksForME?????
Passwords and Storage.
I have a JavaScript package that will have a need to make 1 external API call by sending data to our servers with the users User name, password and security token. My question is how should we go about transmitting the password(plain-text vs. base64) and what about storing it in a salesforce custom object? what are the security implications / rules for this? Does anybody know?
User clicks a button in our javascript Custom SControl in salesforce.com and it sends a webrequest to our external servers to access the API of that user and pull down informaion.
//Just take the URL and SessionID passed to the webservice.
binding.Url = SFUrl; //Merge field {!$Api.Enterprise_Server_URL_130}
binding.SessionHeaderValue = new salesforce.na5.SessionHeader();
binding.SessionHeaderValue.sessionId = SFSessionID; //Merge field {!User.Session_ID}
//Then make your API calls here.
Hi,
here is the code..
sfdc.Url = lr.serverUrl;
binding.Url = lr.serverUrl;
binding.SessionHeaderValue = new SessionHeader();
binding.SessionHeaderValue.sessionId = lr.sessionId;
// Create a new session header object
// Add the session ID returned from the login
sfdc.SessionHeaderValue = new SessionHeader();
sfdc.SessionHeaderValue.sessionId = lr.sessionId;
sforce.GetUserInfoResult userInfo = lr.userInfo;