> ## 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 Denodo with OAuth 2.0 (Multiple Companies) – StackOne Hub

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

> [!WARNING]
>
> Turning on OAuth in Virtual DataPort and creating roles needs a Denodo administrator account and access to the identity provider Virtual DataPort trusts, such as Okta, Microsoft Entra ID or Keycloak.

## Trust your identity provider in Virtual DataPort

Virtual DataPort checks each access token against your identity provider and grants privileges through roles named in the token.

**1. Turn on OAuth in Virtual DataPort**

Sign in to Design Studio at `https://{host}:{port}/denodo-design-studio`, then open **Administration** > **Server configuration**.

<ul>
  <li>Under **SECURITY**, click **OAuth**.</li>
  <li>Turn on **Enable OAuth 2.0 authentication**.</li>
  <li>**Select a validation mode**: **Use JWT**</li>
  <li>**Select the signing algorithm**: The algorithm your identity provider signs tokens with, usually **RS256**</li>
  <li>**Issuer**: The issuer URL of your identity provider</li>
  <li>**JWKS URL**: The JSON Web Key Set URL of your identity provider</li>
  <li>**Subject field name (default value 'sub')**: The token claim that holds the user name, such as `preferred_username` or `email`</li>
  <li>**Role configuration**: **OAuth token**</li>
  <li>**Scope field name**: The token claim that lists the user's Denodo role names</li>
  <li>Click **Save**.</li>
</ul>

![The OAuth section of Server configuration in Design Studio with OAuth 2.0 turned on, Use JWT selected, the signing algorithm, Issuer, JWKS URL and Subject field name filled in, and Save highlighted](https://mintcdn.com/stackone-60/0xRxLEG8_yqyPmXm/connectors/denodo/images/oauth2-config-oauth-settings.png?fit=max\&auto=format\&n=0xRxLEG8_yqyPmXm\&q=85\&s=4c2e4c4bc8cf245b154db544e145a41f)

**2. Create a role for StackOne**

Users who connect with OAuth get the privileges of the Denodo roles named in their token.

<ul>
  <li>Open **Administration** > **Role management** and create a role, such as `stackone_role`.</li>
  <li>Grant the role **Connect** and **Execute** on each database StackOne should use.</li>
  <li>In your identity provider, add the role name to the claim set in **Scope field name** for the users who will connect.</li>
</ul>

**3. Turn on OAuth for the RESTful web service**

On Denodo 9.4 and later, the RESTful web service accepts OAuth tokens only when it is listed in `<DENODO_HOME>/conf/vdp/VDBConfiguration.properties`. Add this line, then restart Virtual DataPort:

```
com.denodo.restfulws.supportedAuthentications=AUTH_HTTP_BASIC_VDP,AUTH_HTTP_OAUTH2
```

## Register the OAuth app

Register StackOne as an app in the same identity provider, so its tokens carry the issuer Virtual DataPort trusts.

**1. Create the app**

In your identity provider, create a web application that uses the authorization code grant.

<ul>
  <li>Name it `StackOne Integration`.</li>
  <li>Set its redirect URI to the **Callback URL** shown in StackOne when you link the account.</li>
  <li>Allow refresh tokens, and the `openid` and `offline_access` scopes.</li>
  <li>Assign the app to the users who will connect.</li>
</ul>

**2. Copy the app details**

Copy the **Client ID** and **Client Secret** across.

<ul>
  <li>Copy the **Authorization URL**, your identity provider's authorization endpoint, across.</li>
  <li>Copy the **Token URL**, the same identity provider's token endpoint, across.</li>
  <li>Format: `https://{identity provider host}/{path}/authorize` and `https://{identity provider host}/{path}/token`</li>
  <li>Example: for an Okta authorization server at `https://acme.okta.com/oauth2/default`, your **Authorization URL** is `https://acme.okta.com/oauth2/default/v1/authorize` and your **Token URL** is `https://acme.okta.com/oauth2/default/v1/token`</li>
</ul>

## Find your RESTful Web Service URL

The RESTful Web Service URL is the address of the Denodo RESTful web service. StackOne must be able to reach it from the internet, so use the address your server is published at over HTTPS.

**1. Copy the URL**

In Design Studio, go to the **Welcome** page.

<ul>
  <li>Under **Deliver**, click **Open RESTful web service**.</li>
  <li>The page that opens shows **Welcome to the Denodo RESTful Web Service**. Copy the address from your browser's address bar, ending in `/denodo-restfulws` and without a trailing slash, across.</li>
  <li>Format: `https://{host}:{port}/denodo-restfulws`</li>
  <li>Example: if the address bar shows `https://denodo.acme.com:9443/denodo-restfulws/`, your **RESTful Web Service URL** is `https://denodo.acme.com:9443/denodo-restfulws`</li>
</ul>

![The Design Studio Welcome page with Open RESTful web service highlighted under Deliver](https://mintcdn.com/stackone-60/0xRxLEG8_yqyPmXm/connectors/denodo/images/oauth2-config-open-restful-web-service.png?fit=max\&auto=format\&n=0xRxLEG8_yqyPmXm\&q=85\&s=13491735a89abc55280ee0fa1b14ac2b)

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