8.2 Register the Application in OCI IAM
Register your application as a separate confidential application in OCI IAM.
This application registration serves two roles:
- Resource server: Exposes a scope that end users authenticate against. When a user signs in, OCI IAM issues an end-user token scoped to this application.
- Client: Uses its client credentials to obtain a database-access token and allows users to obtain access tokens scoped to a resource it exposes. The application authenticates to Oracle AI Database with this database-access token and attaches the end-user token to the connection as part of the end-user security context payload.
You have now registered the application in OCI IAM as both a resource server (so end users can obtain end-user tokens scoped to this application) and a client (so the application can obtain a database-access token through client credentials).
See also:
Configuring OAuth in the OCI IAM documentation.