/// <summary>
 /// Initializes a new authenticator with the supplied values.
 /// </summary>
 /// <param name="apiUser">The API username</param>
 /// <param name="apiKey">The API key for the API username</param>
 /// <param name="token">The ProtectedToken object containing the values required to authenticate the call</param>
 /// <seealso cref="ProtectedToken"/>
 public PolarisOverrideAuthenticator(string apiUser, string apiKey, ProtectedToken token)
 {
     _apiKey = apiKey;
     _apiUser = apiUser;
     _token = token;
     _hashHostName = ConfigurationManager.AppSettings["papi_hash_hostname"];
 }
Esempio n. 2
0
 /// <summary>
 /// Initializes a new authenticator with the supplied values.
 /// </summary>
 /// <param name="apiUser">The API username</param>
 /// <param name="apiKey">The API key for the API username</param>
 /// <param name="token">The ProtectedToken object containing the values required to authenticate the call</param>
 /// <seealso cref="ProtectedToken"/>
 public PolarisOverrideAuthenticator(string apiUser, string apiKey, ProtectedToken token)
 {
     _apiKey       = apiKey;
     _apiUser      = apiUser;
     _token        = token;
     _hashHostName = ConfigurationManager.AppSettings["papi_hash_hostname"];
 }