---
schema_version: "1"
id: 6b43fecdeed65642230582e4b4daa9a54f570194efb135bc22665c12b7d438ac
title: Troubleshoot OAuth Connections
collection: tableau
version: current
locale: en-us
portal_url: https://docs.salesforce.com/tableau/current/en-us/server-linux/oauth_trouble.md
canonical_url: https://help.tableau.com/current/server-linux/en-us/oauth_trouble.htm
source_site: help.tableau.com
content_type: documentation
content_hash: d32457ef2f2061f0bcf1839aa816c8ea9dfa68fe60423e6c571aba73bd8ac0c4
description: Troubleshoot issues that occur when configuring OAuth data connections.
---
[Skip to main content](#main-content)

# Troubleshoot OAuth Connections

This topic provides information about resolving issues that can occur when you configure OAuth data connections.

## Conflict error

In some cases, users may receive an error when attempting to connect with OAuth. The first sentence of the error message is:

The server encountered an internal error or misconfiguration and was unable to complete your request.

This error indicates that the fully qualified domain name (FQDN) of the Tableau Server needs to be added to the allowlist redirect key on Tableau Server.

When users are accessing a Tableau Server by the local host name (https://tableau) and the OAuth data provider is responding to the public DNS name (https://data.example.com), Tableau Server must associate the external FQDN with the local server name. The local host name is the server name in the URL that users enter when accessing Tableau Server from the internal network.

To fix this error, run [tsm configuration set](https://help.tableau.com/current/server-linux/en-us/cli_configuration_tsm.htm#TSMSet) with the `oauth.whitelisted.redirect_to_origin_host` key option. This key takes a value pair, `"internal_host,FQDN1,FQDN2"`. For example, the following commands set the local host name to _tableau_ and the FQDN to _tableau.example.com_:

`tsm configuration set -k oauth.whitelisted.redirect_to_origin_host -v "tableau,tableau.example.com"`

`tsm pending-changes apply`

In the case where multiple public URLs are used to access the internal Tableau Server, add additional FQDNs to the command, separated by commas, for example:

`tsm configuration set -k oauth.whitelisted.redirect_to_origin_host -v "tableau,tableau.example.com,tableau2.example.com"`

If you need to edit an existing allowlist redirect configuration, you must enter the full mapping set. You cannot truncate or append existing configuration keys.