Exemplo n.º 1
0
 public override void Authenticate(RESTConnector connector)
 {
     connector.WithAuthentication(tokenData.AccessToken);
 }
 /// <summary>
 /// This method is called to authenticate an outgoing REST API request.
 /// Here, we'll just set the Authorization header to provide the necessary authentication info.
 /// </summary>
 /// <param name="connector"></param>
 public override void Authenticate(RESTConnector connector)
 {
     connector.WithAuthentication(Username, Password);
 }
 /// <summary>
 /// This method is called to authenticate an outgoing REST API request.
 /// Here, we'll just set the Authorization header to provide the necessary authentication info.
 /// </summary>
 /// <param name="connector"></param>
 public override void Authenticate(RESTConnector connector)
 {
     connector.WithAuthentication(BearerToken);
 }