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

# Denodo OAuth 2.0 connector profile – StackOne setup guide

> Set up a connector profile using OAuth 2.0 for Denodo in StackOne to allow users to link their accounts.

> [!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_single_company-setup-oauth-settings.png?fit=max\&auto=format\&n=0xRxLEG8_yqyPmXm\&q=85\&s=f41086056268b4189c2df9d786b79fb8)

**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** from your Connector Profile.</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** into your Connector Profile.

<ul>
  <li>Copy the **Authorization URL**, your identity provider's authorization endpoint, into your Connector Profile.</li>
  <li>Copy the **Token URL**, the same identity provider's token endpoint, into your Connector Profile.</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, into your Connector Profile.</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_single_company-setup-open-restful-web-service.png?fit=max\&auto=format\&n=0xRxLEG8_yqyPmXm\&q=85\&s=d63a87b553263940deba7679097e5be1)

## Create the StackOne Connector Profile

**1. Create a Connector Profile**

Enable the connector and create a Connector Profile in your project. See [Setup Connector Profile](https://docs.stackone.com/gateway/quickstart.md#setup-connector-profile).

**2. Link an Account**

Once the Connector Profile is created, continue to [link an account](https://docs.stackone.com/connectors/denodo/guides/link-account/oauth-2-0.md).


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