Exemplo n.º 1
0
 /// <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();
 }
Exemplo n.º 2
0
 /// <summary>
 /// Clears the currently stored credentials.
 /// </summary>
 public void ClearConfig()
 {
     oauth2Config = null;
 }
Exemplo n.º 3
0
 public NestOauth2(NestConfig config)
 {
     this.httpClient   = new HttpClient();
     this.oauth2Config = config;
 }