/// <summary> /// Sets the Nest configuration values used for authentication. /// </summary> /// <param name="clientId">The Nest client ID.</param> /// <param name="clientSecret">The Nest client secret.</param> /// <param name="redirectUrl">The Nest redirect URL.</param> public void SetConfig(string clientId, string clientSecret, string redirectUrl) { this.oauth2Config = new NestConfig.Builder() .SetClientId(clientId) .SetClientSecret(clientSecret) .SetRedirectUrl(redirectUrl) .Build(); }
/// <summary> /// Clears the currently stored credentials. /// </summary> public void ClearConfig() { oauth2Config = null; }
public NestOauth2(NestConfig config) { this.httpClient = new HttpClient(); this.oauth2Config = config; }