Authentication

All request messages exchanged between the OTA and DirectConnect must be authenticated using the Basic Authorization. This is sent in HttpRequest Header.

Below is an example to implement Basic Authorization in C# language.

string username = "Your username";   string password = "Your password";   
  
string credentials = Convert.ToBase64               (ASCIIEncoding.ASCII.GetBytes(username + ":" + password));  
  
request.Headers.Add("Authorization" , "Basic " + credentials);  

Last updated