Skip to main content
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.

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

Create a role for StackOne

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

  • Open Administration > Role management and create a role, such as stackone_role.
  • Grant the role Connect and Execute on each database StackOne should use.
  • In your identity provider, add the role name to the claim set in Scope field name for the users who will connect.
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:

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.

  • Name it StackOne Integration.
  • Set its redirect URI to the Callback URL shown in StackOne when you link the account.
  • Allow refresh tokens, and the openid and offline_access scopes.
  • Assign the app to the users who will connect.
2

Copy the app details

Copy the Client ID and Client Secret across.

  • Copy the Authorization URL, your identity provider’s authorization endpoint, across.
  • Copy the Token URL, the same identity provider’s token endpoint, across.
  • Format: https://{identity provider host}/{path}/authorize and https://{identity provider host}/{path}/token
  • 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

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.

  • Under Deliver, click Open RESTful web service.
  • 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.
  • Format: https://{host}:{port}/denodo-restfulws
  • 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
The Design Studio Welcome page with Open RESTful web service highlighted under Deliver
1

Connect

  • Click Connect.
  • If applicable, the provider will redirect you to a sign-in or authorization page. Complete the provider’s authorization flow.
  • Once authorization is successful, you will see a confirmation popup.
2

Use Actions

Connect an AI platform to the linked account’s actions. See AI Platforms.Other ways to call actions are listed in Protocols & SDKs.