Setting up Authentication for Agentic Support
OAuth is the only supported authentication type and you must have an application in your identity domain in advance to generate an auth token. Then information of this domain and its application is used to setup authentication configuration during Application creation.
Learn aboutIAM with Identity Domains. Here are example steps for you to get an overview of the process.
Step 1. Create an Identity Domain (Optional)
Each OCI tenancy has a default identity domain. You can use the default domain or any existing domain as long as its domain type isn't Light weight
. To create a domain, see Creating an Identity Domain. Example steps:
- Sign in to the OCI Console.
- Open the navigation menu and select Identity & Security.
- Under Identity, select Domains.
- Select Create domain.
- Provide the required information, such as the domain administrator.
- Select Create and wait for the domain to become active.
Step 2. Create an Application in the Identity Domain
Example steps:
- Open the Identity Domain that you created.
- Select the Integrated applications tab.
- Select Add application.
- Select Confidential Application, then select Launch workflow.
- Provide a Name and Description, leave the remaining fields as default, and select Submit.
Step 3. Configure OAuth Settings
Example steps:
- Open the application that you created.
- Select OAuth configuration, then select Edit OAuth configuration.
- Enable Configure this application as a resource server now.
Provide a Primary audience, for example:
https://your_application.com/. Audience means which API is allowed to accept and validate the auth token generated by identity server. In this specific case, you might input a data plane API URL such ashttps://application.generativeai.ap-osaka-1.oci.oraclecloud.com/20251112/hostedApplications/. The goal is to set the identity of the recipient who verifies the OAuth token. You can use any word, for examplemy_agent_application.Select Add scopes and define a scope name (for example,
read,write,invoke). Scope means what permissions the auth token grants. You can define several scopes in the identity domain integrated application, and have the hosted application use one of them to authenticate. - Enable Configure this application as a client now
Select Client credentials as the grant type.
- Select Submit.
- From the , select Activate to activate the application.
After activation, return to the application detail page and select OAuth Configuration. You can see the following values:
- Client ID
- Client secret
- Primary audience
- Scope
In the Identity Domain's main page, you see the Domain URL. Record these values securely. You use them later to generate an access token for accessing the hosted application.