Authenticate

Oracle Internet Directory (OID) uses a certificate authority (CA) certificate, issued by Verisign, to enable clients to connect securely to the server.

Note:

Ensure that you have the appropriate login credentials for trigerring a source in Oracle Internet Directory.

Oracle Internet Directory Metrics REST API supports authentication via Basic Auth.

You can access the OID REST resources over HTTPS and you must provide the following information for authentication:
  • An SSL certificate authority (CA) certificate file or bundle to authenticate against the Verisign CA certificate.

  • User name and password required to access REST API.

For example, to authenticate using cURL:

  • Set the cURL environment variable, CURL_CA_BUNDLE, to the location of your local CA certificate bundle. For information about CA certificate verification using cURL, see: http://curl.haxx.se/docs/sslcerts.html.

  • Pass the user name and password for your OID account (for example, jsmith and superstrongpassword) using the -u cURL option.

  • Pass the <request-header> custom request header using the -H cURL option.

The following example cURL command returns total number of search operations:
curl -u user:<password>
 -H "Content-Type:application/json"
 -H "Accept: application/json"
 -X GET http://example.com/oid/metrics/api/v1/counts/operations/search