Authentication

All HTTP requests to the Oracle Messaging Cloud Service REST API require basic authentication (user name and password).

Every HTTP request to Oracle Messaging Cloud Service should supply HTTP Basic Authentication credentials through the Authorization header.

For example, to authenticate using cURL:

  • Use the -u cURL option to pass the user name and password for your Oracle Messaging Cloud Service account (for example, joe@example.com and Mypassword1!).

  • When running cURL from a Windows command shell only, set the cURL environment variable, CURL_CA_BUNDLE, to the location of an SSL certificate authority (CA) certificate file or bundle to authenticate against the Verisign CA certificate. Alternatively, you can specify the location of your local CA certificate bundle on the command line, using the -cacert command line option.

    For information about CA certificate verification using cURL, see: http://curl.haxx.se/docs/sslcerts.html.

Here is an example of a cURL command for creating a queue:

curl -v -u john.doe@example.com:Welcome123 -c myCookies.txt -b myCookies.txt -X PUT https://messaging.us2.oraclecloud.com/messagingtrial3930-usoracletrial00484/api/v1/queues/Ex1_Queue