---
schema_version: "1"
id: c54cfd181c12be1045623d0ce3e2124a648cb5b8761c19b28c73b9360f409f73
title: OAuth 连接疑难解答
collection: tableau
version: next
locale: zh-cn
portal_url: https://docs.salesforce.com/tableau/next/zh-cn/server-linux/oauth_trouble.md
canonical_url: https://help.tableau.com/v0.0/server-linux/zh-cn/oauth_trouble.htm
source_site: help.tableau.com
content_type: documentation
content_hash: 61e1f2d441fedef1ff3430fca0add07470a800aa4ee8e046fb9608a0b8d4cd8c
description: Troubleshoot issues that occur when configuring OAuth data connections.
---
[跳转到主要内容](#main-content)

# OAuth 连接疑难解答

本主题提供相关信息，帮助解决在配置 Oauth 数据连接时可能发生的问题。

## 冲突错误

在某些情况下，用户在尝试使用 OAuth 连接时可能会收到错误。错误消息的第一句是：

服务器遇到内部错误或配置错误，无法完成您的请求。

此错误指示需要将 Tableau Server 的完全限定域名 (FQDN) 添加到 Tableau Server 上的允许列表重定向键中。

当用户按本地主机名 (https://tableau) 访问 Tableau Server ，并且 OAuth 数据提供程序响应公共 DNS 名称 (https://data.example.com) 时，Tableau Server 必须将外部 FQDN 与本地服务器名称关联。本地主机名是用户从内部网络访问 Tableau Server 时输入的 URL 中的服务器名称。

若要修复此错误，请使用 `oauth.whitelisted.redirect_to_origin_host` 键选项运行 [tsm configuration set](https://help.tableau.com/v0.0/server-linux/zh-cn/cli_configuration_tsm.htm#TSMSet)。 此键采用值对 `"internal_host,FQDN1,FQDN2"`。例如，以下命令将本地主机名设置为 _tableau_，将 FQDN 设置为 _tableau.example.com_：

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

`tsm pending-changes apply`

在使用多个公共 URL 访问内部 Tableau Server 的情况下，向命令中添加其他 FQDN，用逗号分隔，例如：

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

如果需要编辑现有允许列表重定向配置，则必须输入完整的映射集。不能截断或追加现有配置键。