skip to main content
Using the Driver : Authentication : Basic authentication
  

Try DataDirect Drivers Now

Basic authentication

To configure the driver to use basic authentication:
*Configure the minimum options required for a connection:
*If you are using an input REST file, set the REST Config File (RestConfigFile) option to provide the name and location of the input REST file. For example, C:/path/to/myrest.rest.
*If you are using the REST Sample Path option, set the REST Sample Path (RestSamplePath) option to specify the endpoint that the want to connect to and sample. For example, https://example.com/countries/.
*Set the Authentication Method (AuthenticationMethod) option to Basic.
*Set the AuthHeader (AuthHeader) option to specify the name of the HTTP header used for authentication. The default is Authorization.
*Set the User Name (LogonID) option to specify your logon ID.
*Set the Password (Password) option to specify your password.
*Optionally, specify values for any additional options you want to configure. See "Connection Option Descriptions" for a complete list of options.
The following examples demonstrate a session using a REST file with basic authentication enabled and AuthHeader set to the default:
Using a connection URL:
DRIVER=DataDirect 8.0 Autonomous REST Connector;AuthenticationMethod=Basic;
RestConfigFile=C:/path/to/myrest.rest;LogonID=jsmith;Password=secret;
Using an odbc.ini file with the 32-bit driver:
Driver=ODBCHOME/lib/ivautorestxx.so
Description=My Autonomous REST Data Source
AuthenticationMethod=Basic
RestConfigFile=C:/path/to/myrest.rest
LogonID=jsmith
Password=secret