Learn how to acquire credentials to connect your application to Oracle NoSQL Database Cloud Service.
Information Comprising the Credentials:
Table 2-1 Credentials
|What is it?||Where to find it?|
|Tenancy ID, an OCID||See Where to Get the Tenancy's OCID and User's OCID.|
|User ID, an OCID|
|API Signing Key||
For the application user, an API signing key must be generated and uploaded. If this has already been done this step can be skipped. See How to Generate an API Signing Key to generate the signing key with an optional pass phrase. See How to Upload the Public Key to upload the API signing key to the user's account.
|Fingerprint for the Signing Key||The fingerprint and pass phrase of the signing key are created while generating and uploading the API Signing Key. See How to Get the Key's Fingerprint.|
|(Optional) Pass Phrase for the Signing Key|
Tip:Make a note of the location of your private key, optional pass phrase, and fingerprint of the public key while generating and uploading the API Signing Key.
After performing the tasks discussed above, collect the credentials information and provide them to your application.
Providing the Credentials to your Application:
The Oracle NoSQL Database SDKs allow you to provide the credentials to an application in multiple ways. The SDKs support a configuration file as well as one or more interfaces that allow direct specification of the information. See the documentation for the programming language driver that you are using to know about the specific credentials interfaces.
~/.oci/config. The SDKs allow the file to reside in alternative locations. It's content looks like this:
[DEFAULT] user=ocid1.user.oc1..aaaaaaaas...7ap fingerprint=d1:b2:32:53:d3:5f:cf:68:2d:6f:8b:5f:77:8f:07:13 key_file=~/.oci/oci_api_key_private.pem tenancy=ocid1.tenancy.oc1..aaaaaaaap...keq pass_phrase=mysecretphrase
[DEFAULT]line indicates that the lines that follow specify the DEFAULT profile. A configuration file can include multiple profiles, prefixed with
[PROFILE_NAME]. For example:
[DEFAULT] user=ocid1.user.oc1..aaaaaaaas...7us fingerprint=d1:b2:32:53:d3:5f:cf:68:2d:6f:8b:5f:77:8f:07:15 key_file=~/.oci/oci_api_key_private.pem tenancy=ocid1.tenancy.oc1..aaaaabbap...keq pass_phrase=mysecretphrase [MYPROFILE] user=ocid1.user.oc1..aaaaaaaas...7ap fingerprint=d1:b2:32:53:d3:5f:cf:68:2d:6f:8b:5f:77:8f:07:13 key_file=~/.oci/oci_api_key_private.pem tenancy=ocid1.tenancy.oc1..aaaaaaaap...keq pass_phrase=mysecretphrase