> ## Documentation Index
> Fetch the complete documentation index at: https://docs.stackone.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Connect Oracle Fusion with OAuth 2.0 (Multiple Companies) – StackOne Hub

> Link a Oracle Fusion account in the StackOne Hub using OAuth 2.0 (Multiple Companies). End-user guide to authorize the integration and start using Oracle Fusion actions.

> [!WARNING]
>
> Administrator access to Oracle Cloud Infrastructure Identity and Access Management (OCI IAM) is required to create OAuth applications.

## Register a Confidential Application

Create a confidential application in Oracle Identity Cloud Service configured for the authorization code grant. Each account you link enters its own application, so one profile can serve several Oracle Fusion instances.

**1. Access the Identity Domain**

In the Oracle Cloud Console, navigate to **Identity & Security** > **Domains** and select your identity domain.

<ul>
  <li>Copy the **Domain URL** (format `https://idcs-{identifier}.identity.oraclecloud.com`) across to **Identity Cloud Service URL**.</li>
</ul>

**2. Create a Confidential Application**

Click **Applications** in the left menu, then click **Add application** and select **Confidential Application**. Enter a name (e.g. "StackOne Integration") and click **Next**.

**3. Configure the Authorization Code Grant**

In the **Client configuration** section, select **Configure this application as a client now**.

<ul>
  <li>Under **Allowed grant types**, select **Authorization code** and **Refresh token**.</li>
  <li>Set the **Redirect URL** to the **Callback URL** StackOne shows you when you connect.</li>
  <li>Under **Client type**, ensure **Confidential** is selected.</li>
</ul>

**4. Configure Resource Access and Scopes**

Scroll to **Token issuance policy** and add the required scopes.

<ul>
  <li>Click **Add scope** under **Resources** and select your Fusion Applications resource.</li>
  <li>Ensure the scope grants consumer access (typically ending in `urn:opc:resource:consumer::all`).</li>
  <li>Copy the configured scope (format `urn:opc:resource:fa:instanceid={instance_id}urn:opc:resource:consumer::all`) across to **Scope**. Do not append `offline_access`, it is requested automatically.</li>
</ul>

**5. Complete and Activate**

Click **Next** through the remaining sections, then click **Finish**. After creation, click **Activate** to enable the application.

<ul>
  <li>Copy the **Client ID** from the **General Information** section across.</li>
  <li>Click **Show secret** and copy the **Client Secret** across.</li>
</ul>

## Find Your REST Server URL

Sign in to your [Oracle Cloud account](https://cloud.oracle.com). The REST Server URL is the base URL of your Oracle Fusion instance.

**1. Copy the Instance URL**

The URL is visible in your browser address bar when logged into Oracle Fusion. Copy the **REST Server URL** across without any trailing path.

<ul>
  <li>Format: `https://servername.fa.{datacenter}.oraclecloud.com`</li>
  <li>Example: `https://mycompany.fa.us2.oraclecloud.com`</li>
</ul>

## Link the Account

**1. Connect**

<ul>
  <li>Click **Connect**.</li>
  <li>If applicable, the provider will redirect you to a sign-in or authorization page. Complete the provider's authorization flow.</li>
  <li>Once authorization is successful, you will see a confirmation popup.</li>
</ul>

**2. Use Actions**

Connect an AI platform to the linked account's actions. See [AI Platforms](https://docs.stackone.com/ai-platforms/overview.md).

Other ways to call actions are listed in [Protocols & SDKs](https://docs.stackone.com/connect/protocols-and-sdks.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.