> ## 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 Backbase with OAuth 2.0 (Client Credentials) – StackOne Hub

> Link a Backbase account in the StackOne Hub using OAuth 2.0 (Client Credentials). End-user guide to authorize the integration and start using Backbase actions.

> [!WARNING]
>
> Requires an administrator account on your bank's Backbase Identity server, and a Backbase Access Control administrator who can entitle the service account. Backbase is deployed and operated by each bank, so every value below comes from your own deployment, not from Backbase.

## Create the service account client

Backbase Identity is a Keycloak distribution, so the client is created in the Keycloak admin console of your bank's realm. This auth method signs in no user - the client itself holds the access, so it reaches the service-api actions and not the client-api actions that resolve a banking user.

**1. Create the client**

Sign in to your bank's Backbase Identity server, which runs the [Keycloak admin console](https://www.keycloak.org/docs/latest/server_admin/index.html#proc-creating-oidc-client_server_administration_guide) at the identity host your Backbase apps sign in against. Deployments usually run one realm per banking segment, such as `retail` for customers and `employee` for bank staff.

<ul>
  <li>Select the realm whose DBS data the service account must reach.</li>
  <li>Click **Clients** in the menu.</li>
  <li>Click **Create client**.</li>
  <li>Leave **Client type** set to **OpenID Connect**.</li>
  <li>**Client ID**: `stackone-service-account`. Copy it across.</li>
  <li>Click **Next**.</li>
</ul>

**2. Enable the service account**

The **Capability config** page decides how the client authenticates and which flows it may use.

<ul>
  <li>Turn **Client authentication** on. This makes the client confidential and gives it a **Client secret**.</li>
  <li>Turn **Service account roles** on. This enables the Client Credentials Grant.</li>
  <li>Turn **Standard flow**, **Direct access grants** and **Implicit flow** off. This client never shows a sign-in screen.</li>
  <li>Click **Next**, then click **Save** on the **Login settings** page. A service account client signs no user in, so nothing there applies to it.</li>
</ul>

**3. Copy the client secret**

The secret is generated when the client is saved, and you can read it again at any time.

<ul>
  <li>Open the **Credentials** tab.</li>
  <li>Copy the **Client secret** across.</li>
</ul>

## Identify the deployment

Three values identify your bank's Backbase deployment. They are the hostnames and realm your Backbase apps already use, not values Backbase issues per integration.

**1. Copy the identity host and realm**

Take both from your deployment's AUTH\_URL, the issuer your Backbase apps sign in against.

<ul>
  <li>Format: `https://{Identity Host}/auth/realms/{Realm}`</li>
  <li>Example: if your AUTH\_URL is `https://identity.example.azure.backbaseservices.com/auth/realms/retail`, your **Identity Host** is `identity.example.azure.backbaseservices.com` and your **Realm** is `retail`</li>
  <li>Your AUTH\_URL must contain the `/auth` segment. Keycloak 17 and later can be deployed without it, serving `https://{Identity Host}/realms/{Realm}` instead - this connector cannot sign in against that shape.</li>
  <li>Choose the realm the client above was created in.</li>
</ul>

**2. Copy the API host**

Take it from your deployment's API\_ROOT, the address of your Backbase edge gateway.

<ul>
  <li>Format: `https://{API Host}/api`</li>
  <li>Example: if your API\_ROOT is `https://app.example.azure.backbaseservices.com/api`, your **API Host** is `app.example.azure.backbaseservices.com`</li>
</ul>

## Entitle the service account

The client can now get a token, but a token alone reaches no data. Backbase authorizes every DBS call through its own Access Control service, where the service account acts under a service agreement and is entitled through function groups, which pair a business function with a privilege, and data groups. Keycloak's own **Service account roles** tab does not grant this - no DBS entitlement is a Keycloak role. Grant the service account the business functions and privileges the actions you enable need, using your bank's Backbase Access Control documentation.

## 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.