35 lines
1.1 KiB
C#
35 lines
1.1 KiB
C#
namespace Salesforce.NET
|
|
{
|
|
public class SalesforceCredentials
|
|
{
|
|
public bool IsProduction { get; set; }
|
|
public string ClientId { get; set; }
|
|
public string ClientSecret { get; set; }
|
|
public string Username { get; set; }
|
|
public string Password { get; set; }
|
|
public string SecurityToken { get; set; }
|
|
|
|
/// <summary>
|
|
/// Loads a set of default credentials
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
public static SalesforceCredentials PocSandbox()
|
|
{
|
|
return new SalesforceCredentials
|
|
{
|
|
IsProduction = false,
|
|
Username = "integration@clearoneadvantage.com.pocsandbox",
|
|
Password = "nanR#Mo8",
|
|
SecurityToken = "1jMfMWqmQ0YpjX1JyVh7iUkvV",
|
|
ClientId = "3MVG967gVD5fuTmI4keNlyXpELeZ8J5ZsW27nmeeMtpjSjimy5QGiTBEoTnW.c661Af2eV7vEk0NTnp3JYjFA",
|
|
ClientSecret = "1168DAD1B619C2EE81EA6C3E248F9B2B24993ACD41E8CB11DE79D83FBE771465"
|
|
};
|
|
}
|
|
|
|
public SalesforceCredentials()
|
|
{
|
|
// TODO: validate property data
|
|
}
|
|
}
|
|
}
|