Tableau supports authenticating to Foundry via OAuth. This means that users will not need to manually enter a token, but can instead be prompted to log in to Foundry through a web browser. See Tableau's OAuth Connections ↗ article for an overview of OAuth in Tableau.
Foundry administrator permissions are required to enable this OAuth integration. Additionally, if you are enabling the OAuth integration for Tableau Server, Tableau administrator permissions are required, and Tableau Server must be restarted.
When Tableau users authenticate to Foundry using OAuth, individual user permissions are enforced. If you used the Project access or Marking restrictions panels to configure restrictions for the third-party application, these restrictions apply on top of the user's individual permissions.
At this point, Tableau Desktop users can follow the instructions to authenticate to Foundry using OAuth.
Follow the instructions below to enable OAuth authentication for reports published to Tableau Server.
On the same Third-party applications page as above, select New application to create a new third-party application:
<ORGANIZATION> Tableau Server
, substituting your own organization name.https://<YOUR_SERVER>/auth/add_oauth_token
, where <YOUR_SERVER>
is your Tableau Server hostname.Create the app and securely store the client ID and secret.
Run the following command on the server, substituting your client ID, secret, and redirect URL from the previous step:
tsm configuration set -k oauth.config.clients -v "[{\"oauth.config.id\":\"FoundryJdbc\", \"oauth.config.client_id\":\"<YOUR_CLIENT_ID>\", \"oauth.config.client_secret\":\"<YOUR_CLIENT_SECRET>\", \"oauth.config.redirect_uri\":\"https://<YOUR_TABLEAU_SERVER>/auth/add_oauth_token\"}]" --force-keys
Restart Tableau Server by running:
tsm pending-changes apply
From within Tableau Desktop, users will now be able to follow the instructions to authenticate via the Foundry OAuth authentication option.
When publishing to Tableau Server, it is possible to configure the report to prompt viewers to authenticate via OAuth when opening the report. This way, live queries will run using the viewer's permissions.
To configure this, develop the report in Tableau Desktop using the Foundry OAuth authentication option. When you are ready to publish, choose the Prompt option for authentication. When a user views the report on Tableau Server, live connections will refresh using the viewer's credentials.