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.
-
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
andsuperstrongpassword
) using the-u
cURL option. -
Pass the
<request-header>
custom request header using the-H
cURL option.
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