skip to main content
Using the Driver : Authentication : URL parameter authentication
  

Try DataDirect Drivers Now

URL parameter authentication

To configure the driver to use HTTP header 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 method, 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 UrlParameter.
*Set the AuthParam (AuthParam) option to specify the name of the URL parameter used to pass the security token. For example, apikey.
*Set the Security Token (SecurityToken) option to specify the security token required to make a connection to your endpoint. For example, XaBARTsLZReM.
*Optionally, specify values for any additional options you want to configure. See "Connection Option Descriptions" for a complete list of options.
The following examples demonstrates a session using a REST file with URL parameter authentication enabled.
Using a connection URL:
DRIVER=DataDirect 8.0 Autonomous REST Connector;AuthenticationMethod=UrlParameter;
AuthParam=apikey;RestConfigFile=C:/path/to/myrest.rest;
SecurityToken=XaBARTsLZReM;
Using a odbc.ini file with a 32-bit driver:
Driver=ODBCHOME/lib/ivautorestxx.so;
Description=My Autonomous REST Data Source
AuthenticationMethod=UrlParameter
AuthParam=apikey
RestConfigFile=C:/path/to/myrest.rest
SecurityToken=XaBARTsLZReM