Register the Database in OCI IAM
Register Oracle AI Database as a confidential application in your OCI IAM identity domain.
This application serves two roles:
-
Resource server: Allows other applications to request tokens scoped to the database.
-
Client: Allows the database to obtain an access token to fetch the IAM public signing keys for token validation.
-
Navigate to your identity domain.
-
Log in to the OCI Console.
-
In the search bar, type
domainand select Domains under Services. -
Select your identity domain (for example, Default), or click Create domain to create a new one.
-
On the domain’s Details page, copy and save the Domain URL for later use (for example,
https://idcs-<unique_id>.identity.oraclecloud.com:443).
-
-
Create a confidential application for the database.
-
In the domain, click the Integrated applications tab.
-
Click Add application, select Confidential Application, and click Launch workflow.
-
Enter a name for the application (for example,
OracleDB) and an application URL. -
Click Submit.
-
-
Configure the application as a resource server.
-
On the application page, click the OAuth configuration tab.
-
In the Edit OAuth configuration section, under Resource server configuration, select Configure this application as a resource server now.
-
Under Primary audience, enter
OracleDB. -
Toggle Add scopes on. Click Add and create a scope:
-
Scope: Enter
DB_ACCESS_SCOPE. -
Display name: Enter
DB Access. -
Description: Enter
Access the database.
-
-
-
Configure the application as a client.
The database must also be configured as a client, so it can obtain an access token to retrieve the IAM public signing keys.
-
Under Client configuration, select Configure this application as a client now.
-
Under Authorization, select Client credentials.
-
-
Activate the application.
Click Actions in the top-right corner, and select Activate.
-
Record the following values for database configuration.
-
On the application page, click the Details tab, and copy the Application ID.
-
Click the OAuth configuration tab, scroll to General Information, and copy the Client ID and Client secret.
-
You have now registered the database in OCI IAM as both a resource server (with an audience and scope) and a client. Other applications can now request tokens scoped to this database resource.
See also: Adding a Confidential Application in the OCI IAM documentation.